diff options
author | Nikolai Artemiev <nartemiev@google.com> | 2023-02-21 13:52:32 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-16 02:40:04 +0000 |
commit | 4976c1a60ca660d530e6dcaeb6dbd6fe4403fed7 (patch) | |
tree | f3dc4223f38823b051e8ca6c29fcf9c6a142f126 /futility/updater.h | |
parent | e29eac41dce1a5e423d739fc47abfd2b2bda22df (diff) | |
download | vboot-4976c1a60ca660d530e6dcaeb6dbd6fe4403fed7.tar.gz |
futility: Add `flash` subcommandstabilize-15393.48.Brelease-R113-15393.Bfirmware-skyrim-15390.B
Add a new subcommand for getting/setting flash properties such as
the flash size and writeprotect configuration.
The operations provided by `futility flash` require less information
from the user and are less error prone than the equivalents provided by
`flashrom`.
For example, --wp-enable automatically choses the protection range based
on the firmware image and --wp-status gives a warning if the protection
range does not match the RO firmware region.
BUG=b:268574030
BRANCH=none
TEST=`futility flash --{flash-size,wp-enable,wp-disable,wp-status}`
Co-authored-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Change-Id: I36d7468616a5bcdf3c4542d48652bd24c3377a61
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4279661
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'futility/updater.h')
-rw-r--r-- | futility/updater.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/futility/updater.h b/futility/updater.h index 3d04cb4e..1b371f9c 100644 --- a/futility/updater.h +++ b/futility/updater.h @@ -12,7 +12,8 @@ #include "updater_utils.h" /* FMAP section names. */ -static const char * const FMAP_RO_FMAP = "FMAP", +static const char * const FMAP_RO = "WP_RO", + * const FMAP_RO_FMAP = "FMAP", * const FMAP_RO_FRID = "RO_FRID", * const FMAP_RO_SECTION = "RO_SECTION", * const FMAP_RO_CBFS = "COREBOOT", |