]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/u-boot/boot.cmd
arm: boot.scr: add setting to edit fdt via uEnv.txt
[ipfire-2.x.git] / config / u-boot / boot.cmd
index 1d3017ba9e66a5a51155238d6f43727dbcdf03dc..5184e6f8723f56b040a56045d8fc7cbcc9daf1e7 100644 (file)
@@ -73,6 +73,14 @@ fi;
 setenv fdt_high ffffffff;
 fatload ${boot_dev} ${boot_part} ${kernel_addr_r} vmlinuz-${KVER}-ipfire${kernel_type};
 fatload ${boot_dev} ${boot_part} ${fdt_addr_r} dtb-${KVER}-ipfire${kernel_type}/${fdtfile};
+
+if test "${FDTCMDS}" = ""; then
+       echo ;
+else
+       fdt addr ${fdt_addr_r};
+       run FDTCMDS;
+fi;
+
 setenv ramdisk_addr ${ramdisk_addr_r}
 if fatload ${boot_dev} ${boot_part} ${ramdisk_addr} uInit-${KVER}-ipfire${kernel_type}; then
        echo Ramdisk loaded...;