diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-06-01 22:07:04 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-03-13 23:50:20 +0000 |
commit | 4c3282fe24b10423d28b80682dd1be22e1d881d0 (patch) | |
tree | 6d84a5164cc4538e322009e8e8d66857626e1f66 /board/hoho/dev_key.pem | |
parent | 0215f0cf8513f7294d02da35b9d3134d10b9dcdd (diff) | |
download | chrome-ec-4c3282fe24b10423d28b80682dd1be22e1d881d0.tar.gz |
Cr50: usb_updater: add commands to get/set board id
This patch enhances the Cr50 usb_updater to allow to get and set Board
ID value saved in the Cr50's INFO1 space using the earlier introduced
dedicated vendor commands.
Getting or Setting the board ID does not require establishing a
connection with the Cr50, the new option is --board_id/-i. When
specified without a parameter, the new option will cause the Board ID
to be read. When specified with a parameter, the board ID value will
be set. The parameter includes one or two values in a single string,
the values separated by a colon.
The first value is a 4 byte board ID, and the second value is the
flags field. The default flags field is set to 0xff00.
BRANCH=cr50
BUG=b:35587387,b:35587053
TEST=verified that it is possible to get and set the board ID value
using usb_updater, both over USB and TPM.
verified that it is not possible to set a new board ID value is
the INFO1 space has been already programmed.
verified that it is not possible to set a board ID value which
would not allow the currently running image to start (even
though there is no run time check yet).
Original Change-Id: Ief175d8b2ef3177db13fa86f831914088d9447b0
Original Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original Reviewed-on: https://chromium-review.googlesource.com/525096
Original Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Change-Id: I7bf66fe6c3ad3515d82444ba1ab956aca866acda
Reviewed-on: https://chromium-review.googlesource.com/958717
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Marco Chen <marcochen@chromium.org>
Diffstat (limited to 'board/hoho/dev_key.pem')
0 files changed, 0 insertions, 0 deletions