2015-05-26 10:19:40 +02:00
|
|
|
setenv bootargs ''
|
|
|
|
|
2016-03-03 15:57:17 +01:00
|
|
|
if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
|
|
|
|
a_script=0x80800000
|
|
|
|
a_zImage=0x80800000
|
|
|
|
a_fdt=0x83000000
|
|
|
|
m4=''
|
|
|
|
if itest.s "x1" == "x$m4enabled" ; then
|
|
|
|
run m4boot;
|
|
|
|
m4='-m4';
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
a_script=0x10800000
|
|
|
|
a_zImage=0x10800000
|
|
|
|
a_fdt=0x13000000
|
|
|
|
fi
|
2015-09-11 11:39:53 +02:00
|
|
|
|
|
|
|
setenv initrd_high 0xffffffff
|
|
|
|
if itest.s "x" == "x${dtbname}" ; then
|
|
|
|
if itest.s x6SOLO == "x${cpu}" ; then
|
|
|
|
dtbname=imx6dl-${board}.dtb;
|
|
|
|
elif itest.s x6DL == "x${cpu}" ; then
|
|
|
|
dtbname=imx6dl-${board}.dtb;
|
|
|
|
elif itest.s x6QP == "x${cpu}" ; then
|
|
|
|
dtbname=imx6qp-${board}.dtb;
|
|
|
|
elif itest.s x6SX == "x${cpu}" ; then
|
2016-03-03 15:57:17 +01:00
|
|
|
dtbname=imx6sx-${board}${m4}.dtb;
|
|
|
|
elif itest.s x7D == "x${cpu}" ; then
|
|
|
|
dtbname=imx7d-${board}${m4}.dtb;
|
2015-05-26 10:19:40 +02:00
|
|
|
else
|
2015-09-11 11:39:53 +02:00
|
|
|
dtbname=imx6q-${board}.dtb;
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
2015-09-11 11:39:53 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then
|
|
|
|
env import -t ${a_script} ${filesize}
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if itest.s x == x${bootdir} ; then
|
|
|
|
bootdir=/boot/
|
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s x${bootpart} == x ; then
|
|
|
|
bootpart=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname} ; then
|
|
|
|
fdt addr ${a_fdt}
|
2015-05-26 10:19:40 +02:00
|
|
|
setenv fdt_high 0xffffffff
|
|
|
|
else
|
2015-09-11 11:39:53 +02:00
|
|
|
echo "!!!! Error loading ${bootdir}${dtbname}";
|
2015-05-26 10:19:40 +02:00
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
cmd_xxx_present=
|
|
|
|
fdt resize
|
|
|
|
if itest.s "x" != "x${cmd_custom}" ; then
|
|
|
|
run cmd_custom
|
|
|
|
cmd_xxx_present=1;
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${cmd_hdmi}" ; then
|
|
|
|
run cmd_hdmi
|
|
|
|
cmd_xxx_present=1;
|
|
|
|
if itest.s x == x${allow_noncea} ; then
|
|
|
|
setenv bootargs ${bootargs} mxc_hdmi.only_cea=1;
|
|
|
|
echo "only CEA modes allowed on HDMI port";
|
2015-05-26 10:19:40 +02:00
|
|
|
else
|
2015-09-11 11:39:53 +02:00
|
|
|
setenv bootargs ${bootargs} mxc_hdmi.only_cea=0;
|
|
|
|
echo "non-CEA modes allowed on HDMI, audio may be affected";
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${cmd_lcd}" ; then
|
|
|
|
run cmd_lcd
|
|
|
|
cmd_xxx_present=1;
|
|
|
|
fi
|
|
|
|
if itest.s "x" != "x${cmd_lvds}" ; then
|
|
|
|
run cmd_lvds
|
|
|
|
cmd_xxx_present=1;
|
|
|
|
fi
|
|
|
|
if itest.s "x" != "x${cmd_lvds2}" ; then
|
|
|
|
run cmd_lvds2
|
|
|
|
cmd_xxx_present=1;
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" == "x${cmd_xxx_present}" ; then
|
|
|
|
echo "!!!!!!!!!!!!!!!!"
|
|
|
|
echo "warning: your u-boot may be outdated, please upgrade"
|
|
|
|
echo "!!!!!!!!!!!!!!!!"
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
setenv bootargs "${bootargs} console=${console},115200 vmalloc=400M consoleblank=0 rootwait fixrtc"
|
2015-05-26 10:19:40 +02:00
|
|
|
|
|
|
|
if test "sata" = "${dtype}" ; then
|
2016-11-07 17:54:00 +01:00
|
|
|
setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
|
2015-09-11 11:39:53 +02:00
|
|
|
elif test "usb" = "${dtype}" ; then
|
2016-11-07 17:54:00 +01:00
|
|
|
setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
|
2015-05-26 10:19:40 +02:00
|
|
|
else
|
2016-11-07 17:54:00 +01:00
|
|
|
setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bootpart}"
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if itest.s "x" != "x${disable_giga}" ; then
|
2015-09-11 11:39:53 +02:00
|
|
|
setenv bootargs ${bootargs} fec.disable_giga=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if itest.s "x" != "x${wlmac}" ; then
|
|
|
|
setenv bootargs ${bootargs} wlcore.mac=${wlmac}
|
2017-08-18 16:15:52 +02:00
|
|
|
setenv bootargs ${bootargs} wlan.mac=${wlmac}
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${gpumem}" ; then
|
|
|
|
setenv bootargs ${bootargs} galcore.contiguousSize=${gpumem}
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${cma}" ; then
|
|
|
|
setenv bootargs ${bootargs} cma=${cma}
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${show_fdt}" ; then
|
2015-05-26 10:19:40 +02:00
|
|
|
fdt print /
|
|
|
|
fi
|
|
|
|
|
2015-09-11 11:39:53 +02:00
|
|
|
if itest.s "x" != "x${show_env}" ; then
|
2015-05-26 10:19:40 +02:00
|
|
|
printenv
|
|
|
|
fi
|
|
|
|
|
2015-10-19 17:02:32 +02:00
|
|
|
if load ${dtype} ${disk}:${bootpart} ${a_zImage} ${bootdir}/zImage ; then
|
|
|
|
bootz ${a_zImage} - ${a_fdt}
|
2015-05-26 10:19:40 +02:00
|
|
|
fi
|
|
|
|
echo "Error loading kernel image"
|