Difference between revisions of "Coreinfo"
m |
(→Building coreinfo: Fix build instructions for recent libpayload versions.) |
||
| Line 16: | Line 16: | ||
The coreinfo payload uses [[libpayload]], thus you need to get that first and build it: | The coreinfo payload uses [[libpayload]], thus you need to get that first and build it: | ||
| − | $ mkdir foo | + | $ '''mkdir foo''' |
| − | $ cd foo | + | $ '''cd foo''' |
| − | $ svn co svn://coreboot.org/repos/trunk/payloads/libpayload | + | $ '''svn co svn://coreboot.org/repos/trunk/payloads/libpayload libpayload-source''' |
| − | $ cd libpayload | + | $ '''cd libpayload-source''' |
| − | $ make menuconfig | + | $ '''make menuconfig''' |
| − | $ make | + | $ '''make''' |
| + | $ '''make DESTDIR=.. install''' | ||
=== coreinfo === | === coreinfo === | ||
| Line 27: | Line 28: | ||
You can then get coreinfo itself and build it: | You can then get coreinfo itself and build it: | ||
| − | $ cd .. | + | $ '''cd ..''' |
| − | $ svn co svn://coreboot.org/repos/trunk/payloads/coreinfo | + | $ '''svn co svn://coreboot.org/repos/trunk/payloads/coreinfo''' |
| − | $ cd coreinfo | + | $ '''cd coreinfo''' |
| − | $ make menuconfig | + | $ '''make menuconfig''' |
| − | $ make | + | $ '''make''' |
The file '''build/coreinfo.elf''' is your final coreinfo payload which you can use with coreboot (v2 or v3), either on real hardware or in a QEMU image. | The file '''build/coreinfo.elf''' is your final coreinfo payload which you can use with coreboot (v2 or v3), either on real hardware or in a QEMU image. | ||
| Line 39: | Line 40: | ||
Finally, you have to build coreboot (v3 in this example) with coreinfo as payload: | Finally, you have to build coreboot (v3 in this example) with coreinfo as payload: | ||
| − | $ cd .. | + | $ '''cd ..''' |
| − | $ svn co svn://coreboot.org/repository/coreboot-v3 | + | $ '''svn co svn://coreboot.org/repository/coreboot-v3''' |
| − | $ cp coreinfo/build/coreinfo.elf coreboot-v3/payload.elf | + | $ '''cp coreinfo/build/coreinfo.elf coreboot-v3/payload.elf''' |
| − | $ cd coreboot-v3 | + | $ '''cd coreboot-v3''' |
| − | $ make menuconfig | + | $ '''make menuconfig''' |
Now enter the '''Payload''' menu and select '''Payload type''' and then '''An ELF executable payload file'''. Now exit the menu, save your settings, and build coreboot: | Now enter the '''Payload''' menu and select '''Payload type''' and then '''An ELF executable payload file'''. Now exit the menu, save your settings, and build coreboot: | ||
| − | $ make | + | $ '''make''' |
The file '''build/coreboot.rom''' (or '''build/bios.bin''') is your final coreboot v3 image, which also contains the coreinfo payload. | The file '''build/coreboot.rom''' (or '''build/bios.bin''') is your final coreboot v3 image, which also contains the coreinfo payload. | ||
Revision as of 12:30, 3 July 2009
coreinfo is a small informational payload for coreboot. Currently, it can display CPU information, PCI information, coreboot table information, and show an NVRAM dump.
Contents |
Screenshots
Building coreinfo
libpayload
The coreinfo payload uses libpayload, thus you need to get that first and build it:
$ mkdir foo $ cd foo $ svn co svn://coreboot.org/repos/trunk/payloads/libpayload libpayload-source $ cd libpayload-source $ make menuconfig $ make $ make DESTDIR=.. install
coreinfo
You can then get coreinfo itself and build it:
$ cd .. $ svn co svn://coreboot.org/repos/trunk/payloads/coreinfo $ cd coreinfo $ make menuconfig $ make
The file build/coreinfo.elf is your final coreinfo payload which you can use with coreboot (v2 or v3), either on real hardware or in a QEMU image.
coreboot
Finally, you have to build coreboot (v3 in this example) with coreinfo as payload:
$ cd .. $ svn co svn://coreboot.org/repository/coreboot-v3 $ cp coreinfo/build/coreinfo.elf coreboot-v3/payload.elf $ cd coreboot-v3 $ make menuconfig
Now enter the Payload menu and select Payload type and then An ELF executable payload file. Now exit the menu, save your settings, and build coreboot:
$ make
The file build/coreboot.rom (or build/bios.bin) is your final coreboot v3 image, which also contains the coreinfo payload.
Running coreinfo in QEMU
For running coreboot+coreinfo image in QEMU, you need a patched version of vgabios-cirrus.bin in your build directory first:
$ cd build $ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip $ unzip Vgabios-cirrus.zip $ cd ..
You can now run coreinfo in QEMU:
$ qemu -L build -hda /dev/zero -serial stdio
Ready-made coreinfo QEMU image
If you don't want to build libpayload, coreinfo, and coreboot from source, you can also use the ready-made coreinfo QEMU image by following the instructions on that page.
| |
I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.
In case this is not legally possible: |