mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 02:32:11 +02:00
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 <tobias@waldekranz.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
25eeda170c
commit
e45bba562f
@@ -1126,7 +1126,8 @@ fallback:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* get script subimage data address and length */
|
/* 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");
|
puts("Could not find script subimage data\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user