[PATCH] cmd: source: Support FITs with external data

Sean Anderson sean.anderson at seco.com
Mon May 16 22:15:03 CEST 2022


fit_image_get_data only supports FITs with inline data. Switch to
fit_image_get_data_and_size to support FITs with external data as well.

Signed-off-by: Sean Anderson <sean.anderson at seco.com>
---

 cmd/source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/source.c b/cmd/source.c
index 81e015b64e..bb98255fe8 100644
--- a/cmd/source.c
+++ b/cmd/source.c
@@ -141,7 +141,7 @@ int image_source_script(ulong addr, const char *fit_uname)
 		}
 
 		/* 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;
 		}
-- 
2.35.1.1320.gc452695387.dirty



More information about the U-Boot mailing list