kernel: bump 6.1 to 6.1.89
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / qualcommax_ipq807x
1 [ -e /etc/config/ubootenv ] && exit 0
2
3 touch /etc/config/ubootenv
4
5 . /lib/uboot-envtools.sh
6 . /lib/functions.sh
7
8 board=$(board_name)
9
10 case "$board" in
11 dynalink,dl-wrx36|\
12 netgear,rax120v2|\
13 netgear,wax218|\
14 netgear,wax620|\
15 netgear,wax630)
16 idx="$(find_mtd_index 0:appsblenv)"
17 [ -n "$idx" ] && \
18 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
19 ;;
20 compex,wpq873|\
21 edgecore,eap102|\
22 zyxel,nbg7815)
23 idx="$(find_mtd_index 0:appsblenv)"
24 [ -n "$idx" ] && \
25 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
26 ;;
27 edimax,cax1800)
28 idx="$(find_mtd_index 0:appsblenv)"
29 [ -n "$idx" ] && \
30 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
31 ;;
32 linksys,mx4200v1|\
33 linksys,mx4200v2|\
34 linksys,mx5300)
35 idx="$(find_mtd_index u_env)"
36 [ -n "$idx" ] && \
37 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
38 ;;
39 redmi,ax6|\
40 xiaomi,ax3600|\
41 xiaomi,ax9000)
42 idx="$(find_mtd_index 0:appsblenv)"
43 [ -n "$idx" ] && \
44 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
45 idx2="$(find_mtd_index bdata)"
46 [ -n "$idx2" ] && \
47 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x10000" "0x20000"
48 ;;
49 prpl,haze)
50 mmcpart="$(find_mmc_part 0:APPSBLENV)"
51 [ -n "$mmcpart" ] && \
52 ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x400" "0x100"
53 ;;
54 qnap,301w)
55 idx="$(find_mtd_index 0:appsblenv)"
56 [ -n "$idx" ] && \
57 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
58 ;;
59 esac
60
61 config_load ubootenv
62 config_foreach ubootenv_add_app_config
63
64 exit 0