Feat: add xapanran d256n256 boot env

This commit is contained in:
2025-03-11 15:01:08 +08:00
parent 89655dbecf
commit baf6ddf4bf
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# If both copies are set to the same offset, an automatic mechanism will
# determine the first good sectors where each copy lives, skipping bad blocks.
# Device name Offset Size Erase-size No.Blocks
/dev/##MTDINDEX## ##ENV_OFFSET## ##ENV_SIZE## ##ERASEBLOCK## ##NBLOCKS##
#/dev/##MTDINDEX## ##ENV_REDUND_OFFSET## ##ENV_SIZE## ##ERASEBLOCK## ##NBLOCKS##

View File

@ -0,0 +1,21 @@
setenv zimage zImage-xapanran.bin
setenv fdt_file zImage-xapanran-i2s6ull-nand.dtb
setenv bootargs_linux quiet lpj=30000
if test "${mtdbootpart}" = "recovery"; then
setenv initrd_file uramdisk-recovery.img
if ubi part ${mtdbootpart} && ubifsmount ubi0:${mtdbootpart}; then
if ubifsload ${loadaddr} ${zimage} && ubifsload ${fdt_addr} ${fdt_file} && ubifsload ${initrd_addr} ${initrd_file}; then
run bootargs_nand_linux
bootz ${loadaddr} ${initrd_addr} ${fdt_addr}
fi;
fi;
else
if ubi part ${mtdbootpart} && ubifsmount ubi0:${mtdbootpart}; then
if ubifsload ${loadaddr} ${zimage} && ubifsload ${fdt_addr} ${fdt_file}; then
run bootargs_nand_linux
bootz ${loadaddr} - ${fdt_addr}
fi;
fi;
fi

View File

@ -0,0 +1,5 @@
# Use LINUXFB platform plugin for images without X11
export QT_QPA_PLATFORM="linuxfb"
export QT_QPA_GENERIC_PLUGINS=tslib
export QT_QPA_FB_TSLIB=1
export QT_QPA_FB_DISABLE_INPUT=1