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-14 03:11:14 +0000 |
commit | 26cb4f2d56ade573588aaa8f20ca38402da09c86 (patch) | |
tree | 3627adedf6b637cbc787e12c3c0d7bda30ac92c9 /futility/updater.c | |
parent | 92ea19ae091482484c84d7b09049f7dc74bf6f42 (diff) | |
download | vboot-26cb4f2d56ade573588aaa8f20ca38402da09c86.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>
Diffstat (limited to 'futility/updater.c')
-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; } |