mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
Warn of one-time programmable (OTP) memory
Some flash chips contain OTP memory that we cannot read or write (yet). This prohibits us from cloning them, hence warn the user if we detect it. Not all variations of the tagged chips contain OTP memory. They are often only enabled on request or have there own ordering numbers. There is usually no way to distinguish them. Because this is a supposedly seldomly used feature the warning is shown in with dbg verbosity. The manpage is extended to describe the backgrounds a bit. Corresponding to flashrom svn r1493. This patch is based on the idea and code of Daniel Lenski. Signed-off-by: Daniel Lenski <dlenski@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:

committed by
Stefan Tauner

parent
b286da7ffc
commit
65922a3860
@ -1560,6 +1560,13 @@ int selfcheck(void)
|
||||
|
||||
void check_chip_supported(const struct flashctx *flash)
|
||||
{
|
||||
if (flash->feature_bits & FEATURE_OTP) {
|
||||
msg_cdbg("This chip may contain one-time programmable memory. "
|
||||
"flashrom cannot read\nand may never be able to write "
|
||||
"it, hence it may not be able to completely\n"
|
||||
"clone the contents of this chip (see man page for "
|
||||
"details).\n");
|
||||
}
|
||||
if (TEST_OK_MASK != (flash->tested & TEST_OK_MASK)) {
|
||||
msg_cinfo("===\n");
|
||||
if (flash->tested & TEST_BAD_MASK) {
|
||||
|
Reference in New Issue
Block a user