From a865b17eff05fa3936494716401f6aa9a9ef6358 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 14 Jan 2011 07:40:24 +0000 Subject: Allow coreboot to initialize CMOS if checksum is invalid. If a file "cmos.default", type "cmos default"(0xaa) is in CBFS, a wrong checksum leads to coreboot rewriting the first 128 bytes (except for clock data) with the data in cmos.default, then reboots the system so every component of coreboot works with the same set of values. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6253 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/cbfstool/cbfs.h | 1 + util/cbfstool/common.c | 1 + 2 files changed, 2 insertions(+) (limited to 'util/cbfstool') diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index 0d33710229..6fb9edd68c 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -76,6 +76,7 @@ struct cbfs_payload { #define CBFS_COMPONENT_VSA 0x51 #define CBFS_COMPONENT_MBI 0x52 #define CBFS_COMPONENT_MICROCODE 0x53 +#define CBFS_COMPONENT_CMOS_DEFAULT 0xaa /* The deleted type is chosen to be a value * that can be written in a FLASH from all other diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index a42585b776..0fb02004d4 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -145,6 +145,7 @@ struct filetypes_t { {CBFS_COMPONENT_VSA, "vsa"}, {CBFS_COMPONENT_MBI, "mbi"}, {CBFS_COMPONENT_MICROCODE, "microcode"}, + {CBFS_COMPONENT_CMOS_DEFAULT, "cmos default"}, {CBFS_COMPONENT_DELETED, "deleted"}, {CBFS_COMPONENT_NULL, "null"} }; -- cgit v1.2.3