From: Tobias Waldekranz Date: Thu, 16 Feb 2023 15:33:47 +0000 (+0100) Subject: image: Fix script execution from FIT images with external data X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~206^2~8 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=aa5693c1653b111b236708a80dee713e65064d9b;p=uboot.git image: Fix script execution from FIT images with external data Update the script loading code to recognize when script data is stored externally from the FIT metadata (i.e., built with `mkimage -E`). Signed-off-by: Tobias Waldekranz Reviewed-by: Simon Glass --- diff --git a/boot/image-board.c b/boot/image-board.c index 7dd0c32e6e..c602832249 100644 --- a/boot/image-board.c +++ b/boot/image-board.c @@ -1126,7 +1126,8 @@ fallback: } /* get script subimage data address and length */ - if (fit_image_get_data(fit_hdr, noffset, &fit_data, &fit_len)) { + if (fit_image_get_data_and_size(fit_hdr, noffset, + &fit_data, &fit_len)) { puts("Could not find script subimage data\n"); return 1; }