Apply EVT2 config in the boot script
The device tree overlay is applied automatically during boot.
Tested: EVT1 and EVT2
Change-Id: I8de7f14c495816b97280fc9d8788718fae124036
diff --git a/boot.txt b/boot.txt
index 6291e70..5df0965 100644
--- a/boot.txt
+++ b/boot.txt
@@ -14,6 +14,16 @@
# Load overlays to arbitrary address beyond fdt location (will apply them later).
setexpr fdtovaddr ${fdt_addr} + F0000
+# Overlay memory config for EVT2
+if test "${evt2_board}" -eq 1; then
+ if ext2load mmc ${mmcdev}:${boot_partition} ${fdtovaddr} coral-evt2.dtbo && fdt apply ${fdtovaddr}; then
+ echo Loaded EVT2 config
+ else
+ echo Overlay EVT2 config failed
+ ext2load mmc ${mmcdev}:${boot_partition} ${fdt_addr} ${fdt_file}
+ fi
+fi
+
# Parse overlays.txt and apply individual overlays.
if ext2load mmc ${mmcdev}:${boot_partition} ${fdtovaddr} overlays.txt && env import -t ${fdtovaddr} ${filesize} && test -n ${overlay}; then
echo Loaded overlay.txt: ${overlay}