From e174cd338f8158207f6b6a64366ab9fbd65fddae Mon Sep 17 00:00:00 2001 From: Charlie Johnston Date: Mon, 29 Jul 2024 15:48:11 -0700 Subject: [PATCH] readimage-zynqmp: Add ability to read udf in bootheader The bootheader udf line was commented out, leaving no way to pull that information using bootgen. This change uncomments the line and fixes it to properly print the user defined field for zynqmp. Signed-off-by: Charlie Johnston --- readimage-zynqmp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readimage-zynqmp.cpp b/readimage-zynqmp.cpp index af6993d..f223b3a 100755 --- a/readimage-zynqmp.cpp +++ b/readimage-zynqmp.cpp @@ -370,7 +370,7 @@ void ZynqMpReadImage::DisplayBootHeader(void) DisplayValue("checksum (0x48) : ", bH->headerChecksum); DisplayKey("grey/black_key (0x4c) : ", bH->greyOrBlackKey); DisplayValue("puf_shutter (0x6c) : ", bH->shutterValue); - //DisplayValue("user_defined_feilds (0x70) : ", bH->udf); + DisplayLongValues("user_defined_fields (0x70) : ", (uint8_t*)bH->udf, UDF_BH_SIZE_ZYNQMP * sizeof(uint32_t)); DisplayValue("iht_offset (0x98) : ", bH->imageHeaderByteOffset); DisplayValue("pht_offset (0x9c) : ", bH->partitionHeaderByteOffset); DisplayIV("fsbl_sec_hdr_iv (0xa0) : ", bH->secureHdrIv);