Author: oxygene Date: Fri Jan 21 08:04:05 2011 New Revision: 6282 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6282
Log: There's another place where nvramtool can look for the CMOS checksum specification. When using nvramtool on files (instead of CMOS and runtime firmware) it's the only place.
Signed-off-by: Patrick Georgi patrick.georgi@secunet.com Acked-by: Stefan Reinauer stepan@coreboot.org
Modified: trunk/util/nvramtool/lbtable.c
Modified: trunk/util/nvramtool/lbtable.c ============================================================================== --- trunk/util/nvramtool/lbtable.c Thu Jan 20 07:28:25 2011 (r6281) +++ trunk/util/nvramtool/lbtable.c Fri Jan 21 08:04:05 2011 (r6282) @@ -632,6 +632,10 @@
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. */