diff options
author | Hung-Te Lin <hungte@chromium.org> | 2019-11-13 22:14:36 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-20 06:32:41 +0000 |
commit | ff4aa00ced6013ad31da9d877c66152cac2e96c6 (patch) | |
tree | 801646232c2aa25d8d4feea2734f589d438814e5 | |
parent | 2492de15ff4ed3b80444df6c32a43d41693d2958 (diff) | |
download | vboot-ff4aa00ced6013ad31da9d877c66152cac2e96c6.tar.gz |
futility: updater: Correct EC RO name in CBFS
The EC RO name inside CBFS is actually 'ecro' instead of 'ec_ro'.
BRANCH=None
BUG=b:141965252
TEST=make clean && make runtests
Run 'futility update -i image.bin -e ec.bin --mode=recovery'
Change-Id: I2ede0bfbd550d343726df893ce707e82d77d5f30
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1913689
Reviewed-by: Joel Kitching <kitching@chromium.org>
(cherry picked from commit 26cb4f2d56ade573588aaa8f20ca38402da09c86)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1924293
Reviewed-by: Shelley Chen <shchen@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r-- | futility/updater.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/futility/updater.c b/futility/updater.c index 97daf556..fcc44955 100644 --- a/futility/updater.c +++ b/futility/updater.c @@ -1553,8 +1553,8 @@ static int ec_ro_software_sync(struct updater_config *cfg) ERROR("EC image has invalid section '%s'.\n", "EC_RO"); return 1; } - if (cbfs_extract_file(tmp_path, FMAP_RO_SECTION, "ec_ro", ec_ro_path) || - !cbfs_file_exists(tmp_path, FMAP_RO_SECTION, "ec_ro.hash")) { + if (cbfs_extract_file(tmp_path, FMAP_RO_SECTION, "ecro", ec_ro_path) || + !cbfs_file_exists(tmp_path, FMAP_RO_SECTION, "ecro.hash")) { INFO("No valid EC RO for software sync in AP firmware.\n"); return 1; } |