summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_display.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-02-04 15:00:09 -0800
committerChromeBot <chrome-bot@google.com>2013-02-06 17:38:03 -0800
commit5ca4ea087a3d67c2a639e8b9254f51f076bf85fa (patch)
treebd5de84d148b867c9cb342815bb2cf858c45557b /firmware/lib/vboot_display.c
parent9a8e79cc2642381b24078b5ebb2dff7558f10c62 (diff)
downloadvboot-5ca4ea087a3d67c2a639e8b9254f51f076bf85fa.tar.gz
EC software sync uses precomputed hash if available
This removes the need to load the EC code at all when the precomputed hash matches. BUG=chrome-os-partner:17606 BRANCH=spring TEST=wouldn't that be nice Change-Id: If4438b9db8b1449b8fd4d90ef3acb3bbec5e09a0 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/42567
Diffstat (limited to 'firmware/lib/vboot_display.c')
-rw-r--r--firmware/lib/vboot_display.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c
index b5488486..bd86d654 100644
--- a/firmware/lib/vboot_display.c
+++ b/firmware/lib/vboot_display.c
@@ -497,6 +497,12 @@ const char *RecoveryReasonString(uint8_t code)
case VBNV_RECOVERY_EC_EXPECTED_IMAGE:
return "EC software sync error "
"obtaining expected EC image from BIOS";
+ case VBNV_RECOVERY_EC_EXPECTED_HASH:
+ return "EC software sync error "
+ "obtaining expected EC hash from BIOS";
+ case VBNV_RECOVERY_EC_HASH_MISMATCH:
+ return "EC software sync error "
+ "comparing expected EC hash and image";
case VBNV_RECOVERY_EC_UPDATE:
return "EC software sync error updating EC";
case VBNV_RECOVERY_EC_JUMP_RW: