diff options
author | Duncan Laurie <dlaurie@google.com> | 2018-03-08 19:34:59 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-28 19:34:28 -0700 |
commit | bc5a737d39891b5f7384d9662d2ee55cb33b541f (patch) | |
tree | 26fb419a3b9eee9c09ccbd4a1b95b0b75202de92 | |
parent | a872e9b49e2690da00baf183e216931ba1ef0e6b (diff) | |
download | vboot-bc5a737d39891b5f7384d9662d2ee55cb33b541f.tar.gz |
ec_sync: Add recovery reason for aux update failure
Add a distinct recovery reason for aux firmware update failures
so we have some visibility into failures in eventlog.
This is used in a subsequent commit.
BUG=b:74336712
BRANCH=eve
TEST=manual: force update failure and ensure device goes to recovery
with this reason
Change-Id: I4b215444592b7c31cd25d59ad2a52b85d504e3bf
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/959669
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | firmware/2lib/include/2recovery_reasons.h | 3 | ||||
-rw-r--r-- | firmware/lib/vboot_display.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/firmware/2lib/include/2recovery_reasons.h b/firmware/2lib/include/2recovery_reasons.h index 0b978edd..a35892c2 100644 --- a/firmware/2lib/include/2recovery_reasons.h +++ b/firmware/2lib/include/2recovery_reasons.h @@ -132,6 +132,9 @@ enum vb2_nv_recovery { /* Error determining firmware slot */ VB2_RECOVERY_FW_SLOT = 0x2f, + /* Error updating AUX firmware */ + VB2_RECOVERY_AUX_FW_UPDATE = 0x30, + /* Unspecified/unknown error in read-only firmware */ VB2_RECOVERY_RO_UNSPECIFIED = 0x3f, diff --git a/firmware/lib/vboot_display.c b/firmware/lib/vboot_display.c index 6d6f7abe..947fb42f 100644 --- a/firmware/lib/vboot_display.c +++ b/firmware/lib/vboot_display.c @@ -201,6 +201,8 @@ const char *RecoveryReasonString(uint8_t code) return "Error reading or updating developer switch"; case VB2_RECOVERY_FW_SLOT: return "Error selecting RW firmware slot"; + case VB2_RECOVERY_AUX_FW_UPDATE: + return "Error updating AUX firmware"; case VB2_RECOVERY_RO_UNSPECIFIED: return "Unspecified/unknown error in RO firmware"; case VB2_RECOVERY_RW_DEV_SCREEN: |