rockchip: add uboot-envtools support for T68M

This commit is contained in:
coolsnowwolf 2023-11-20 13:25:09 +08:00
parent a4c684fd02
commit de47a6a5c4
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
#
# Copyright (C) 2023 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
board=$(board_name)
case "$board" in
lyt,t68m)
ubootenv_add_uci_config "/dev/mmcblk0" "0x3f8000" "0x8000"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config
exit 0

View File

@ -186,7 +186,7 @@ define Device/lyt_t68m
SOC := rk3568
UBOOT_DEVICE_NAME := lyt-t68m-rk3568
IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata
DEVICE_PACKAGES := kmod-mt7921e kmod-r8125 wpad-openssl
DEVICE_PACKAGES := kmod-mt7921e kmod-r8125 wpad-openssl uboot-envtools
endef
TARGET_DEVICES += lyt_t68m