coreboot-kgpe-d16/util/nvramtool
Patrick Rudolph 7ee05eddf1 util/cbfstool: Support FIT payloads
In order to support booting a GNU/Linux payload on non x86, the FIT format
should be used, as it is the defacto standard on ARM.
Due to greater complexity of FIT it is not converted to simple ELF format.

Add support for autodecting FIT payloads and add them as new CBFS_TYPE 'fit'.
The payload is included as is, with no special header.
The code can determine the type at runtime using the CBFS_TYPE field.
Support for parsing FIT payloads in coreboot is added in a follow on
commit.
Compression of FIT payloads is not supported, as the FIT sections might be
compressed itself.

Starting at this point a CBFS payload/ can be either of type FIT or SELF.

Tested on Cavium SoC.

Change-Id: Ic5fc30cd5419eb76c4eb50cca3449caea60270de
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/25860
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2018-06-15 09:13:24 +00:00
..
accessors nvramtool: Fix build with OpenBSD 2018-04-16 22:18:26 +00:00
cli Use www.coreboot.org over coreboot.org 2017-06-07 12:05:44 +02:00
COPYING
ChangeLog
DISCLAIMER Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
Makefile nvramtool: Fix build with OpenBSD 2018-04-16 22:18:26 +00:00
Makefile.inc
README Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
cbfs.c
cbfs.h util/cbfstool: Support FIT payloads 2018-06-15 09:13:24 +00:00
cmos_lowlevel.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
cmos_lowlevel.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
cmos_ops.c util: change coreboot to lowercase 2017-06-27 18:26:01 +00:00
cmos_ops.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
common.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
common.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
compute_ip_checksum.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
coreboot_tables.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
hexdump.c
hexdump.h
input_file.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
input_file.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
ip_checksum.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
layout.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
layout.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
lbtable.c util: change coreboot to lowercase 2017-06-27 18:26:01 +00:00
lbtable.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
nvramtool.spec
reg_expr.c Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
reg_expr.h Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
win32mmap.c

README

Summary of Operation
--------------------
nvramtool is a utility for reading/writing coreboot parameters and
displaying information from the coreboot table.  It is intended for x86-based
systems (both 32-bit and 64-bit) that use coreboot.

The coreboot table resides in low physical memory, and may be accessed
through the /dev/mem interface.  It is created at boot time by coreboot, and
contains various system information such as the type of mainboard in use.  It
specifies locations in the CMOS (nonvolatile RAM) where the coreboot
parameters are stored.

For information about coreboot, see https://www.coreboot.org/.

Ideas for Future Improvements
-----------------------------
1.  Move the core functionality of this program into a shared library.
2.  Consider adding options for displaying other BIOS-provided information
    such as the MP table, ACPI table, PCI IRQ routing table, etc.