]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwbimage: Show binary image offset in mkimage -l, in addition to size
authorPali Rohár <pali@kernel.org>
Wed, 12 Jan 2022 17:20:49 +0000 (18:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 10:39:16 +0000 (11:39 +0100)
commitc934c9a66622c5a9054dc38765190c5c182caefb
treed40d7477ebb3f1479c9c3595d50fd962c775a5c9
parentfdcae2615639454f6c2b7c787de49e74e8746d07
tools: kwbimage: Show binary image offset in mkimage -l, in addition to size

For debugging purposes it is good to know where the binary image would be
loaded and also it is needed to know if printed size is image size or the
size of header together with image.

Make it unambiguous by showing that printed size is not the size of the
whole header, but only the size of executable code, and print also the
executable offset of this binary image. Load/execute address is the offset
relative to the base address (either 0x40004000 or 0x40000000).

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c