We'll soon provide various downloadable QEMU images you can use to try out coreboot.

+

Below is a list of various downloadable QEMU images you can use to try out coreboot.

You need a patched version of '''vgabios-cirrus.zip''' for these images to work fine, the version in QEMU's CVS repository does '''not''' yet work. The image from Debian's QEMU package ('''/usr/share/qemu/vgabios-cirrus.bin''') is already patched and works, too.

You need a patched version of '''vgabios-cirrus.zip''' for these images to work fine, the version in QEMU's CVS repository does '''not''' yet work. The image from Debian's QEMU package ('''/usr/share/qemu/vgabios-cirrus.bin''') is already patched and works, too.

−

=== coreboot v3 + coreinfo ===

+

=== coreboot v2 + SeaBIOS ===

−

[[Image:Coreinfo nvram.png|thumb|right|coreinfo NVRAM dump.]]

+

[[File:Qemu seabios.png|thumb|right|[[SeaBIOS]] payload.]]

−

$ mkdir foo

+

[[SeaBIOS]] is an open-source legacy BIOS implementation which can be used as a coreboot payload. It implements the standard BIOS calling interfaces that a typical x86 proprietary BIOS implements.

−

$ cd foo

+

−

$ wget http://www.coreboot.org/images/0/06/Qemu_coreboot_coreinfo.zip

+

The QEMU image uses coreboot v2 (r4917) and [[SeaBIOS]] (9eebe66a9978165cfa91f2266c97fa5d0aa6ef2e, 2009-11-04) with the following changes to the default '''src/config.h''':

This is coreboot v3 (r656), [[libpayload]] (r3225), and tint 0.03b patched to be built against libpayload.

+

+

mkdir foo

+

cd foo

+

wget http://www.coreboot.org/images/6/62/Qemu_libpayload_tint.zip

+

wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip

+

unzip Qemu_libpayload_tint.zip

+

unzip Vgabios-cirrus.zip

+

mv qemu_libpayload_tint.bin bios.bin

+

cd ..

+

qemu -L foo -hda /dev/zero -serial stdio

+

+

=== coreboot v3 + Memtest86 ===

+

+

[[Image:Qemu memtest.png|thumb|right|[[Memtest86]] payload.]]

+

+

This is coreboot v3 (r656) and [[Memtest86]] (3.4) with serial support enabled. The VGA display in QEMU is broken after a few seconds, this is a known issue, but we don't yet know what exactly the problem is.

Tutorials

Ready-made QEMU images

Below is a list of various downloadable QEMU images you can use to try out coreboot.

You need a patched version of vgabios-cirrus.zip for these images to work fine, the version in QEMU's CVS repository does not yet work. The image from Debian's QEMU package (/usr/share/qemu/vgabios-cirrus.bin) is already patched and works, too.

coreboot v3 + Memtest86

This is coreboot v3 (r656) and Memtest86 (3.4) with serial support enabled. The VGA display in QEMU is broken after a few seconds, this is a known issue, but we don't yet know what exactly the problem is.

Debugging

You can use embedded gdbserver features inside qemu.
For example to start gdbserver on localhost 1234 port you need add "-s" option.
Also it's very useful add "-S" option to stop qemu at the start, so you can run
booting process from gdb