Add support for NXP i.MX8MQ EVK
Adds support for the NXP® i.MX 8MQuad Evaluation Kit (EVK) using the
same standard buildroot setup as for the other platforms here.
The flash-image target (part of the all target) produces a out/boot.img
which can be copied to a SD card using the command:
dd if=out/boot.img of=/dev/sdX bs=1M conv=fsync
Where 'X' has to be adjusted to the device of the SD card when connected
to the host system.
****** Please be careful to choose the correct device ******
****** or there's a risk of damaging the host system. ******
Acked-by: Joakim Bech <joakim.bech@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/imx/u-boot_boot_script b/imx/u-boot_boot_script
new file mode 100644
index 0000000..4bb473d
--- /dev/null
+++ b/imx/u-boot_boot_script
@@ -0,0 +1,17 @@
+run loadfdt;
+fdt addr ${fdt_addr};
+fdt get value optee_compatible /firmware/optee compatible;
+if test "${optee_compatible}" = "linaro,optee-tz"; then
+ echo Found optee node, using it;
+else
+ echo optee node missing, trying to add it;
+ fdt resize 4096;
+ fdt mknode / firmware;
+ fdt mknode /firmware optee;
+ fdt set /firmware/optee compatible "linaro,optee-tz";
+ fdt set /firmware/optee method "smc";
+fi;
+fdt print /firmware/optee;
+run loadimage;
+fatload mmc ${mmcdev}:${mmcpart} ${initrd_addr} ramdisk.img;
+booti ${loadaddr} ${initrd_addr} ${fdt_addr};