imx: cortexa7: add support for TechNexion PICO-PI-IMX7D
[openwrt/staging/aparcar.git] / target / linux / imx / image / bootscript-technexion_imx7d-pico-pi
1 echo "PICO-PI-IMX7 OpenWrt boot script"
2
3 # Initial setup, avoid overwriting environment every boot
4 if test ${bootm_boot_mode} != nonsec; then setenv bootm_boot_mode nonsec; setenv bootcmd run bootcmd_mmc0; saveenv; fi
5
6 # Set console variable for both UART and HDMI
7 setenv console "console=ttymxc4,115200 console=tty0 video=DPI-1:800x480-32"
8 setenv fdt_name imx7d-pico-pi.dtb
9 setenv mmcdev 0
10 setenv mmcrootpart 2
11 part uuid mmc ${mmcdev}:${mmcrootpart} uuid
12
13 # Boot from eMMC is the only supported option
14 setenv bootargs "${console} root=PARTUUID=${uuid} rw rootwait"
15 mmc dev ${mmcdev}
16 load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
17 load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
18 bootm ${kernel_addr_r} - ${fdt_addr_r}