[PATCH v2 04/29] arm: imx: Fix i.MX8 container load address
Sean Anderson
seanga2 at gmail.com
Sat Oct 14 22:47:40 CEST 2023
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 <seanga2 at gmail.com>
---
(no changes since v1)
arch/arm/mach-imx/parse-container.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c
index e2a9e2b2732..d7275a58c17 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;
}
--
2.37.1
More information about the U-Boot
mailing list