kernel: bump 6.1 to 6.1.89
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / realtek
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 apresia,aplgs120gtss)
12 idx="$(find_mtd_index u-boot-env)"
13 [ -n "$idx" ] && \
14 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x10000"
15 idx2="$(find_mtd_index u-boot-env2)"
16 [ -n "$idx2" ] && \
17 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x40000" "0x10000"
18 ;;
19 d-link,dgs-1210-10mp|\
20 d-link,dgs-1210-10p|\
21 d-link,dgs-1210-16|\
22 d-link,dgs-1210-20|\
23 d-link,dgs-1210-28|\
24 zyxel,gs1900-8|\
25 zyxel,gs1900-8hp-v1|\
26 zyxel,gs1900-8hp-v2|\
27 zyxel,gs1900-10hp|\
28 zyxel,gs1900-16|\
29 zyxel,gs1900-24-v1|\
30 zyxel,gs1900-24e|\
31 zyxel,gs1900-24hp-v1|\
32 zyxel,gs1900-24hp-v2)
33 idx="$(find_mtd_index u-boot-env)"
34 [ -n "$idx" ] && \
35 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x400" "0x10000"
36 idx2="$(find_mtd_index u-boot-env2)"
37 [ -n "$idx2" ] && \
38 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
39 ;;
40 tplink,sg2008p-v1|\
41 tplink,sg2210p-v3|\
42 tplink,sg2452p-v4)
43 idx="$(find_mtd_index u-boot-env)"
44 [ -n "$idx" ] && \
45 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x10000"
46 ;;
47 iodata,bsh-g24mb)
48 idx="$(find_mtd_index u-boot-env)"
49 [ -n "$idx" ] && \
50 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
51 idx2="$(find_mtd_index u-boot-env2)"
52 [ -n "$idx2" ] && \
53 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x3800" "0x10000"
54 ;;
55 *)
56 idx="$(find_mtd_index u-boot-env)"
57 [ -n "$idx" ] && \
58 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
59 idx2="$(find_mtd_index u-boot-env2)"
60 [ -n "$idx2" ] && \
61 ubootenv_add_uci_sys_config "/dev/mtd$idx2" "0x0" "0x1000" "0x10000"
62 ;;
63 esac
64
65 config_load ubootenv
66 config_foreach ubootenv_add_app_config
67
68 exit 0