Is it possible to load and mount the uClinux root file system on a USB hard drive connected to the USB card?

Has anyone done this before?

QuoteReplyEditDelete

2008-11-24 02:51:36 Re: Mount Root File System to USB

Mike Frysinger (UNITED STATES)

Message: 65738

first make sure you can detect the USB device and read/write files. if you can do that, using it as a root filesystem is trivial.

QuoteReplyEditDelete

2008-11-27 19:43:43 Re: Mount Root File System to USB

David Waterhouse (UNITED STATES)

Message: 65927

Mike,

Right now I'm loading vmlinux from the parallel flash and then mounting the root file system using NFS.

I copied the root file system to a flash drive (Lexar Jumpdrive) under directory /romfs and I can read and write to it.

I wanted to try to auto-mount it when uclinux boots, so I added the uboot variables usbboot and usbargs (shown below), with root device of /dev/usb. When I tried to boot by running the usbboot variable (bootcmd=run usbboot) it failed saying <<Cannot open root device "usb">>.

Is there a correct setting for the root device that would allow auto-mounting of the file system on the flash drive when uclinux boots?