Hi, This patch tells nvramtool about another place where it can find information about the CMOS checksum location and range before it reverts to its own default values.
Signed-off-by: Patrick Georgi <[email protected]> -- Patrick Georgi SINA-Development - High Security secunet Security Networks AG - Mergenthalerallee 77 - 65760 Eschborn, Germany Phone +49 201 54 54-3610 - Fax +49 201 54 54-1325 - www.secunet.com Sitz: Kronprinzenstraße 30, 45128 Essen / Amtsgericht Essen HRB 13615 Vorstand: Dr. Rainer Baumgart (Vors.), Thomas Koelzer, Thomas Pleines Aufsichtsratsvorsitzender: Dr. Karsten Ottenberg
Index: coreboot/util/nvramtool/lbtable.c
===================================================================
--- coreboot.orig/util/nvramtool/lbtable.c
+++ coreboot/util/nvramtool/lbtable.c
@@ -632,6 +632,10 @@ static void get_cmos_checksum_info(void)
checksum = (struct cmos_checksum *)find_lbrec(LB_TAG_OPTION_CHECKSUM);
+ if (checksum == NULL) {
+ checksum = (struct cmos_checksum *)next_cmos_rec((const struct lb_record *)first_cmos_table_enum(), LB_TAG_OPTION_CHECKSUM);
+ }
+
if (checksum != NULL) { /* We are lucky. The coreboot table hints us to the checksum.
* We might have to check the type field here though.
*/
signature.asc
Description: This is a digitally signed message part
-- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

