]> git.ipfire.org Git - thirdparty/u-boot.git/commit
tools: xilinx: Fix zynq/zynqmp image recognition
authorMichal Simek <michal.simek@xilinx.com>
Wed, 14 Mar 2018 10:02:24 +0000 (11:02 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 06:57:39 +0000 (08:57 +0200)
commite28114be330e2bba7170069ced0a1c0545dcf5f0
treea96976877a5e7beb11d935f467bf116990a3dbc4
parentfccde618fc180baafbbb265ac787a4486307655c
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>
tools/zynqimage.c
tools/zynqmpimage.c