31 lines
866 B
Plaintext
31 lines
866 B
Plaintext
#
|
|
# U-Boot bootscript for NAND images created by Yocto.
|
|
#
|
|
|
|
#
|
|
# Set device tree filename depending on the board ID (if defined)
|
|
#
|
|
if test -n "${board_id}"; then
|
|
setenv fdt_file imx6ul-ccimx6ulstarter-id${board_id}.dtb
|
|
else
|
|
#
|
|
# Set device tree filename depending on the hardware variant
|
|
#
|
|
if test "${module_variant}" = "0x02" || test "${module_variant}" = "0x04" || test "${module_variant}" = "0x06"; then
|
|
setenv fdt_file imx6ul-ccimx6ulstarter-wb.dtb
|
|
elif test "${module_variant}" = "0x03" || test "${module_variant}" = "0x05"; then
|
|
setenv fdt_file imx6ul-ccimx6ulstarter.dtb
|
|
else
|
|
setenv fdt_file imx6ul-ccimx6ulstarter-wb.dtb
|
|
fi
|
|
fi
|
|
|
|
if test "${mtdbootpart}" = "recovery"; then
|
|
setenv boot_initrd true
|
|
setenv initrd_file uramdisk-recovery.img
|
|
else
|
|
true
|
|
fi
|
|
setenv extra_bootargs fbcon=logo-pos:center ${extra_bootargs}
|
|
dboot linux nand ${mtdbootpart}
|