[PATCH 2/2] tools/fitimage: make sure dumpimage still works when "@" are detected

Tom Rini trini at konsulko.com
Mon Jan 24 17:53:10 CET 2022


On Mon, Jan 10, 2022 at 06:48:32PM +0100, Stefan Eichenberger wrote:

> fit_verify_header fails if it detects unit addresses "@". However, this
> will break tools like dumpimage on fit images which worked with previous
> versions of the tool (e.g. 2020.04 vs 2021.07). As an example the output
> of:
> dumpimage -l <fit image>
> is:
> FIT description: U-Boot fitImage for Linux Distribution
> Created:         Thu Jan  1 01:00:00 1970
>  Image 0 (kernel at 1)
>   Description:  Linux kernel
>   Created:      Thu Jan  1 01:00:00 1970
>   Type:         Kernel Image
>   Compression:  gzip compressed
>   Data Size:    6442456 Bytes = 6291.46 KiB = 6.14 MiB
>   Architecture: AArch64
>   OS:           Linux
>   Load Address: 0x80080000
>   Entry Point:  0x80080000
>   Hash algo:    sha256
>   Hash value:   ...
>  Image 1 (fdt at freescale_fsl-s32g274a-evb.dtb)
>   Description:  Flattened Device Tree blob
>   Created:      Thu Jan  1 01:00:00 1970
>   Type:         Flat Device Tree
>   Compression:  uncompressed
>   Data Size:    39661 Bytes = 38.73 KiB = 0.04 MiB
>   Architecture: AArch64
>   Hash algo:    sha256
>   Hash value:   ...
>  Default Configuration: 'conf at freescale_fsl-s32g274a-evb.dtb'
>  Configuration 0 (conf at freescale_fsl-s32g274a-evb.dtb)
>   Description:  1 Linux kernel, FDT blob
>   Kernel:       kernel at 1
>   FDT:          fdt at freescale_fsl-s32g274a-evb.dtb
>   Hash algo:    sha256
>   Hash value:   unavailable
> 
> But with newer version it shows:
> dumpimage -l <fit image>
> GP Header: Size d00dfeed LoadAddr 62f0a4
> 
> This commit will output a warning that unit addresses were detected but
> will not fail:
> dumpimage -l <fit image>
> Image contains unit addresses @, this will break signing
> ...
> 
> Signed-off-by: Stefan Eichenberger <eichest at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220124/7be60961/attachment.sig>


More information about the U-Boot mailing list