diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-06-08 21:49:00 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-13 21:23:59 -0700 |
commit | 68079d94a66830ae25bb0c6d6b5ac53555e05fd9 (patch) | |
tree | 7304fe8b7b8b9fbd243808f1e7b189014a99ec75 /common/system.c | |
parent | 01213a574f4d8ebe6cc295d1dc614feeb3a79adb (diff) | |
download | chrome-ec-68079d94a66830ae25bb0c6d6b5ac53555e05fd9.tar.gz |
g: show RW headers' Board ID fields in 'version' output
The contents of the board ID fields of the Cr50 image headers is an
important piece of information which determines if an image can run on
a particular H1 chip.
This patch adds this information to the output of the 'version'
command, printing both the contents of the fields of the RW images and
if the image would run with the current INFO1 board ID contents (Yes
or NO).
The board_id feature is in fact g chipset specific, this is why
board_id support files are being moved from the cr50 board scope to
the g chip scope.
BRANCH=cr50
BUG=b:35587387,b:35587053
TEST=observed expected output in the version command:
> bid
Board ID: 000000fa, flags 000000ff
> vers
Chip: g cr50 B2-C
Board: 0
RO_A: * 0.0.10/29d77172
RO_B: 0.0.10/c2a3f8f9
RW_A: * 0.0.20/DBG/cr50_v1.1.6542-856c3aff4
RW_B: 0.0.20/DBG/cr50_v1.1.6543-2c68a2630+
BID A: 00000000:00000000:00000000 Yes
BID B: 000000ea:0000fffc:000000ff No
Build: 0.0.20/DBG/cr50_v1.1.6542-856c3aff4
tpm2:v0.0.289-cb2de5a
cryptoc:v0.0.8-6283eee
2017-06-09 15:34:19 vbendeb@eskimo.mtv.corp.google.com
>
Change-Id: I5b283abf304a7408ca8f424407044fca238185e1
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/530033
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r-- | common/system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/system.c b/common/system.c index b9e444c71c..8e1a123b39 100644 --- a/common/system.c +++ b/common/system.c @@ -960,6 +960,7 @@ static int command_version(int argc, char **argv) ccprintf("RW: %s\n", system_get_version(SYSTEM_IMAGE_RW)); #endif + system_print_extended_version_info(); print_build_string(); return EC_SUCCESS; |