Re: kernel configuration_ help

From: Vegard Nossum
Date: Thu Jul 03 2008 - 10:50:53 EST


On Wed, Jul 2, 2008 at 1:22 PM, saravanakumar
<saravanakumar.s@xxxxxxxxxxxx> wrote:
> hai,
> i want my usb to access the root file system,for that what are the
> changes to be done in kernel code, and in the configuration, i think
> changes to be done in do_mount.c for root delay, if its correct where to
> give the delay.

Hi,

If I understand correctly, you have your root filesystem on a USB
device. It seems that you must pass the rootdelay= option on the
kernel command line. No changes to the code should be necessary.

>From Documentation/kernel-parameters.txt:

rootdelay= [KNL] Delay (in seconds) to pause before attempting to
mount the root filesystem

Try 10 seconds first, then go lower until it stops working.

It seems that this unfortunate hack is necessary because USB devices
can take an indefinite amount of time to register themselves once
connected.

You will of course also need the relevant config options. Make sure
your filesystem is selected, Advanced partition selection, USB, and
SCSI disk support.

Good luck!


Vegard

--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/