public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* rootfs on USB storage device
@ 2001-11-15  3:22 Jos Nouwen
  2001-11-15  5:07 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Jos Nouwen @ 2001-11-15  3:22 UTC (permalink / raw)
  To: linux-kernel

Since I own a USB Pen Drive, which is perfectly working under Linux, I
wanted to put a linux rescue system on it. But for some reason it wont
work.

I linked in everything neccesary to boot from it: CONFIG_USB,
CONFIG_USB_DEVICEFS, CONFIG_USB_UHCI, CONFIG_USB_STORAGE, CONFIG_SCSI,
CONFIG_BLK_DEV_SD, CONFIG_EXT2_FS. I'm using kernel 2.4.15-pre4.

The problem is that the pendrive gets detected AFTER the kernel tries to
mount the root fs. Checking init/main.c and entering some debug lines
learns that the USB device gets detected when, in function init(), the
console gets opened: 'open("/dev/console", O_RDWR, 0)'. Immediately after
that, the 'init' program will be exec-ed. At the time of the 'open()'
call, the kernel printk()'s "hub.c: USB new device connect on bus1/1,
assigned device number 2", which is obviously the pendrive. It is
correctly registered, and a SCSI disk is emulated. But too late..

Does anybody have a clue as to what the USB bus has to do with
/dev/console?

Thanks for any help,
Jos Nouwen.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-16 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1005878220.14858.linux-kernel2news@redhat.com>
2001-11-16  3:06 ` rootfs on USB storage device Pete Zaitcev
2001-11-16 13:21   ` Eric Lammerts
2001-11-16 17:30     ` Pete Zaitcev
2001-11-15  3:22 Jos Nouwen
2001-11-15  5:07 ` Greg KH
2001-11-16  2:32   ` Jos Nouwen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox