Linux MIPS Architecture development
 help / color / mirror / Atom feed
* kernel configuration_ help
@ 2008-07-02 11:22 saravanakumar
  2008-07-03 14:50 ` Vegard Nossum
  0 siblings, 1 reply; 3+ messages in thread
From: saravanakumar @ 2008-07-02 11:22 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org

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.


with regards
saravana kumar.s

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

* Re: kernel configuration_ help
  2008-07-02 11:22 kernel configuration_ help saravanakumar
@ 2008-07-03 14:50 ` Vegard Nossum
  2008-07-03 14:50   ` Vegard Nossum
  0 siblings, 1 reply; 3+ messages in thread
From: Vegard Nossum @ 2008-07-03 14:50 UTC (permalink / raw)
  To: saravanakumar; +Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org

On Wed, Jul 2, 2008 at 1:22 PM, saravanakumar
<saravanakumar.s@teclever.com> 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

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

* Re: kernel configuration_ help
  2008-07-03 14:50 ` Vegard Nossum
@ 2008-07-03 14:50   ` Vegard Nossum
  0 siblings, 0 replies; 3+ messages in thread
From: Vegard Nossum @ 2008-07-03 14:50 UTC (permalink / raw)
  To: saravanakumar; +Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org

On Wed, Jul 2, 2008 at 1:22 PM, saravanakumar
<saravanakumar.s@teclever.com> 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.

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

end of thread, other threads:[~2008-07-03 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 11:22 kernel configuration_ help saravanakumar
2008-07-03 14:50 ` Vegard Nossum
2008-07-03 14:50   ` Vegard Nossum

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