imx: update fdt_addr and initrd_addr
The kernel has grown and overwrites fdt_addr when loaded. Fix this by
updating the fdr_addr and initrd_addr variables the addresses further up
in memory.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/imx/u-boot_boot_script b/imx/u-boot_boot_script
index a2ee4fe..d995851 100644
--- a/imx/u-boot_boot_script
+++ b/imx/u-boot_boot_script
@@ -1,3 +1,5 @@
+env set fdt_addr 0x45000000;
+env set initrd_addr 0x45800000;
run loadfdt;
fdt addr ${fdt_addr};
fdt get value optee_compatible /firmware/optee compatible;
@@ -19,4 +21,4 @@
echo "Booting on the persistent file system ..."
run loadimage;run mmcargs;
booti ${loadaddr} - ${fdt_addr};
-fi;
\ No newline at end of file
+fi;