diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-03-14 13:02:24 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-03-23 11:36:15 +0300 |
commit | d28baea078fac4c438874880df385e1e4e8d2b6b (patch) | |
tree | ddbe6ead71fbb0f5c8621b422b2c5b9f21fa3e62 /tools/zynqmpimage.c | |
parent | c436bf92f6bf4014710bfeb067a0a35692e68bd3 (diff) | |
download | u-boot-d28baea078fac4c438874880df385e1e4e8d2b6b.tar.xz |
tools: xilinx: Fix zynq/zynqmp image recognition
There is an issue to recognize zynq or zynqmp image because header
checking is just the same. That's why zynqmp images are recognized as
zynq one.
Check unused fields which are initialized to zero in zynq format
(__reserved1 0x38 and __reserved2 0x44) which are initialized for
zynqmp. This should ensure that images are properly recognized by:
./tools/mkimage -l spl/boot.bin
Also show image type as ZynqMP instead of Zynq which is confusing.
Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'tools/zynqmpimage.c')
-rw-r--r-- | tools/zynqmpimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/zynqmpimage.c b/tools/zynqmpimage.c index f48ac6dbe5..a61fb17c40 100644 --- a/tools/zynqmpimage.c +++ b/tools/zynqmpimage.c @@ -178,7 +178,7 @@ static void zynqmpimage_print_header(const void *ptr) struct zynqmp_header *zynqhdr = (struct zynqmp_header *)ptr; int i; - printf("Image Type : Xilinx Zynq Boot Image support\n"); + printf("Image Type : Xilinx ZynqMP Boot Image support\n"); printf("Image Offset : 0x%08x\n", le32_to_cpu(zynqhdr->image_offset)); printf("Image Size : %lu bytes (%lu bytes packed)\n", (unsigned long)le32_to_cpu(zynqhdr->image_size), |