mac80211: update to version 6.11
[openwrt/staging/nbd.git] / package / boot / uboot-envtools / files / ramips
1 #
2 # Copyright (C) 2011-2012 OpenWrt.org
3 #
4
5 [ -e /etc/config/ubootenv ] && exit 0
6
7 touch /etc/config/ubootenv
8
9 . /lib/uboot-envtools.sh
10 . /lib/functions.sh
11
12 board=$(board_name)
13
14 case "$board" in
15 actiontec,web7200)
16 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000"
17 ;;
18 alfa-network,ac1200rm|\
19 alfa-network,awusfree1|\
20 alfa-network,quad-e4g|\
21 alfa-network,r36m-e4g|\
22 alfa-network,tube-e4g|\
23 engenius,epg600|\
24 engenius,esr600h|\
25 linksys,re7000|\
26 meig,slt866|\
27 sitecom,wlr-4100-v1-002|\
28 zyxel,keenetic-lite-iii-a)
29 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
30 ;;
31 alfa-network,ax1800rm|\
32 allnet,all0256n-4m|\
33 allnet,all0256n-8m|\
34 allnet,all5002|\
35 yuncore,ax820)
36 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
37 ;;
38 arcadyan,we420223-99|\
39 dlink,dir-806a-b1)
40 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x1000" "0x1000"
41 ;;
42 ampedwireless,ally-00x19k|\
43 ampedwireless,ally-r1900k)
44 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000" "4"
45 ;;
46 beeline,smartbox-giga|\
47 beeline,smartbox-turbo|\
48 beeline,smartbox-turbo-plus|\
49 etisalat,s3|\
50 rostelecom,rt-fe-1a|\
51 rostelecom,rt-sf-1)
52 ubootenv_add_uci_config "/dev/mtd0" "0x80000" "0x1000" "0x20000"
53 ;;
54 beeline,smartbox-pro|\
55 tplink,ec330-g5u-v1|\
56 wifire,s1500-nbn)
57 idx="$(find_mtd_index u-boot-env)"
58 [ -n "$idx" ] && \
59 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x20000"
60 ;;
61 buffalo,wsr-1166dhp|\
62 buffalo,wsr-600dhp|\
63 kroks,kndrt31r16|\
64 kroks,kndrt31r19|\
65 mediatek,linkit-smart-7688|\
66 samknows,whitebox-v8|\
67 xiaomi,mi-router-4c|\
68 xiaomi,miwifi-nano|\
69 zbtlink,zbt-wg2626|\
70 zte,mf283plus)
71 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
72 ;;
73 asus,rt-ax53u|\
74 asus,rt-ax54|\
75 belkin,rt1800|\
76 elecom,wrc-x1800gs|\
77 h3c,tx1800-plus|\
78 h3c,tx1801-plus|\
79 h3c,tx1806|\
80 iptime,ax2004m|\
81 jcg,q20|\
82 linksys,e7350|\
83 netgear,eax12|\
84 netgear,wax202|\
85 netis,n6|\
86 zyxel,wsm20)
87 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
88 ;;
89 haier,har-20s2u1|\
90 sim,simax1800t)
91 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
92 ubootenv_add_uci_sys_config "/dev/mtd1" "0x40000" "0x40000" "0x20000"
93 ;;
94 dlink,dir-x1860)
95 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x2000" "0x20000"
96 ;;
97 hootoo,ht-tm05|\
98 ravpower,rp-wd03)
99 idx="$(find_mtd_index u-boot-env)"
100 [ -n "$idx" ] && \
101 ubootenv_add_uci_config "/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
102 ;;
103 beeline,smartbox-flash|\
104 iptime,t5004|\
105 linksys,ea6350-v4|\
106 linksys,ea7300-v1|\
107 linksys,ea7300-v2|\
108 linksys,ea7500-v2|\
109 linksys,ea8100-v1|\
110 linksys,ea8100-v2|\
111 mts,wg430223|\
112 ubnt,edgerouter-x|\
113 ubnt,edgerouter-x-sfp)
114 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
115 ;;
116 snr,snr-cpe-me1|\
117 snr,snr-cpe-me2-sfp|\
118 snr,cpe-w4n-mt)
119 idx="$(find_mtd_index uboot-env)"
120 [ -n "$idx" ] && \
121 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x1000"
122 ;;
123 xiaomi,miwifi-mini)
124 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
125 ubootenv_add_uci_sys_config "/dev/mtd9" "0x0" "0x4000" "0x10000"
126 ;;
127 xiaomi,mi-router-3g-v2|\
128 xiaomi,mi-router-4a-gigabit|\
129 xiaomi,miwifi-3c)
130 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
131 ubootenv_add_uci_sys_config "/dev/mtd2" "0x0" "0x4000" "0x10000"
132 ;;
133 xiaomi,mi-router-3g|\
134 xiaomi,mi-router-3-pro|\
135 xiaomi,mi-router-4|\
136 xiaomi,mi-router-ac2100|\
137 xiaomi,redmi-router-ac2100)
138 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x20000"
139 ubootenv_add_uci_sys_config "/dev/mtd2" "0x0" "0x4000" "0x20000"
140 ;;
141 zyxel,lte3301-plus)
142 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x80000"
143 ;;
144 zyxel,lte5398-m904|\
145 zyxel,nr7101)
146 idx="$(find_mtd_index Config)"
147 [ -n "$idx" ] && \
148 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x1000" "0x80000"
149 ;;
150 bolt,arion|\
151 xiaomi,mi-router-cr6606|\
152 xiaomi,mi-router-cr6608|\
153 xiaomi,mi-router-cr6609)
154 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x20000"
155 ;;
156 dna,valokuitu-plus-ex400)
157 ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x1f000" "0x1f000" "1"
158 ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x1f000" "0x1f000" "1"
159 ;;
160 netgear,wax214v2)
161 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
162 ubootenv_add_uci_sys_config "/dev/mtd1" "0x20000" "0x8000" "0x20000"
163 ;;
164 esac
165
166 config_load ubootenv
167 config_foreach ubootenv_add_app_config
168
169 exit 0