ath79: add support for Dell SonicPoint ACe APL26-0AE
[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 araknis,an-300-ap-i-n|\
24 arduino,yun|\
25 asus,rt-ac59u|\
26 asus,rt-ac59u-v2|\
27 asus,zenwifi-cd6n|\
28 asus,zenwifi-cd6r|\
29 buffalo,bhr-4grv2|\
30 devolo,magic-2-wifi|\
31 engenius,eap300-v2|\
32 engenius,eap350-v1|\
33 engenius,eap600|\
34 engenius,ecb1200|\
35 engenius,ecb1750|\
36 engenius,ecb350-v1|\
37 engenius,ecb600|\
38 engenius,enh202-v1|\
39 engenius,ens202ext-v1|\
40 etactica,eg200|\
41 glinet,gl-ar750s-nor|\
42 glinet,gl-ar750s-nor-nand|\
43 librerouter,librerouter-v1|\
44 moxa,awk-1137c|\
45 netgear,ex7300|\
46 netgear,ex7300-v2|\
47 netgear,wndr4300-v2|\
48 netgear,wndr4500-v3|\
49 netgear,wnr1000-v2|\
50 netgear,wnr2000-v3|\
51 netgear,wnr2200-8m|\
52 netgear,wnr2200-16m|\
53 netgear,wnr612-v2|\
54 ocedo,koala|\
55 ocedo,raccoon|\
56 openmesh,a40|\
57 openmesh,a60|\
58 openmesh,mr600-v1|\
59 openmesh,mr600-v2|\
60 openmesh,mr900-v1|\
61 openmesh,mr900-v2|\
62 openmesh,mr1750-v1|\
63 openmesh,mr1750-v2|\
64 openmesh,om5p|\
65 openmesh,om5p-an|\
66 openmesh,om5p-ac-v1|\
67 openmesh,om5p-ac-v2|\
68 samsung,wam250|\
69 ubnt,airrouter|\
70 ubnt,bullet-m-ar7240|\
71 ubnt,bullet-m-ar7241|\
72 ubnt,nanobridge-m|\
73 ubnt,nanostation-loco-m|\
74 ubnt,nanostation-m|\
75 ubnt,picostation-m|\
76 ubnt,powerbridge-m|\
77 ubnt,rocket-m|\
78 watchguard,ap100|\
79 watchguard,ap200|\
80 yuncore,a770|\
81 yuncore,a782|\
82 yuncore,a930|\
83 yuncore,xd3200|\
84 yuncore,xd4200|\
85 ziking,cpe46b|\
86 zyxel,nbg6616)
87 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
88 ;;
89 aruba,ap-105|\
90 aruba,ap-115|\
91 aruba,ap-175|\
92 dongwon,dw02-412h-64m|\
93 dongwon,dw02-412h-128m|\
94 glinet,gl-ar300m-lite|\
95 glinet,gl-ar300m-nand|\
96 glinet,gl-ar300m-nor|\
97 glinet,gl-ar300m16|\
98 glinet,gl-s200-nor|\
99 glinet,gl-s200-nor-nand)
100 idx="$(find_mtd_index u-boot-env)"
101 [ -n "$idx" ] && \
102 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
103 ;;
104 buffalo,wzr-hp-ag300h)
105 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
106 ;;
107 buffalo,wzr-hp-g300nh-rb|\
108 buffalo,wzr-hp-g300nh-s|\
109 linksys,ea4500-v3)
110 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
111 ;;
112 dell,apl26-0ae)
113 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x10000"
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 huawei,ap5030dn)
122 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x20000" "0x20000"
123 ;;
124 netgear,wndr3700|\
125 netgear,wndr3700-v2|\
126 netgear,wndrmac-v1)
127 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
128 ;;
129 netgear,pgzng1|\
130 netgear,wndr3700-v4|\
131 netgear,wndr4300|\
132 netgear,wndr4300tn|\
133 netgear,wndr4300sw)
134 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
135 ;;
136 openmesh,om2p-v1|\
137 openmesh,om2p-v2|\
138 openmesh,om2p-v4|\
139 openmesh,om2p-hs-v1|\
140 openmesh,om2p-hs-v2|\
141 openmesh,om2p-hs-v3|\
142 openmesh,om2p-hs-v4|\
143 openmesh,om2p-lc|\
144 plasmacloud,pa300|\
145 plasmacloud,pa300e)
146 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
147 ;;
148 qihoo,c301)
149 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
150 ;;
151 ruckus,zf7025|\
152 ruckus,zf7341|\
153 ruckus,zf7351|\
154 ruckus,zf7363)
155 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
156 ;;
157 ruckus,zf7321|\
158 ruckus,zf7372)
159 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
160 ;;
161 sophos,ap15|\
162 sophos,ap55|\
163 sophos,ap55c|\
164 sophos,ap100|\
165 sophos,ap100c)
166 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
167 ;;
168 wallys,dr531)
169 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
170 ;;
171 zte,mf286|\
172 zte,mf286a|\
173 zte,mf286r)
174 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
175 ;;
176 esac
177
178 config_load ubootenv
179 config_foreach ubootenv_add_app_config ubootenv
180
181 exit 0