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

Simon Glass sjg at chromium.org
Mon Jan 30 16:50:19 CET 2023


On Sun, 29 Jan 2023 at 09:44, Pali Rohár <pali at kernel.org> 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>
> ---
>  tools/default_image.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list