mxs: drop 6.1 support
[openwrt/openwrt.git] / target / linux / imx6 / image / bootscript-cubox
1 echo "CuBox OpenWrt Boot script"
2
3 # Set console variable for both UART and HDMI
4 setenv console console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
5
6 # Find correct dtb
7 if test ${board_rev} = MX6DL; then
8 setenv fdt_soc_type imx6dl;
9 elif test ${board_rev} = MX6Q; then
10 setenv fdt_soc_type imx6q;
11 fi
12 if test ${board_name} = CUBOXI; then
13 setenv fdt_name ${fdt_soc_type}-cubox-i.dtb;
14 elif test ${board_name} = HUMMINGBOARD; then
15 setenv fdt_name ${fdt_soc_type}-hummingboard.dtb;
16 fi
17
18 # Set correct devtype and partition
19 if test ${devtype} != mmc; then setenv devtype mmc; fi
20 if mmc dev 0; then
21 setenv mmcdev 0
22 elif mmc dev 1; then
23 setenv mmcdev 1
24 fi
25
26 # Boot from the SD card is supported at the moment
27 setenv bootargs "${console} root=/dev/mmcblk1p2 rw rootwait"
28 mmc dev ${mmcdev}
29 load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
30 load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
31 bootz ${kernel_addr_r} - ${fdt_addr_r}