diff options
author | Mary Ruthven <mruthven@chromium.org> | 2022-05-03 08:21:47 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-04 16:48:39 +0000 |
commit | 0bbd42b38a1acc04b93a66b0b029413ddc794b2a (patch) | |
tree | 2918dd0cd26afecb633bfab9cea1dd64db492e7d | |
parent | 6244dfa30c03811409e726931b6bffe98c58f29e (diff) | |
download | chrome-ec-0bbd42b38a1acc04b93a66b0b029413ddc794b2a.tar.gz |
ap_ro_hash: print calculated digest
Print the calculated digest, so we can use it for debugging.
BUG=none
TEST=./ap_ro_hash.py -v True GBB prints a digest that matches the
digest from the trunks_send command and the one saved in cr50.
Change-Id: I686dac5248782ea68d7bab98c2554940cc0b74b3
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3624499
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rwxr-xr-x | util/ap_ro_hash.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/ap_ro_hash.py b/util/ap_ro_hash.py index a432eccfba..8520200c66 100755 --- a/util/ap_ro_hash.py +++ b/util/ap_ro_hash.py @@ -572,6 +572,7 @@ def main(args): read_ro_ranges(ro_check_file, tmpd, ranges) digest = calculate_hash(ro_check_file, ranges) + LOG.log('Saving digest:', digest.hex()) rv = send_to_cr50(ranges, digest) if rv != 0: err_str = error_codes.get(rv, 'Unknown') |