Difference between revisions of "QEMU"

From coreboot
Jump to: navigation, search
(Add license, wiki page is written by me.)
(QEMU image for coreboot v3 + libpayload + tint (a small tetris-like game).)
Line 37: Line 37:
 
  $ unzip Vgabios-cirrus.zip
 
  $ unzip Vgabios-cirrus.zip
 
  $ mv qemu_coreboot_invaders.bin bios.bin
 
  $ mv qemu_coreboot_invaders.bin bios.bin
 +
$ cd ..
 +
$ qemu -L foo -hda /dev/zero -serial stdio
 +
 +
=== coreboot v3 + libpayload + tint ===
 +
 +
[[Image:Coreboot libpayload tint.png|thumb|right|The [[tint]] payload.]]
 +
 +
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 ..
 
  $ cd ..
 
  $ qemu -L foo -hda /dev/zero -serial stdio
 
  $ qemu -L foo -hda /dev/zero -serial stdio
  
 
{{PD-self}}
 
{{PD-self}}

Revision as of 00:20, 9 April 2008

You can easily try out coreboot using QEMU, without having to actually flash the BIOS chip on your real hardware.

Tutorials

Ready-made QEMU images

We'll soon provide 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 + coreinfo

coreinfo NVRAM dump.
$ mkdir foo
$ cd foo
$ wget http://www.coreboot.org/images/0/06/Qemu_coreboot_coreinfo.zip
$ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip
$ unzip Qemu_coreboot_coreinfo.zip
$ unzip Vgabios-cirrus.zip
$ mv qemu_coreboot_coreinfo.bin bios.bin
$ cd ..
$ qemu -L foo -hda /dev/zero -serial stdio

coreboot v3 + invaders

The invaders payload.
$ mkdir foo
$ cd foo
$ wget http://www.coreboot.org/images/c/c8/Qemu_coreboot_invaders.zip
$ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip
$ unzip Qemu_coreboot_invaders.zip
$ unzip Vgabios-cirrus.zip
$ mv qemu_coreboot_invaders.bin bios.bin
$ cd ..
$ qemu -L foo -hda /dev/zero -serial stdio

coreboot v3 + libpayload + tint

The tint payload.

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
Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.