Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
19 lines
751 B
Plaintext
19 lines
751 B
Plaintext
echo "PICO-PI-IMX7 OpenWrt boot script"
|
|
|
|
# Initial setup, avoid overwriting environment every boot
|
|
if test ${bootm_boot_mode} != nonsec; then setenv bootm_boot_mode nonsec; setenv bootcmd run bootcmd_mmc0; saveenv; fi
|
|
|
|
# Set console variable for both UART and HDMI
|
|
setenv console "console=ttymxc4,115200 console=tty0 video=DPI-1:800x480-32"
|
|
setenv fdt_name imx7d-pico-pi.dtb
|
|
setenv mmcdev 0
|
|
setenv mmcrootpart 2
|
|
part uuid mmc ${mmcdev}:${mmcrootpart} uuid
|
|
|
|
# Boot from eMMC is the only supported option
|
|
setenv bootargs "${console} root=PARTUUID=${uuid} rw rootwait"
|
|
mmc dev ${mmcdev}
|
|
load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
|
|
load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
|
|
bootm ${kernel_addr_r} - ${fdt_addr_r}
|