public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@sunsite.dk>
To: u-boot@lists.denx.de
Subject: AW: [U-Boot-Users] USB booting...
Date: Tue, 12 Jul 2005 18:39:32 +0200	[thread overview]
Message-ID: <878y0cm117.fsf@p4.48ers.dk> (raw)
In-Reply-To: <47F3F98010FF784EBEE6526EAAB078D119EC7E@tq-mailsrv.tq-net.de> (Martin Krause's message of "Thu, 7 Jul 2005 08:26:56 +0200")

>>>>> "Martin" == Martin Krause <Martin.Krause@tqs.de> writes:

 Martin> I tried this with a read-only ext2 root file system on a
 Martin> linux partition on an USB memory stick some time ago - and
 Martin> failed. I hadn't much time to analyze what's going wrong but
 Martin> I think the problem was that the kernel (linuxppc_2_4_devel
 Martin> from denx) tried to mount the root file system _before_
 Martin> initializing of the usb sub system has completed. At least
 Martin> the console messages looked so - but perhaps I missed
 Martin> something.

 Martin> Has anybody else tried this? I would be happy to hear about a
 Martin> successful way to do this.

Yes, there's a race condition between the kernel mounting the rootfs
and USB detection / partition scan - I have solved it with a small
initrd (~100k) which sits in a loop trying to mount the USB stick and
then does a pivot_root to it.

-- 
Bye, Peter Korsgaard

      reply	other threads:[~2005-07-12 16:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07  6:26 AW: [U-Boot-Users] USB booting Martin Krause
2005-07-12 16:39 ` Peter Korsgaard [this message]

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=878y0cm117.fsf@p4.48ers.dk \
    --to=jacmet@sunsite.dk \
    --cc=u-boot@lists.denx.de \
    /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