diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2021-10-10 11:02:57 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-19 02:30:49 +0000 |
commit | fd3d2aa11e2f0248c4ca721c4da2eb6f856a8edb (patch) | |
tree | ba9e356b94cab51e30752403e42b017743ad0ddb /board/cr50/board.c | |
parent | 2bf2051125c993a1bcc5584803ab5f06bd675c93 (diff) | |
download | chrome-ec-fd3d2aa11e2f0248c4ca721c4da2eb6f856a8edb.tar.gz |
ap_ro_verification: rework to match the new GVD layout
As a result of further discussion GVD layout has been changed to
include signature and root key headers in the GVD header. This patch
makes modification to accommodate the new header structure.
BUG=b:141191727
TEST=A guybrush RO image created in vboot reference tree as follows:
build/futility/futility vbutil_keyblock --pack ~/tmp/packed \
--datapubkey tests/devkeys/firmware_data_key.vbpubk \
--signprivate tests/devkeys/kernel_subkey.vbprivk
build/futility/futility gscvd --outfile ~/tmp/guybrush-signed \
-R 818100:10000,f00000:100,f80000:2000,f8c000:1000 \
-k ~/tmp/packed -p tests/devkeys/firmware_data_key.vbprivk \
-b 5a5a4352 -r tests/devkeys/kernel_subkey.vbpubk \
~/tmp/image-guybrush.serial.bin
A guybrush device was programmed with ~/tmp/guybrush-signed, and AP
RO verification was attempted by pressing the appropriate button
combination, GVD verification succeeded.
Generate a signed image again, using an incorrect Board ID value, try
verification, observe failure due to incorrect Board ID.
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Change-Id: I4da753649eef6e10353619e0f7af19d2f6846b75
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3224808
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'board/cr50/board.c')
0 files changed, 0 insertions, 0 deletions