[PATCH u-boot 2/2] tools: default_image: Accept images with padding

Tom Rini trini at konsulko.com
Mon Feb 6 20:43:07 CET 2023


On Sun, Jan 29, 2023 at 05:44:11PM +0100, Pali Rohár wrote:

> If image file is stored on flash partition then it contains padding, which
> is not part of the image itself. Image data size is stored in the image
> header. So use image size from the header instead of expecting that total
> image file size is size of the header plus size of the image data. This
> allows dumpimage to parse image files with padding (e.g. dumped from flash
> partition).
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

This breaks imx6q_bosch_acc imx6dl_mamoj as:
./tools/mkimage: Failed to verify header of u-boot-ivt.img

now happens.

-- 
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/20230206/fc253853/attachment.sig>


More information about the U-Boot mailing list