[coreboot] [PATCH]Move option table to CBFS

Patrick Georgi Patrick.Georgi at secunet.com
Fri Jan 14 11:39:33 CET 2011


Hi,

currently the option table (which contains the metadata necessary to
parse CMOS data properly) is stored in ramstage. This patch moves it to
CBFS, making it available for inspection by utilities.

The idea is to allow nvramtool to configure cmos defaults (which are
stored in CBFS) by using the table (also stored in CBFS). This requires
some changes to nvramtool, but this is the only necessary change in
coreboot to allow this.

The downside is that cmos_layout.bin is not compressed, while ramstage
(and thus the layout information it contained) usually is. With layout
data being 2kb or less that shouldn't be much of an issue.

Right now, the table is copied into cbtable by coreboot, like it used
to. It would be possible to just link it to the end of cbtable, making
the chain run into flash space, but I didn't do that to minimize the
impact of this patch. I'm not sure if reducing cbtable's RAM use by 2kb
is worth the potential trouble.


Signed-off-by: Patrick Georgi <patrick.georgi at secunet.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20110114-1-option_table-in-cbfs.diff
Type: text/x-patch
Size: 7566 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20110114/2ac900a1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20110114/2ac900a1/attachment.sig>


More information about the coreboot mailing list