On Tue, 21 Oct 2003 15:19:48 -0400 "Vsevolod (Simon) Ilyushchenko" <[EMAIL PROTECTED]> wrote:
| Hi, | | Is it possible to boot off of an USB device in 2.4.22? There was a patch | that allowed for long recognition times in earlier kernels, but it does | not apply now. I have seen some discussion on this list and on the | linux-kernel list about it, but have not found any conclusive patches or | suggestions. Hi Simon, I have updated one of the 2 patches that have been known to work for this, although they worked around 2.4.14 or so. I don't have a way to test this. Can you or anyone test this patch? Thanks, -- ~Randy description: Allows a system to boot with the root fs as a USB storage (or other hotplug) device. Note: It's been reported that this patch doesn't work if you enable devfs! product_versions: Linux 2.4.22 patch_name: usbboot-2422.patch author: Randy.Dunlap <[EMAIL PROTECTED]> (for 2.4.22) Originally by Eric Lammerts <[EMAIL PROTECTED]> for 2.4.14-pre8. patch_version: 2003-10-28.20:57:35 diffstat:= init/do_mounts.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff -Naurp ./init/do_mounts.c~usbboot ./init/do_mounts.c --- ./init/do_mounts.c~usbboot 2003-08-25 04:44:44.000000000 -0700 +++ ./init/do_mounts.c 2003-10-28 20:53:29.000000000 -0800 @@ -366,11 +366,16 @@ retry: * Allow the user to distinguish between failed open * and bad superblock on root device. */ - printk ("VFS: Cannot open root device \"%s\" or %s\n", + printk ("VFS: Cannot open root device \"%s\" or %s, retrying in 1 second.\n", root_device_name, kdevname (ROOT_DEV)); - printk ("Please append a correct \"root=\" boot option\n"); - panic("VFS: Unable to mount root fs on %s", - kdevname(ROOT_DEV)); + printk ("You may need to append a correct \"root=\" boot option\n"); + printk ("or wait for the root device to become ready.\n"); + + /* wait 1 second and try again, + * allowing time for hubs/devices to become ready */ + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout(HZ); + goto retry; } panic("VFS: Unable to mount root fs on %s", kdevname(ROOT_DEV)); out: ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel