]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: imx: Fix i.MX8 container load address
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:40 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
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@gmail.com>
arch/arm/mach-imx/parse-container.c

index e2a9e2b273282c287b5eb9830936dc00f646d6a8..d7275a58c176da2284e572e9c10dfeb5f4aaccf7 100644 (file)
@@ -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;
        }