lkml.org 
[lkml]   [2001]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rootfs on USB storage device
> > > Does anybody have a clue as to what the USB bus has to do with
> > > /dev/console?
> >
> > It's a timing issue, and has nothing to do with /dev/console. If you
> > sit and spin before you try to mount the root fs, the USB subsystem will
> > have enough time to find the drive. There's a few patches that do this
> > in the lkml archives.
> >
> > greg k-h
>
> It does not seem so. I included several seconds of mdelay() (and lots of
> printk()'s) while I was debugging, and that didnt change a thing. I added
> a.o. 4 seconds of mdelay() right before the open(), and 2 seconds right
> after the open() and the two dup()'s. The storage device was detected at
> the beginning of that last delay. [...]

I think khubd needs to run to complete whole process and mdelay()
locks it out. You need something that calls schedule() for USB
detection to work. Try to use schedule_timeout() instead of mdelay().

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.042 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site