Problem mounting a file System over an USB key disk !!!!
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem mounting a file System over an USB key disk !!!!
Hello every one,
I've got the experimental KwikByte board "KBAT9261" powered by ARM9.
My problem is when mounting the file system over my USB key Disk, here is the exact explanation :
-In the default configuration, the board loads the boot loader from SPI flash, copies the kernel (zImage) from SPI flash, and executes the zImage in RAM. The kernel expects to mount a file system on the compact flash card (/dev/hda1). This could be changed to initrd, initramfs, nfs, etc. from within the boot loader.
Because i do not have a CF card, i've changed the mounting point to (/dev/sda1) which refers to the USB disk. But here is the error message :
"Kernel Panic - not syncing: Not init found. Try passing init =option to kernel". ????
I have copied a sample file system into the USB Disk but no responding and the same message seems to be persistent.
If you use an initrd, be sure that all the drivers you needs to mount your root fs are in it: for an USB mass storage device, you need at least the USB controller driver, the USB mass storage driver, and the FS driver... If you don't use an initrd, build them as static, not modules. Even if you use an initrd, build them as static, it's error prone.
Maybe you have to add the kernel "root=/dev/sda1" argument too.
I'm not using initrd, and the USB controler driver is present inside the board.
In the bootloader command i use :
"root=/dev/sda1 rootdelay=10" as a mount point, an inside the USB key device i have implemented the files provided by KwikByte "basic_bat6_fs.tar.gz" which include a whole file system for ARM architectures.
I don't understand, a driver can be compiled as a module, so you'll find it in /lib/modules/$KERNEL_VERSION, and then you'll need an initrd which have this module. Or the driver can be compiled inside the kernel. But for me a board only contents electronic components...
More over, this driver is mandatory but not sufficient, as a point it in my last post...
thank you for being reply on my problem. When i said that the driver is inside the board, it is only some way to explain things. Because when booting the bootloader detect the presence of an USB key and when the Kernel try to mount the file system on the USB key, here the problems start, and as i said before the problem of the kernel panic appears...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.