[coreboot] Coreboot+FILO on qemu

ron minnich rminnich at gmail.com
Fri Apr 10 16:57:54 CEST 2009


On Fri, Apr 10, 2009 at 5:58 AM, Ravishankar <cyberax82 at gmail.com> wrote:
> Hello,
>
> 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:

I don't know why this did not work, I guess the default is the new
command syntax from grub.
> filo>hda:/boot/vmlinuz root=/dev/hda initrd=/boot/initrd console=ttyS0
> Error 27: Unrecognized command
> filo>

OK, do this first:

file> root (hd0)

Then:
> 9.So i try:
> filo>kernel /boot/vmlinuz root=/dev/hda initrd-/boot/initrd console=ttyS0
> filo>boot
> Booting '/boot/vmlinuz root=/dev/hda initrd-/boot/initrd console=ttyS0'
> read_sector: device not open
> File not found.
> filo>
>
> What am i doing wrong ?
>

It should then work. It works for me.

ron




More information about the coreboot mailing list