linux-mips
[Top] [All Lists]

Re: kernel configuration_ help

To: saravanakumar <saravanakumar.s@teclever.com>
Subject: Re: kernel configuration_ help
From: "Vegard Nossum" <vegard.nossum@gmail.com>
Date: Thu, 3 Jul 2008 16:50:40 +0200
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ViDqCdSNz8P/ZSF6nlyJcQhxX3DrOPn2e/3PAJam2UE=; b=WHyWYo2Yw1i/93gvNqEbxSX2Ew9y6KRPVAr6E5vYRtzHcSkOzN9hm8/G0HrNA80uHh 4XzfHOEL4zzK0cmL0HO5wRnXIi+97fGAYQrDZkn1ZsCr/xz4znCCMAxMigHZV0mo91/0 pv4p1nU3Jtsr3fPLxGMoOnMQiyBE8jhyzlLWc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ehu0ygmRhaUG83iYnqboql1eJVp1TFfD4UpvW7MhKxUupuXx0r7LJsDu21lC+85CtN YW07pMo0w1UOorbWGlgfNLNmpY2KKp1u2mdGxIeZvVLdUpVqkVxRdRiiYnq+4kYWWhqy VPyNOTouAl7+eJWBD3ogLbP6ZR1lDtEi5SCz0=
In-reply-to: <1214997772.16081.3.camel@teclever-desktop>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1214997772.16081.3.camel@teclever-desktop>
Sender: linux-mips-bounce@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

<Prev in Thread] Current Thread [Next in Thread>