Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2009 21:04:03 -0800
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Daichi GOTO <daichi@ongs.co.jp>, Masanori OZAWA <ozawa@ongs.co.jp>, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: USB2: booting from usb memory issue, including a foolish patch
Message-ID:  <20090219050403.GB84647@citylink.fud.org.nz>
In-Reply-To: <87skmb8564.fsf@kobe.laptop>
References:  <499CC89E.2040408@ongs.co.jp> <87skmb8564.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 19, 2009 at 05:41:07AM +0200, Giorgos Keramidas wrote:
> On Thu, 19 Feb 2009 11:49:02 +0900, Daichi GOTO <daichi@ongs.co.jp> wrote:
> > Hi usb2 folks, first please give me a time to say congratulations! I'm
> > very glad that usb2 is default usb stack right now :)
> >
> > Well but, bad news I have.
> >
> > I have known that usb2 stack have a issue around boot from usb
> > devices. System has been engaging root filesystem mount treatment
> > before completion of device proving in kernel main thread. It leads
> > root mount fail, then system boot fails from usb device.
> >
> > So I have made a patch included. That patch sleeps 30 seconds before
> > root mount treatment while a kernel thread doing usb2 device probing.
> >
> > Yes you know, very foolish patch but I have no idea to fix it in other
> > way. If you have better ideas, please try and commit that.
> 
> Delaying *all* boots for such a long time doesn't seem very good.
> 
> It may be a good idea to patch usb2 to install a SYSINIT handler with
> SI_SUB_CONFIGURE, so that it gets a chance to hook itself at the end of
> the device configuration.  I'll try to do this, unless Hans beats me to
> it of course :)

There has already been a thread about this on usb@, maybe have a read
first.
http://lists.freebsd.org/pipermail/freebsd-usb/2009-February/006242.html

Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090219050403.GB84647>