From 2c6d9129c8254e185d86131fcae3967c3d4569b8 Mon Sep 17 00:00:00 2001 From: Neil Locketz Date: Mon, 18 Mar 2024 14:02:45 -0400 Subject: [PATCH] Read header information before reading partitions --- readimage-zynqmp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readimage-zynqmp.cpp b/readimage-zynqmp.cpp index af6993d..d78df64 100755 --- a/readimage-zynqmp.cpp +++ b/readimage-zynqmp.cpp @@ -100,6 +100,7 @@ void ZynqMpReadImage::ReadBinaryFile(DumpOption::Type dump, std::string path) { LOG_ERROR("The option '-read/-dump' is not supported on mcs format file : %s", binFilename.c_str()); } + ReadHeaderTableDetails(); ReadPartitions(); } /*******************************************************************************/ @@ -664,4 +665,4 @@ void ZynqMpReadImage::DisplayPhtAttributes(uint32_t value) } std::string empty = ""; DisplayAttributes("hi-vec ", val, empty, empty); -} \ No newline at end of file +}