imx6: Initial support for SolidRun CuBox-i devices based on i.MX6 processors (i1...
[openwrt/staging/chunkeey.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_name} = CUBOXI && test ${board_rev} = MX6DL; then
8 setenv fdt_name imx6dl.dtb;
9 elif test ${board_name} = CUBOXI && test ${board_rev} = MX6Q; then
10 setenv fdt_name imx6q-cubox-i.dtb;
11 fi
12
13 # Set correct devtype and partition
14 if test ${devtype} != mmc; then setenv devtype mmc; fi
15 if mmc dev 0; then
16 setenv mmcdev 0
17 elif mmc dev 1; then
18 setenv mmcdev 1
19 fi
20
21 # Boot from the SD card is supported at the moment
22 setenv bootargs "${console} root=/dev/mmcblk1p1 rw rootwait"
23 mmc dev ${mmcdev}
24 load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /boot/openwrt-imx6-cubox-i-uImage
25 load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /boot/openwrt-imx6-${fdt_name}
26 bootz ${kernel_addr_r} - ${fdt_addr_r}