[coreboot] Read the Coreboot version in the .rom binary
patrick at georgi-clan.de
Wed Jan 28 16:03:32 CET 2015
Am 2015-01-28 15:39, schrieb Patrick Agrain:
> Is there a way to read the coreboot version (as a string or as binary
> chain) from inside the build coreboot.rom file.
On x86, it's stored through src/arch/x86/lib/id.inc
It's a somewhat arcane format (historically grown), and is typically
0x80 bytes before the end of the image. The last 4 qwords are the .long
values from which you can calculate the address of the version field
test_id_section() and its caller provide an example for parsing that.
More information about the coreboot