LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Cristian Axenie <cristian.axenie@gmail.com>
To: Dushara Jayasinghe <DusharaJ@optiscan.com>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Mounting a USB flash stick based root FS directly.
Date: Mon, 20 Jul 2009 08:14:14 +0300	[thread overview]
Message-ID: <9c789a000907192214k2f523dc2w9f1f62d121a247f@mail.gmail.com> (raw)
In-Reply-To: <DE0CCFFBFF707949BEABD4537A14ACBA0C20DE6983@mailsvr>

Hello !
If you properly set the root fs on your USB flash you should try to
set it up using some uBoot bootargs :

e.g. :

setenv usbstick_args setenv bootargs root=/dev/sdXX ro
rootdelay=$HOW_MANY_SECONDS_TO_WAIT rootfstype=$YOUR_FS_TYPE
init=/sbin/init console=$consoledev,$baudrate;

setenv usbstick 'run usbstick_args;bootm fe500000 - fe700000'

setenv bootcmd run usbstick

Best !

On 7/20/09, Dushara Jayasinghe <DusharaJ@optiscan.com> wrote:
> Hi all,
>
> I'm attempting to mount the root file system directly from a USB flash stick
> (thus avoiding a ram-disk). The init thread is delayed until the USB device
> is enumerated. However, I find the call to sys_mount() in line 218 @
> http://git.denx.de/?p=linux-2.6-denx.git;a=blob;f=init/do_mounts.c;h=8d4ff5afc1d80b56963cbf119b162a3ebce61124;hb=ad2a8c8d0593bf2d1ef163f1ca7574f02b2e770e
> fails. The problem is I can't work out where sys_mount() is implemented.
>
> I'm working off the 2.6.29-DENX kernel (commit id
> ad2a8c8d0593bf2d1ef163f1ca7574f02b2e770e). and My target CPU is an
> mpc8349.
>
>
> Thanks in advance.
>
>
> Dushara Jayasinghe
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>

      reply	other threads:[~2009-07-20  5:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20  2:04 Mounting a USB flash stick based root FS directly Dushara Jayasinghe
2009-07-20  5:14 ` Cristian Axenie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c789a000907192214k2f523dc2w9f1f62d121a247f@mail.gmail.com \
    --to=cristian.axenie@gmail.com \
    --cc=DusharaJ@optiscan.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox