summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2015-01-30 16:46:34 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-03 20:52:17 +0000
commit752b7b20e20d3504549b4059dc233b13a8d41974 (patch)
tree6dd5f92faa9a721ff2f090728020089fa6d0ade7
parentf10e9099286202f83ce4c1dc5ef1e85fcb5ccde7 (diff)
downloadvboot-752b7b20e20d3504549b4059dc233b13a8d41974.tar.gz
crossystem: Add fw_prev_tried and fw_prev_result to output values
CL:221230 added the new NVRAM fields fw_prev_tried and fw_prev_result. It also provided support in the crossystem library to decode these values, but it forgot to add them to the table of allowed crossystem options so they actually cannot be queried by the command line tool. Fix that since this information is useful to debug failures after updating. BRANCH=R41 BUG=chrome-os-partner:36183 TEST=make runtests VBOOT2=1. cros deployed onto Jerry and confirmed fw_prev_tried and fw_prev_result are correct. Change-Id: I8bad7266379d959f5370b7ebeefbbba939c5de06 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/245143 Reviewed-by: Randall Spangler <rspangler@chromium.org> (cherry picked from commit 65ce99b3e2c75bbb416b6edf78b5ea0d7f8c3a94) Reviewed-on: https://chromium-review.googlesource.com/245860
-rw-r--r--utility/crossystem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utility/crossystem.c b/utility/crossystem.c
index 5251f7d7..41ed8494 100644
--- a/utility/crossystem.c
+++ b/utility/crossystem.c
@@ -63,6 +63,8 @@ const Param sys_param_list[] = {
"Firmware to try next (vboot2,writable)"},
{"fw_result", IS_STRING|CAN_WRITE,
"Firmware result this boot (vboot2,writable)"},
+ {"fw_prev_tried", IS_STRING, "Firmware tried on previous boot (vboot2)"},
+ {"fw_prev_result", IS_STRING, "Firmware result of previous boot (vboot2)"},
{"hwid", IS_STRING, "Hardware ID"},
{"kern_nv", 0, "Non-volatile field for kernel use", "0x%08x"},
{"kernkey_vfy", IS_STRING, "Type of verification done on kernel key block"},