Difference between revisions of "Tint"
m |
|||
| Line 9: | Line 9: | ||
=== libpayload === | === libpayload === | ||
| − | The tint payload uses [[libpayload]],which is in the coreboot tree: | + | The tint payload uses [[libpayload]], which is in the coreboot tree: |
| + | |||
$ svn co svn://coreboot.org/coreboot/trunk | $ svn co svn://coreboot.org/coreboot/trunk | ||
| Line 24: | Line 25: | ||
$ make | $ make | ||
| − | The file '''tint.elf''' is your final payload which you can use with coreboot | + | The file '''tint.elf''' is your final payload which you can use with coreboot, either on real hardware or in a [[QEMU]] image. |
=== coreboot === | === coreboot === | ||
| − | Finally, you have to build coreboot | + | Finally, you have to build coreboot with tint as payload: |
$ cd ../.. | $ cd ../.. | ||
$ make menuconfig | $ make menuconfig | ||
| − | Now enter the '''Payload''' menu and select '''Payload type''' and then '''An ELF executable payload file'''. | + | Now enter the '''Payload''' menu and select '''Payload type''' and then '''An ELF executable payload file'''. Then, exit the menu, save your settings, and build coreboot: |
$ make | $ make | ||
| − | The file '''build/coreboot.rom''' | + | The file '''build/coreboot.rom''' is your final coreboot image, which also contains the tint payload. |
== Running tint in QEMU == | == Running tint in QEMU == | ||
| − | For running the coreboot+libpayload+tint image in QEMU, you need a patched version of '''vgabios-cirrus.bin''' in your '''build''' directory first: | + | For running the coreboot+libpayload+tint image in [[QEMU]], you need a patched version of '''vgabios-cirrus.bin''' in your '''build''' directory first, and you also need to rename or copy '''coreboot.rom''' to '''bios.bin''': |
$ cd build | $ cd build | ||
| + | $ mv coreboot.rom bios.bin | ||
$ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip | $ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip | ||
$ unzip Vgabios-cirrus.zip | $ unzip Vgabios-cirrus.zip | ||
$ cd .. | $ cd .. | ||
| − | You can now run tint in QEMU: | + | You can now run tint in [[QEMU]]: |
$ qemu -L build -hda /dev/zero -serial stdio | $ qemu -L build -hda /dev/zero -serial stdio | ||
| Line 54: | Line 56: | ||
== Ready-made QEMU image == | == Ready-made QEMU image == | ||
| − | Please follow [ | + | Please follow [[QEMU#coreboot_v3_.2B_libpayload_.2B_tint these instructions]] if you want to try out coreboot and tint in [[QEMU]]. |
{{PD-self}} | {{PD-self}} | ||
Revision as of 23:03, 18 September 2010
tint is a small curses-based game.
We have ported this game to libpayload so it can now be used as a coreboot payload.
Contents |
Building
libpayload
The tint payload uses libpayload, which is in the coreboot tree:
$ svn co svn://coreboot.org/coreboot/trunk
tint
You can then get tint itself, patch it, and build it:
$ cd coreboot/payloads $ wget http://ftp.debian.org/debian/pool/main/t/tint/tint_0.03b.tar.gz $ tar xfvz tint_0.03b.tar.gz $ cd tint-0.03b $ svn export svn://coreboot.org/coreboot/trunk/payloads/external/tint/libpayload_tint.patch $ patch -p1 < libpayload_tint.patch $ make
The file tint.elf is your final payload which you can use with coreboot, either on real hardware or in a QEMU image.
coreboot
Finally, you have to build coreboot with tint as payload:
$ cd ../.. $ make menuconfig
Now enter the Payload menu and select Payload type and then An ELF executable payload file. Then, exit the menu, save your settings, and build coreboot:
$ make
The file build/coreboot.rom is your final coreboot image, which also contains the tint payload.
Running tint in QEMU
For running the coreboot+libpayload+tint image in QEMU, you need a patched version of vgabios-cirrus.bin in your build directory first, and you also need to rename or copy coreboot.rom to bios.bin:
$ cd build $ mv coreboot.rom bios.bin $ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip $ unzip Vgabios-cirrus.zip $ cd ..
You can now run tint in QEMU:
$ qemu -L build -hda /dev/zero -serial stdio
Ready-made QEMU image
Please follow QEMU#coreboot_v3_.2B_libpayload_.2B_tint these instructions if you want to try out coreboot and tint in QEMU.
| |
I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.
In case this is not legally possible: |