From dfb0e57c388ed300680a678b487cbc6ad6bddaef Mon Sep 17 00:00:00 2001 From: Matthew Shyu Date: Tue, 3 Jan 2023 08:35:36 +0000 Subject: [PATCH 1/2] debug boot_param v2015 Change-Id: I3d580b83e429071655c7d01bcee2f565e95406eA --- common/cmd_bootm.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 2f149cefe13..4ae7f9bc2ff 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -283,6 +283,20 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) memcpy(boot_params.verified_boot_hash, vbmeta_digest, sizeof(boot_params.verified_boot_hash)); + printf("device_locked = %d.\n", boot_params.device_locked); + printf("verified_boot_state = %d.\n", boot_params.verified_boot_state); + uint32_t i = 0; + + printf("verified_boot_key\n"); + for (i = 0; i < SHA256_DIGEST_SIZE; i++) + printf("%02x", boot_params.verified_boot_key[i]); + + printf("\n"); + printf("verified_boot_hash\n"); + for (i = 0; i < SHA256_DIGEST_SIZE; i++) + printf("%02x", boot_params.verified_boot_hash[i]); + printf("\n"); + if (set_boot_params(&boot_params) < 0) { printf("failed to set boot params.\n"); } -- 2.29.0