diff options
Diffstat (limited to 'firmware/2lib/include/2recovery_reasons.h')
-rw-r--r-- | firmware/2lib/include/2recovery_reasons.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/firmware/2lib/include/2recovery_reasons.h b/firmware/2lib/include/2recovery_reasons.h index c305dd62..3633fe1b 100644 --- a/firmware/2lib/include/2recovery_reasons.h +++ b/firmware/2lib/include/2recovery_reasons.h @@ -48,15 +48,20 @@ enum vb2_nv_recovery { /* Test error from LoadFirmware() (deprecated) */ VB2_RECOVERY_RO_TEST_LF = 0x09, - /* - * RW firmware failed signature check (neither RW firmware slot was - * valid). Recovery reason is VB2_RECOVERY_RO_INVALID_RW_CHECK_MIN + - * the check value for the slot which came closest to validating; see - * VBSD_LF_CHECK_* in vboot_struct.h. - */ - // TODO: pass back those codes from vboot2? - VB2_RECOVERY_RO_INVALID_RW_CHECK_MIN = 0x10, - VB2_RECOVERY_RO_INVALID_RW_CHECK_MAX = 0x1F, + /* Latest tried RW firmware keyblock verification failed */ + VB2_RECOVERY_FW_KEYBLOCK = 0x13, + + /* Latest tried RW firmware key version too old */ + VB2_RECOVERY_FW_KEY_ROLLBACK = 0x14, + + /* Latest tried RW firmware preamble verification failed */ + VB2_RECOVERY_FW_PREAMBLE = 0x16, + + /* Latest tried RW firmware version too old */ + VB2_RECOVERY_FW_ROLLBACK = 0x17, + + /* Latest tried RW firmware body verification failed */ + VB2_RECOVERY_FW_BODY = 0x1b, /* * Firmware boot failure outside of verified boot (RAM init, missing |