From 1d8a82e19b1434d915b581fa80dd5d4da47ea2df Mon Sep 17 00:00:00 2001 From: James Newling Date: Wed, 26 Jun 2024 17:04:04 -0700 Subject: [PATCH 1/2] Remove print statement (pollutes logging of a compiler which uses bootgen) --- cdo-driver/cdo_driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cdo-driver/cdo_driver.c b/cdo-driver/cdo_driver.c index 08b1c7b..6e8e6e6 100755 --- a/cdo-driver/cdo_driver.c +++ b/cdo-driver/cdo_driver.c @@ -145,7 +145,6 @@ void startCDOFileStream(const char* cdoFileName) printf("File could not be opened, fopen Error: %s\n", strerror(errno)); exit(EXIT_FAILURE); } - printf("Generating: %s\n", cdoFileName); } void endCurrentCDOFileStream() From e174cd338f8158207f6b6a64366ab9fbd65fddae Mon Sep 17 00:00:00 2001 From: Charlie Johnston Date: Mon, 29 Jul 2024 15:48:11 -0700 Subject: [PATCH 2/2] 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);