ath79: consolidate Netgear EX7300 series images
[openwrt/staging/stintel.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 alfa-network,ap121f|\
16 alfa-network,ap121fe|\
17 alfa-network,n2q|\
18 alfa-network,n5q|\
19 alfa-network,pi-wifi4|\
20 alfa-network,r36a|\
21 alfa-network,tube-2hq|\
22 allnet,all-wap02860ac|\
23 araknis,an-300-ap-i-n|\
24 araknis,an-500-ap-i-ac|\
25 araknis,an-700-ap-i-ac|\
26 arduino,yun|\
27 buffalo,bhr-4grv2|\
28 devolo,magic-2-wifi|\
29 engenius,eap1200h|\
30 engenius,eap1750h|\
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 engenius,enstationac-v1|\
41 etactica,eg200|\
42 glinet,gl-ar750s-nor|\
43 glinet,gl-ar750s-nor-nand|\
44 librerouter,librerouter-v1|\
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 watchguard,ap300|\
81 yuncore,a770|\
82 yuncore,a782|\
83 yuncore,a930|\
84 yuncore,xd3200|\
85 yuncore,xd4200|\
86 ziking,cpe46b|\
87 zyxel,nbg6616)
88 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
89 ;;
90 buffalo,wzr-hp-ag300h)
91 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
92 ;;
93 buffalo,wzr-hp-g300nh-rb|\
94 buffalo,wzr-hp-g300nh-s|\
95 linksys,ea4500-v3)
96 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
97 ;;
98 domywifi,dw33d)
99 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
100 ;;
101 dongwon,dw02-412h-64m|\
102 dongwon,dw02-412h-128m|\
103 glinet,gl-ar300m-lite|\
104 glinet,gl-ar300m-nand|\
105 glinet,gl-ar300m-nor|\
106 glinet,gl-ar300m16)
107 idx="$(find_mtd_index u-boot-env)"
108 [ -n "$idx" ] && \
109 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
110 ;;
111 glinet,gl-ar150)
112 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
113 ;;
114 netgear,wndr3700|\
115 netgear,wndr3700-v2|\
116 netgear,wndrmac-v1)
117 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
118 ;;
119 netgear,pgzng1|\
120 netgear,wndr3700-v4|\
121 netgear,wndr4300|\
122 netgear,wndr4300tn|\
123 netgear,wndr4300sw)
124 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
125 ;;
126 openmesh,om2p-v1|\
127 openmesh,om2p-v2|\
128 openmesh,om2p-v4|\
129 openmesh,om2p-hs-v1|\
130 openmesh,om2p-hs-v2|\
131 openmesh,om2p-hs-v3|\
132 openmesh,om2p-hs-v4|\
133 openmesh,om2p-lc|\
134 plasmacloud,pa300|\
135 plasmacloud,pa300e)
136 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
137 ;;
138 qihoo,c301)
139 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
140 ;;
141 ruckus,zf7025)
142 ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x40000" "0x40000"
143 ;;
144 ruckus,zf7321|\
145 ruckus,zf7372)
146 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
147 ;;
148 sophos,ap15|\
149 sophos,ap55|\
150 sophos,ap55c|\
151 sophos,ap100|\
152 sophos,ap100c)
153 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
154 ;;
155 wallys,dr531)
156 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
157 ;;
158 zte,mf286|\
159 zte,mf286a|\
160 zte,mf286r)
161 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
162 ;;
163 esac
164
165 config_load ubootenv
166 config_foreach ubootenv_add_app_config ubootenv
167
168 exit 0