From: Sean Anderson Date: Sat, 14 Oct 2023 20:47:40 +0000 (-0400) Subject: arm: imx: Fix i.MX8 container load address X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5c09c2587338abcd7ee3d189deedc9034fea8037;p=u-boot.git arm: imx: Fix i.MX8 container load address We should load images to their destination, not their entry point. Fixes: 7b86cd4274e ("imx8: support parsing i.MX8 Container file") Signed-off-by: Sean Anderson --- diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c index e2a9e2b273..d7275a58c1 100644 --- a/arch/arm/mach-imx/parse-container.c +++ b/arch/arm/mach-imx/parse-container.c @@ -45,7 +45,7 @@ static struct boot_img_t *read_auth_image(struct spl_image_info *spl_image, debug("%s: container: %p sector: %lu sectors: %u\n", __func__, container, sector, sectors); if (info->read(info, sector, sectors, - (void *)images[image_index].entry) != sectors) { + (void *)images[image_index].dst) != sectors) { printf("%s wrong\n", __func__); return NULL; }