diff options
author | Duncan Laurie <dlaurie@google.com> | 2019-02-28 13:17:51 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-01 15:50:48 -0800 |
commit | 5c298d83faaf29a10bc411e074c0c61fcc10b68a (patch) | |
tree | 2a764e385f1b7c3277b367f2bc9de1869eaca26a | |
parent | 0e9bab362524168cea66476cd418322b9587a5f0 (diff) | |
download | vboot-5c298d83faaf29a10bc411e074c0c61fcc10b68a.tar.gz |
updater: Preserve SI_GBE and SI_PDR if present
On a full firmware update we need to preserve these regions:
SI_GBE contains the unique MAC address for the system
SI_PDR contains data from the factory and diagnostics
BUG=b:126637087
BRANCH=none
TEST=futility update image-sarien.bin
Change-Id: I2981c8cc478617029934ef3fbdb1c446c858fad8
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1493629
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
-rw-r--r-- | futility/updater.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/futility/updater.c b/futility/updater.c index 0880208d..e3f97277 100644 --- a/futility/updater.c +++ b/futility/updater.c @@ -1036,6 +1036,12 @@ static int preserve_images(struct updater_config *cfg) * is finished. */ "RO_FSG", + /* + * TODO(hungte): crbug.com/936768: Remove SI_GBE, SI_PDR after + * both migrated to the new FMAP based preserve method. + */ + "SI_GBE", + "SI_PDR" }; errcnt += preserve_gbb(from, to, !cfg->factory_update); |