coreboot/payloads
Ronald G. Minnich 4cea3a19f8 Add support for ram payloads
This is enabled by CONFIG_RAMPAYLOAD.

The code will look for a ram payload and, if it is found, try
to run it. If the load fails or the payload returns it will
continue with ramstage.

We also include a new payload, linuxcheck, which is intended
to verify that linux can be loaded and run, e.g. as a LinuxBoot
payload. Currently, it fails.

This does not yet work but it makes sense as a foundation on which
to build. For one thing, we need to build at least a few tables
for Linux. The goal for LinuxBoot is to build as few as possible.

To test with linuxcheck (linux is not even close to working):
cd payloads/linuxcheck/
cp x86config  .config
make

cd ../..
make

./build/cbfstool build/coreboot.rom add-payload -n fallback/rampayload -f payloads/linuxcheck/linuxcheck.elf

qemu-system-x86_64 -nographic -m 8192 -bios build/coreboot.rom -monitor /dev/pts/$1 -s

We need to change the payload menu so we can add a rampayload but it's a bit
tricky as written, so that must come later.

Note that I'm still creating a special purpose romselfboot. The idea of
merging romselfboot and selfboot is probably a good idea -- in the future.
I think until we know how this should look, such a merge is premature.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>

Change-Id: I8199aae6776f6dee969b370b0e6a41ef96e854d8
clang-formatted-by: Ronald G. Minnich
Reviewed-on: https://review.coreboot.org/28402
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
2018-09-01 17:16:04 +00:00
..
bayou payloads: change coreboot to lowercase 2017-06-07 12:08:55 +02:00
coreinfo util/cbfstool: Support FIT payloads 2018-06-15 09:13:24 +00:00
external payloads/external/Memtest86Plus: allow for selecting a specific revision 2018-08-22 15:34:35 +00:00
libpayload libpayload/x86/exception: Add methods to enable/disable interrupts 2018-08-23 16:24:44 +00:00
linuxcheck Add support for ram payloads 2018-09-01 17:16:04 +00:00
nvramcui payloads/nvramcui/payload.sh: Fix shellcheck warnings 2018-01-24 23:01:35 +00:00
Kconfig payloads/external/Memtest86Plus: allow for selecting a specific revision 2018-08-22 15:34:35 +00:00
Makefile.inc Add support for ram payloads 2018-09-01 17:16:04 +00:00