ath79: add support for D-Link DIR-859 A3
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / ath79
1 #
2 # Copyright (C) 2011-2014 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 alcatel,hh40v|\
16 alfa-network,ap121f|\
17 alfa-network,ap121fe|\
18 alfa-network,n2q|\
19 alfa-network,n5q|\
20 alfa-network,pi-wifi4|\
21 alfa-network,r36a|\
22 alfa-network,tube-2hq|\
23 allnet,all-wap02860ac|\
24 araknis,an-300-ap-i-n|\
25 araknis,an-500-ap-i-ac|\
26 araknis,an-700-ap-i-ac|\
27 arduino,yun|\
28 buffalo,bhr-4grv2|\
29 devolo,magic-2-wifi|\
30 dlink,dir-859-a1|\
31 dlink,dir-859-a3|\
32 dlink,dir-869-a1|\
33 engenius,eap1200h|\
34 engenius,eap1750h|\
35 engenius,eap300-v2|\
36 engenius,eap350-v1|\
37 engenius,eap600|\
38 engenius,ecb1200|\
39 engenius,ecb1750|\
40 engenius,ecb350-v1|\
41 engenius,ecb600|\
42 engenius,enh202-v1|\
43 engenius,ens202ext-v1|\
44 engenius,enstationac-v1|\
45 engenius,ews660ap|\
46 etactica,eg200|\
47 glinet,gl-ar750s-nor|\
48 glinet,gl-ar750s-nor-nand|\
49 librerouter,librerouter-v1|\
50 netgear,ex7300|\
51 netgear,ex7300-v2|\
52 netgear,wndr4300-v2|\
53 netgear,wndr4500-v3|\
54 netgear,wnr1000-v2|\
55 netgear,wnr2000-v3|\
56 netgear,wnr2200-8m|\
57 netgear,wnr2200-16m|\
58 netgear,wnr612-v2|\
59 ocedo,koala|\
60 ocedo,raccoon|\
61 openmesh,a40|\
62 openmesh,a60|\
63 openmesh,mr600-v1|\
64 openmesh,mr600-v2|\
65 openmesh,mr900-v1|\
66 openmesh,mr900-v2|\
67 openmesh,mr1750-v1|\
68 openmesh,mr1750-v2|\
69 openmesh,om5p|\
70 openmesh,om5p-an|\
71 openmesh,om5p-ac-v1|\
72 openmesh,om5p-ac-v2|\
73 samsung,wam250|\
74 ubnt,airrouter|\
75 ubnt,bullet-m-ar7240|\
76 ubnt,bullet-m-ar7241|\
77 ubnt,nanobridge-m|\
78 ubnt,nanostation-loco-m|\
79 ubnt,nanostation-m|\
80 ubnt,picostation-m|\
81 ubnt,powerbridge-m|\
82 ubnt,rocket-m|\
83 watchguard,ap100|\
84 watchguard,ap200|\
85 watchguard,ap300|\
86 yuncore,a770|\
87 yuncore,a782|\
88 yuncore,a930|\
89 yuncore,xd3200|\
90 yuncore,xd4200|\
91 ziking,cpe46b|\
92 zyxel,nbg6616)
93 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
94 ;;
95 aruba,ap-105|\
96 aruba,ap-175|\
97 dongwon,dw02-412h-64m|\
98 dongwon,dw02-412h-128m|\
99 glinet,gl-ar300m-lite|\
100 glinet,gl-ar300m-nand|\
101 glinet,gl-ar300m-nor|\
102 glinet,gl-ar300m16)
103 idx="$(find_mtd_index u-boot-env)"
104 [ -n "$idx" ] && \
105 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
106 ;;
107 buffalo,wzr-hp-ag300h)
108 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
109 ;;
110 buffalo,wzr-hp-g300nh-rb|\
111 buffalo,wzr-hp-g300nh-s|\
112 linksys,ea4500-v3)
113 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
114 ;;
115 domywifi,dw33d)
116 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
117 ;;
118 glinet,gl-ar150)
119 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
120 ;;
121 netgear,wndr3700|\
122 netgear,wndr3700-v2|\
123 netgear,wndrmac-v1)
124 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
125 ;;
126 netgear,pgzng1|\
127 netgear,wndr3700-v4|\
128 netgear,wndr4300|\
129 netgear,wndr4300tn|\
130 netgear,wndr4300sw)
131 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
132 ;;
133 openmesh,om2p-v1|\
134 openmesh,om2p-v2|\
135 openmesh,om2p-v4|\
136 openmesh,om2p-hs-v1|\
137 openmesh,om2p-hs-v2|\
138 openmesh,om2p-hs-v3|\
139 openmesh,om2p-hs-v4|\
140 openmesh,om2p-lc|\
141 plasmacloud,pa300|\
142 plasmacloud,pa300e)
143 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
144 ;;
145 qihoo,c301)
146 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
147 ;;
148 ruckus,zf7025|\
149 ruckus,zf7341|\
150 ruckus,zf7351|\
151 ruckus,zf7363)
152 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
153 ;;
154 ruckus,zf7321|\
155 ruckus,zf7372)
156 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
157 ;;
158 sophos,ap15|\
159 sophos,ap55|\
160 sophos,ap55c|\
161 sophos,ap100|\
162 sophos,ap100c)
163 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
164 ;;
165 wallys,dr531)
166 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
167 ;;
168 zte,mf286|\
169 zte,mf286a|\
170 zte,mf286r)
171 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
172 ;;
173 esac
174
175 config_load ubootenv
176 config_foreach ubootenv_add_app_config ubootenv
177
178 exit 0