[coreboot] Coreboot+FILO on qemu

Ravishankar cyberax82 at gmail.com
Fri Apr 10 14:58:41 CEST 2009


I was trying to run a linux kernel from FILO but got some errors.The
following explains best what i did.

1.Downloaded FILO and built libpayload and FILO
2. Downloaded and built Coreboot with filo.elf as the image
3.Created a hard disk image in /home/ravi/  and formatted it

    *$ qemu-img create -f raw disk.img 200M
    $ mkfs.ext2 -F disk.img*
4.As root, mounted the disk
    * $mkdir /mnt/rootfs
     $mount -o loop disk.img /mnt/rootfs*
5.And copied vmlinuz and initrd from the /boot/ folder(openSuse11.1).
  *$ mkdir /mnt/rootfs/boot
  $ cp /boot/vmlinuz /mnt/rootfs/boot/vmlinuz
  $ cp /boot/initrd /mnt/rootfs/boot/initrd*
6.Unmounted /dev/rootfs
7.Started qemu:*qemu -L ~ -hda disk.img  -nographic*
(i had to copy vgabios-cirrus.bin from /usr/share/qemu to my home directory
beacuse it qemu complained that it was missing)
8.All is well, i get FILO prompt.Now according to
http://www.coreboot.org/QEMU_Build_Tutorial, i try:
*filo>hda:/boot/vmlinuz root=/dev/hda initrd=/boot/initrd console=ttyS0
Error 27: Unrecognized command
9.So i try:
*filo>kernel /boot/vmlinuz root=/dev/hda initrd-/boot/initrd console=ttyS0
Booting '/boot/vmlinuz root=/dev/hda initrd-/boot/initrd console=ttyS0'
read_sector: device not open
File not found.

What am i doing wrong ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090410/3d024396/attachment.html>

More information about the coreboot mailing list