For correctness do a read-modify-write of the ROM write-protect area.
Please test on a Geode platform.
Marc
--
Marc Jones
Senior Firmware Engineer
(970) 226-9684 Office
mailto:[EMAIL PROTECTED]
http://www.amd.com/embeddedprocessors
Correctly disable the ROM area Write Protect bit in the Geode LX.
signed-off by: Marc Jones <[EMAIL PROTECTED]>
Index: LinuxBIOSv2/util/flashrom/chipset_enable.c
===================================================================
--- LinuxBIOSv2.orig/util/flashrom/chipset_enable.c 2008-01-24
15:13:50.000000000 -0700
+++ LinuxBIOSv2/util/flashrom/chipset_enable.c 2008-01-24 15:14:46.000000000
-0700
@@ -256,7 +256,7 @@
close(fd_msr);
if (buf[7] != 0x22) {
printf("Enabling Geode MSR to write to flash.\n");
- buf[7] = 0x22;
+ buf[7] &= 0xFB;
fd_msr = open("/dev/cpu/0/msr", O_WRONLY);
if (!fd_msr) {
perror("open msr");
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot