coreboot-kgpe-d16/payloads/coreinfo
Jonathan Neuschäfer 1aca8b898d coreinfo/cbfs: Don't assume that the free space is at the end
On emulation/qemu-i440fx, I get this layout:

  Name                           Offset     Type         Size
  cbfs master header             0x0        cbfs header  32
  fallback/romstage              0x80       stage        14284
  fallback/ramstage              0x38c0     stage        42382
  fallback/payload               0xdec0     payload      1165052
  config                         0x12a600   raw          352
  revision                       0x12a7c0   raw          572
  cmos_layout.bin                0x12aa40   cmos_layout  772
  fallback/dsdt.aml              0x12ad80   raw          4000
  img/coreinfo                   0x12bd80   payload      1165052
  (empty)                        0x2484c0   null         1799192
  bootblock                      0x3ff900   bootblock    1456

... which coreinfo displays in the following way, without this patch:

  cbfs master header
  fallback/romstage
  fallback/ramstage
  fallback/payload
  config
  revision
  cmos_layout.bin
  fallback/dsdt.aml
  img/coreinfo

  <free space>


Change-Id: I21eb1dfbe52921843d28683c9396e9b27caa4fbf
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/14024
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
2016-03-11 18:41:41 +01:00
..
COPYING
Kconfig tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile coreinfo/Makefile: change $(obj) to $(coreinfo_obj) 2016-03-11 18:27:26 +01:00
README Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
bootlog_module.c coreinfo: Rewrite bootlog_module 2015-11-21 18:03:40 +01:00
cbfs_module.c coreinfo/cbfs: Don't assume that the free space is at the end 2016-03-11 18:41:41 +01:00
coreboot_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
coreinfo.c coreinfo: Move screen dimensions to header 2015-11-19 17:32:24 +01:00
coreinfo.h coreinfo: Move screen dimensions to header 2015-11-19 17:32:24 +01:00
cpuid.S tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cpuinfo_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lar_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
multiboot_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
nvram_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pci_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ramdump_module.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00

README

This is a silly little program that demonstrates how cool libpayload is
and also serves a purpose.  It is fun and educational!

Requirements
------------

You should use the coreboot reference cross compiler. If you insist on using
your system compiler, some Linux distributions might require you to install
a package called gcc-multilib if you are on a 64bit system.

Build
-----

You need libpayload to build coreinfo. So, first, you need follow the README of 
libpayload to build it but install libpayload into its own directory by doing 
this:

 $ make DESTDIR=/path/to/libpayload/install install

Then you can build coreinfo now:

 $ cd coreinfo

 $ make menuconfig
 
 $ make