[flashrom] [PATCH] ichspi.c: warn user when a protected region is detected

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Sun Nov 27 00:35:43 CET 2011


This includes the notorious read-only flash descriptors and locked ME regions.
---
non-verbose sample output from my laptop:
[…]
Found chipset "Intel QS57". Enabling flash write... WARNING: SPI Configuration Lockdown activated.
WARNING: Flash Descriptor region is not fully accessible and flashrom can
not deal with this correctly yet. Intel does not provide us the necessary
documention to support this. Please send a verbose log to
flashrom at flashrom.org if this board is not listed on
http://flashrom.org/Supported_hardware#Supported_mainboards yet.
WARNING: Management Engine region is not fully accessible and flashrom can
not deal with this correctly yet. Intel does not provide us the necessary
documention to support this. Please send a verbose log to
flashrom at flashrom.org if this board is not listed on
http://flashrom.org/Supported_hardware#Supported_mainboards yet.
OK.
Found Winbond flash chip "W25X64" (8192 kB, SPI) at physical address 0xff800000.
[…]

Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
---
 ichspi.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ichspi.c b/ichspi.c
index 78cdb3b..4bd04d0 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1447,6 +1447,15 @@ static void do_ich9_spi_frap(uint32_t frap, int i)
 
 	msg_pdbg("0x%08x-0x%08x is %s\n", base, (limit | 0x0fff),
 		 access_names[rwperms]);
+	if (rwperms != 0x3)
+		msg_pinfo("WARNING: %s region is not fully accessible and "
+			  "flashrom can\nnot deal with this correctly yet. "
+			  "Intel does not provide us the necessary\n"
+			  "documention to support this. Please send a verbose "
+			  "log to\nflashrom at flashrom.org if this board is not "
+			  "listed on\n"
+			  "http://flashrom.org/Supported_hardware#Supported_mainboards "
+			  "yet.\n", region_names[i]);
 }
 
 	/* In contrast to FRAP and the master section of the descriptor the bits
-- 
1.7.1





More information about the flashrom mailing list