diff options
author | Nikolai Artemiev <nartemiev@google.com> | 2022-12-09 15:23:08 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-12-18 00:41:08 +0000 |
commit | 92874fa6a7dd60c5a6451816992c2ad41aa3a7a7 (patch) | |
tree | b55cc04e41214b02d2546d6b5323bd2514e16a54 /scripts | |
parent | 23018faa986c6a65ad491a771bb2716e0e87ae74 (diff) | |
download | flashrom-92874fa6a7dd60c5a6451816992c2ad41aa3a7a7.tar.gz flashrom-92874fa6a7dd60c5a6451816992c2ad41aa3a7a7.tar.bz2 flashrom-92874fa6a7dd60c5a6451816992c2ad41aa3a7a7.zip |
flashrom: Check for flash access restricitons in verify_range()
Make verify_flash() skip read/write-protected regions based on the
FLASHROM_FLAG_SKIP_UNREADABLE and FLASHROM_FLAG_SKIP_UNWRITABLE flags.
If FLASHROM_FLAG_SKIP_UNREADABLE is false, read-protected regions will cause
verification to fail.
If FLASHROM_FLAG_SKIP_UNWRITABLE is false, read-only regions will still
be verified and any mismatch will cause verification to fail. It can be
useful to set the flag to true so that expected mismatches in read-only
regions are ignored by verify_range() after flashing.
BUG=b:260440773
BRANCH=none
TEST=flashrom -v on dedede (JSL)
Change-Id: I61dfadd3c75365f2e55abeea75f673ab791ca5cc
CoAuthored-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/70515
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions