From: Quentin Schulz <quentin.schulz@streamunlimited.com>
To: JH <jupiter.hce@gmail.com>
Cc: connman <connman@lists.01.org>,
Yocto discussion list <yocto@yoctoproject.org>,
linux-mtd <linux-mtd@lists.infradead.org>,
Andy Pont <andy.pont@sdcsystems.com>
Subject: Re: [yocto] lost busybox mysteriously
Date: Mon, 27 Jan 2020 13:06:39 +0100 [thread overview]
Message-ID: <20200127120638.2jpgvedxecwgwz6u@qschulz> (raw)
In-Reply-To: <CAA=hcWS2ncU4+RkeLydXOnGvswshK-0iDV3cRTdFgoQ4+Oe57w@mail.gmail.com>
Hi JH,
On Mon, Jan 27, 2020 at 10:13:37PM +1100, JH wrote:
> Hi Andy,
>
> Thanks for the response.
>
> On 1/27/20, Andy Pont <andy.pont@sdcsystems.com> wrote:
> > JH wrote...
> >
> >>That the same problem of missing busybox was not just occurred during
> >>the device running in the middle of operation, it was also occurred
> >>during booting image from NAND, I saw several times that the first and
> >>second cycles of booting image from NAND were working well, then some
> >>following booting process would be crashed by missing busybox, then
> >>could not run whole shell commands. I have been pondering if it could
> >>be caused by NAND issue or network virus / fishy? Appreciate any
> >>clues.
> > The first step is for us to understand what “missing” means? Have you
> > got any mechanism (U-Boot, SD card boot, etc.) that will allow you to
> > mount and look at the contents of the NAND file system?
>
> Means that busybox was not there anymore, it mysteriously lost, all
> shell commands would no longer available. It cannot to run mount or
> any shell commands. There was two scenarios when that happened:
>
> - In the middle of running, the device all of certain could not run
> shell commands and failed mysteriously
>
> - During the u-boot booting kernel process, there were full errors of
> failing shell commands. Let me make it clear, that booting error did
> not occur in the first or second kernel booting after the new image
> installation, it happened in the following kernel booting, but there
> was nothing to delete busybox accidentally, busybox was just
> mysteriously disappeared. Because I could not run ls, I did not know
> if there are other things missing. If you ask how I could know the
> busybox was missing, I ran the zImage-initramfs to boot the linux in
> RAM, then mount the ubi0 to find out busybox was gone.
>
>
> > If you look at the /bin directory (ls -la /bin/busy*) what do you see?
> > Have the files been deleted? Truncated? Zero length?
>
> Could not run ls or any shell commands when the busybox was missing.
>
/bin/ls -la /bin/busy* ?
Maybe something is messing with the PATH environment variable. Or
something is removing the symlinks from some binaries to busybox.
> > What file system are you using on the NAND flash? How are the devices
> > being reset during the various boot cycles? If it is a hardware reset
> > then some file systems are less resilient to it than others but I would
> > expect in that case more fundamental boot issues.
>
> UBIFS, most device reset or boot cycles were calling halt or reboot,
> but it sometime it could just use power cycle.
>
IIRC, UBIFS is safe from power cycles.
Quentin
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2020-01-27 12:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAA=hcWRQmXa4_hh3KzKmqeaEkGsbdTEimsPjh=tZWribMkM0dA@mail.gmail.com>
2020-01-26 23:35 ` lost busybox mysteriously JH
[not found] ` <emb3e01e23-7511-48c8-9229-85a767ab359c@andys-imac.leeshillfarm.local>
2020-01-27 11:13 ` [yocto] " JH
2020-01-27 11:31 ` Jonatan Palsson
2020-01-28 5:58 ` JH
2020-01-27 12:06 ` Quentin Schulz [this message]
2020-01-27 15:04 ` Laurent Gauthier
2020-01-28 5:55 ` JH
2020-01-28 6:25 ` JH
[not found] ` <CAAx3WaA2uoCki+1AV9QFZybbszfS5wecWKf1PfDvgV5u9EVL=g@mail.gmail.com>
2020-01-28 10:40 ` JH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200127120638.2jpgvedxecwgwz6u@qschulz \
--to=quentin.schulz@streamunlimited.com \
--cc=andy.pont@sdcsystems.com \
--cc=connman@lists.01.org \
--cc=jupiter.hce@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).