summaryrefslogtreecommitdiff
path: root/extra/usb_updater/verify_ro.c
diff options
context:
space:
mode:
authorWei-Cheng Xiao <garryxiao@chromium.org>2018-10-15 13:21:56 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-25 15:19:00 -0700
commit80c5282b54a53702aee9078226efab55c5869861 (patch)
tree08e3a056fc73c960bec5a0c3a27aba76355e0001 /extra/usb_updater/verify_ro.c
parent33f6d2d5d32cc24792c463ba730bb79a82a4a529 (diff)
downloadchrome-ec-80c5282b54a53702aee9078226efab55c5869861.tar.gz
gsctool: add machine output support (-M) to FW image info (-b)
Now can print out FW versions and board ID in the image in a machine-friendly way. This allows other programs (e.g., debugd) to parse the output. Add equality check to the firmware versions and board IDs in slot A and B. Now gsctool prints out an error message to stdout if the contents do not match; otherwise, it prints out only one copy of the contents instead of two. Sample runs: $ gsctool -b cr50.bin.prod RO_A:0.0.10 RW_A:0.3.10[ABCD:00000000:00000000] $ gsctool -b cr50.bin.prod -M IMAGE_RO_FW_VER=0.0.10 IMAGE_RW_FW_VER=0.3.10 IMAGE_BID_STRING=ABCD IMAGE_BID_MASK=00000000 IMAGE_BID_FLAGS=00000000 BRANCH=none BUG=None TEST=manually run gsctool -M -b cr50.bin.prod and gsctool -b cr50.bin.prod on a soraka device connected with a naultilus. Outputs are as the examples above. Signed-off-by: Wei-Cheng Xiao <garryxiao@chromium.org> Change-Id: I1c4c5110fe236debb93b3db118abb4c922b98bdf Reviewed-on: https://chromium-review.googlesource.com/1278414 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Wei-Cheng Xiao <garryxiao@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'extra/usb_updater/verify_ro.c')
0 files changed, 0 insertions, 0 deletions