aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2017-03-09 16:05:52 -0800
committerFelix Fietkau <nbd@nbd.name>2017-03-12 15:06:51 +0100
commit35d761c0c584f14ff6bfbee5801fcc7dae67d2fe (patch)
treed6c8b77cd6f27f4b211892c310f203ff9f223cfd /target
parent028350907e5e42dfbd1ce66914857fb8dac417c4 (diff)
downloadupstream-35d761c0c584f14ff6bfbee5801fcc7dae67d2fe.tar.gz
upstream-35d761c0c584f14ff6bfbee5801fcc7dae67d2fe.tar.bz2
upstream-35d761c0c584f14ff6bfbee5801fcc7dae67d2fe.zip
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 <tharvey@gateworks.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/imx6/image/bootscript-ventana3
1 files changed, 3 insertions, 0 deletions
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"