From: Tim Harvey Date: Fri, 10 Mar 2017 00:05:52 +0000 (-0800) Subject: imx6: added fixfdt to bootscript X-Git-Tag: v18.06.0-rc1~3382 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35d761c0c584f14ff6bfbee5801fcc7dae67d2fe;p=oweals%2Fopenwrt.git imx6: added fixfdt to bootscript If a 'fixfdt' uboot script exists, execute it prior to bootm to allow easy bootloader env based fdt fixups and tweaks Signed-off-by: Tim Harvey --- diff --git a/target/linux/imx6/image/bootscript-ventana b/target/linux/imx6/image/bootscript-ventana index dcf26bb959..941afb519a 100644 --- a/target/linux/imx6/image/bootscript-ventana +++ b/target/linux/imx6/image/bootscript-ventana @@ -61,12 +61,15 @@ setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}" if ${fsload} ${loadaddr} ${bootdir}/uImage; then if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then echo Loaded DTB from ${bootdir}/${fdt_file} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then echo Loaded DTB from ${bootdir}/${fdt_file1} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then echo Loaded DTB from ${bootdir}/${fdt_file2} + test -n "$fixfdt" && run fixfdt bootm ${loadaddr} - ${fdt_addr} else echo "Error loading device-tree"