Files
eternalwrt-mt798x/package/boot/uboot-tools/uboot-envtools/files/qualcommax_ipq60xx
T
Fire ChenandRobert Marko 04308ad284 uboot-envtools: ipq60xx: add support for JDCloud devices
Add uboot-envtools support for JDCloud RE-CS-02 RE-CS-07 and RE-SS-01

Signed-off-by: Fire Chen <firedevel@icloud.com>
Link: https://github.com/openwrt/openwrt/pull/21787
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2026-03-21 22:22:39 +01:00

55 lines
1.1 KiB
Plaintext

[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
board=$(board_name)
ubootenv_add_mtd() {
local idx="$(find_mtd_index "${1}")"
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "${2}" "${3}" "${4}"
}
case "$board" in
8devices,mango-dvk|\
8devices,mango-dvk-sfp|\
cambiumnetworks,xe3-4)
ubootenv_add_mtd "0:APPSBLENV" "0x0" "0x10000" "0x10000"
;;
glinet,gl-ax1800|\
glinet,gl-axt1800|\
linksys,mr7350|\
linksys,mr7500)
ubootenv_add_mtd "u_env" "0x0" "0x40000" "0x20000"
;;
jdcloud,re-cs-02|\
jdcloud,re-cs-07|\
jdcloud,re-ss-01|\
link,nn6000-v1|\
link,nn6000-v2)
ubootenv_add_mmc "0:APPSBLENV" "" "0x0" "0x40000" "0x20000"
;;
netgear,rbr350|\
netgear,rbs350|\
netgear,wax214|\
netgear,wax610|\
netgear,wax610y|\
tplink,eap610-outdoor|\
tplink,eap623-outdoor-hd-v1|\
tplink,eap620-hd-v3|\
tplink,eap625-outdoor-hd-v1)
ubootenv_add_mtd "0:appsblenv" "0x0" "0x40000" "0x20000"
;;
yuncore,fap650)
ubootenv_add_mtd "0:appsblenv" "0x0" "0x10000" "0x10000"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config
exit 0