1 echo "CuBox OpenWrt Boot script"
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
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;
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;
18 # Set correct devtype and partition
19 if test ${devtype} != mmc; then setenv devtype mmc; fi
26 # Boot from the SD card is supported at the moment
27 setenv bootargs "${console} root=/dev/mmcblk1p2 rw rootwait"
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}