ath79: add support for Linksys EA4500 v3
[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 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,eap300-v2|\
31 engenius,eap350-v1|\
32 engenius,eap600|\
33 engenius,ecb1200|\
34 engenius,ecb1750|\
35 engenius,ecb350-v1|\
36 engenius,ecb600|\
37 engenius,enh202-v1|\
38 engenius,ens202ext-v1|\
39 engenius,enstationac-v1|\
40 etactica,eg200|\
41 glinet,gl-ar750s-nor|\
42 glinet,gl-ar750s-nor-nand|\
43 librerouter,librerouter-v1|\
44 netgear,ex6400|\
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,nanostation-m|\
70 watchguard,ap100|\
71 watchguard,ap200|\
72 watchguard,ap300|\
73 yuncore,a770|\
74 yuncore,a782|\
75 yuncore,a930|\
76 yuncore,xd3200|\
77 yuncore,xd4200|\
78 ziking,cpe46b|\
79 zyxel,nbg6616)
80 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
81 ;;
82 buffalo,wzr-hp-ag300h)
83 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
84 ;;
85 buffalo,wzr-hp-g300nh-rb|\
86 buffalo,wzr-hp-g300nh-s|\
87 linksys,ea4500-v3)
88 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
89 ;;
90 domywifi,dw33d)
91 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
92 ;;
93 dongwon,dw02-412h-64m|\
94 dongwon,dw02-412h-128m|\
95 glinet,gl-ar300m-lite|\
96 glinet,gl-ar300m-nand|\
97 glinet,gl-ar300m-nor|\
98 glinet,gl-ar300m16)
99 idx="$(find_mtd_index u-boot-env)"
100 [ -n "$idx" ] && \
101 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
102 ;;
103 glinet,gl-ar150)
104 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
105 ;;
106 netgear,wndr3700|\
107 netgear,wndr3700-v2|\
108 netgear,wndrmac-v1)
109 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
110 ;;
111 netgear,pgzng1|\
112 netgear,wndr3700-v4|\
113 netgear,wndr4300|\
114 netgear,wndr4300tn|\
115 netgear,wndr4300sw)
116 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
117 ;;
118 openmesh,om2p-v1|\
119 openmesh,om2p-v2|\
120 openmesh,om2p-v4|\
121 openmesh,om2p-hs-v1|\
122 openmesh,om2p-hs-v2|\
123 openmesh,om2p-hs-v3|\
124 openmesh,om2p-hs-v4|\
125 openmesh,om2p-lc|\
126 plasmacloud,pa300|\
127 plasmacloud,pa300e)
128 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
129 ;;
130 qihoo,c301)
131 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
132 ;;
133 ruckus,zf7321|\
134 ruckus,zf7372)
135 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x40000" "0x10000"
136 ;;
137 sophos,ap15|\
138 sophos,ap55|\
139 sophos,ap55c|\
140 sophos,ap100|\
141 sophos,ap100c)
142 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
143 ;;
144 wallys,dr531)
145 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
146 ;;
147 zte,mf286|\
148 zte,mf286a|\
149 zte,mf286r)
150 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
151 ;;
152 esac
153
154 config_load ubootenv
155 config_foreach ubootenv_add_app_config ubootenv
156
157 exit 0