Re: help needed to boot from compact flash

From: linnix (me_at_linnix.info-for.us)
Date: 01/24/05


Date: 24 Jan 2005 12:14:09 -0800


Everett X. Wang wrote:
> Hi All,
>
> I have trying to move my linux from harddrive to a compact flash
without
> much success for a week. Here is what I am trying to do:
>
> I already have my own kernel and modules, tested successfully on my
computer
> on hard drive. I followed
> the three article series from Bruce Perens here to make busybox and
file
> system:
>
> part 1 for busybox
> http://www.linuxdevices.com/articles/AT6143283999.html
>
> part 2 for file system,
> http://linuxdevices.com/articles/AT9416075241.html
> I used Ram disk intead of romfs described in book by Karim Yaghmour
> "Building embedded Linux systems"
>
> The compact flash is connect to an IDE to CF, set to the master of
the
> second channel.

Have you tried booting from the primary channel?

>
> Then I used grub to load my kernel and initrd. by running /sbin/grub
> root (hd2,0)
> setup (hd2,0)
>
> When it boots, it gives me a grub prompt
> I typed
>
> kernel /boot/bzImage
> initrd /boot/initrd.bin
> boot
>
> where the initrd.bin is a compressed Ram disk image from the whole
rootfs.
>
> Then I got this message
> ....
> VFS: Mounted root (ext2 filesystems).
> kmod: failed to exec /sbin/modeprobe -s -k block-major-3 errrno=2
> VFS: Cann't open root device "" or 03:07
> Please append a correct "root=" boot option

What don't you try root=/dev/hdc?

> kernel panic: VFS: Unable to mount root fs on 03:07
>
> I also tried to copy the filesystem directly to the flash and reboot
> it also gives me a grub prompt
> do the same for the kernel and initrd (I used the real initrd.img
from
> mkinitrd this time)
> I got this message:
> hda hda1 hda1 hda3 (these are OK because I have three partitions
on the
> compact flash)
> hda7 bad access block 3 count 2
> end-request I/O error dev 03:07 (hda) sector 2
> unable to read superblock

But your CF is on hdc.

> ...
> I never have anything like hda7. It has only 3 partitions.
>
> Can any one help me here? Do I have to compile all the modules into
the
> kernel or keep them as modules as I am doing it now?
>

If all else fail, you can try our CD. It will load most CFs up to
256M.
See: http://cfd.linnix.com

> Thanks in advance.
>
> Everett



Relevant Pages

  • help needed to boot from compact flash
    ... I have trying to move my linux from harddrive to a compact flash without ... much success for a week. ... Then I used grub to load my kernel and initrd. ... VFS: Mounted root. ...
    (comp.arch.embedded)
  • help needed to boot from compact flash
    ... I have trying to move my linux from harddrive to a compact flash without ... much success for a week. ... Then I used grub to load my kernel and initrd. ... VFS: Mounted root. ...
    (comp.os.linux.embedded)
  • Re: help needed to boot from compact flash
    ... Everett X. Wang wrote: ... > I have trying to move my linux from harddrive to a compact flash ... > much success for a week. ... > I already have my own kernel and modules, ...
    (comp.arch.embedded)
  • Re: help needed to boot from compact flash
    ... Everett X. Wang wrote: ... > I have trying to move my linux from harddrive to a compact flash ... > I already have my own kernel and modules, ... > VFS: Mounted root (ext2 filesystems). ...
    (comp.arch.embedded)
  • Re: help needed to boot from compact flash
    ... Everett X. Wang wrote: ... > I have trying to move my linux from harddrive to a compact flash ... > I already have my own kernel and modules, ... > VFS: Mounted root (ext2 filesystems). ...
    (comp.os.linux.embedded)