diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-08-26 20:04:08 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-03 12:06:24 +0200 |
commit | ded905ce431bfdb4809124e0f0a587013f980b07 (patch) | |
tree | acd92447389b5f71c9f41ec1fe9b71a6ea341ae7 /target/linux/imx6/image/bootscript-cubox | |
parent | 8c41f1f81cde0712e90019c868f89192fdddf5bb (diff) | |
download | upstream-ded905ce431bfdb4809124e0f0a587013f980b07.tar.gz upstream-ded905ce431bfdb4809124e0f0a587013f980b07.tar.bz2 upstream-ded905ce431bfdb4809124e0f0a587013f980b07.zip |
imx6: extend cubox support to hummingboard, add support for building full images
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/imx6/image/bootscript-cubox')
-rw-r--r-- | target/linux/imx6/image/bootscript-cubox | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/target/linux/imx6/image/bootscript-cubox b/target/linux/imx6/image/bootscript-cubox index b639590720..2ed48ab941 100644 --- a/target/linux/imx6/image/bootscript-cubox +++ b/target/linux/imx6/image/bootscript-cubox @@ -4,10 +4,15 @@ echo "CuBox OpenWrt Boot script" setenv console console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 # Find correct dtb -if test ${board_name} = CUBOXI && test ${board_rev} = MX6DL; then - setenv fdt_name imx6dl.dtb; -elif test ${board_name} = CUBOXI && test ${board_rev} = MX6Q; then - setenv fdt_name imx6q-cubox-i.dtb; +if test ${board_rev} = MX6DL; then + setenv fdt_soc_type imx6dl; +elif test ${board_rev} = MX6Q; then + setenv fdt_soc_type imx6q; +fi +if test ${board_name} = CUBOXI; then + setenv fdt_name ${fdt_soc_type}-cubox-i.dtb; +elif test ${board_name} = HUMMINGBOARD; then + setenv fdt_name ${fdt_soc_type}-hummingboard.dtb; fi # Set correct devtype and partition @@ -19,8 +24,8 @@ elif mmc dev 1; then fi # Boot from the SD card is supported at the moment -setenv bootargs "${console} root=/dev/mmcblk1p1 rw rootwait" +setenv bootargs "${console} root=/dev/mmcblk1p2 rw rootwait" mmc dev ${mmcdev} -load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /boot/openwrt-imx6-cubox-i-uImage -load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /boot/openwrt-imx6-${fdt_name} +load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage +load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name} bootz ${kernel_addr_r} - ${fdt_addr_r} |