From 0bbd42b38a1acc04b93a66b0b029413ddc794b2a Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 3 May 2022 08:21:47 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3624499 Reviewed-by: Vadim Bendebury --- util/ap_ro_hash.py | 1 + 1 file changed, 1 insertion(+) 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') -- cgit v1.2.1