[coreboot] [SOLVED] Read the Coreboot version in the .rom binary

Patrick Agrain patrick.agrain at alcatel-lucent.com
Fri Jan 30 16:02:36 CET 2015


Hi Patrick,

Thanks for the tip and the related code snippet. It works like a charm.

Best regards,
Patrick Agrain

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
ends
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

http://review.coreboot.org/gitweb?p=filo.git;a=blob;f=flashupdate/flashupdate.c;h=c0f337d94dc2d4d6cd5c6c4a1746248206d202e7;hb=dd51816080264c2719781ffc5fb40b4de2b0b3d2#l69

test_id_section() and its caller provide an example for parsing that.


Regards,
Patrick





More information about the coreboot mailing list