bootscript-technexion_imx7d-pico-pi 751 B

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