Mounting a USB flash stick based root FS directly.

2 messages, 2 authors, 2009-07-20 · open the first message on its own page

Mounting a USB flash stick based root FS directly.

From: Dushara Jayasinghe <hidden>
Date: 2009-07-20 02:10:26

Hi all,

I'm attempting to mount the root file system directly from a USB flash stic=
k (thus avoiding a ram-disk). The init thread is delayed until the USB devi=
ce is enumerated. However, I find the call to sys_mount() in line 218 @ htt=
p://git.denx.de/?p=3Dlinux-2.6-denx.git;a=3Dblob;f=3Dinit/do_mounts.c;h=3D8=
d4ff5afc1d80b56963cbf119b162a3ebce61124;hb=3Dad2a8c8d0593bf2d1ef163f1ca7574=
f02b2e770e fails. The problem is I can't work out where sys_mount() is impl=
emented.

I'm working off the 2.6.29-DENX kernel (commit id ad2a8c8d0593bf2d1ef163f1c=
a7574f02b2e770e). and My target CPU is an
mpc8349.


Thanks in advance.


Dushara Jayasinghe

Re: Mounting a USB flash stick based root FS directly.

From: Cristian Axenie <hidden>
Date: 2009-07-20 05:14:17

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 [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help