Initial commit
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
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
This commit is contained in:
31
target/linux/imx/image/bootscript-solidrun_cubox-i
Normal file
31
target/linux/imx/image/bootscript-solidrun_cubox-i
Normal file
@@ -0,0 +1,31 @@
|
||||
echo "CuBox OpenWrt Boot script"
|
||||
|
||||
# Set console variable for both UART and HDMI
|
||||
setenv console console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32
|
||||
|
||||
# Find correct 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
|
||||
if test ${devtype} != mmc; then setenv devtype mmc; fi
|
||||
if mmc dev 0; then
|
||||
setenv mmcdev 0
|
||||
elif mmc dev 1; then
|
||||
setenv mmcdev 1
|
||||
fi
|
||||
|
||||
# Boot from the SD card is supported at the moment
|
||||
setenv bootargs "${console} root=/dev/mmcblk1p2 rw rootwait"
|
||||
mmc dev ${mmcdev}
|
||||
load ${devtype} ${mmcdev}:${devplist} ${kernel_addr_r} /uImage
|
||||
load ${devtype} ${mmcdev}:${devplist} ${fdt_addr_r} /${fdt_name}
|
||||
bootz ${kernel_addr_r} - ${fdt_addr_r}
|
||||
Reference in New Issue
Block a user