ath79: add support for Araknis AN-500-AP-I-AC
[openwrt/staging/dedeckeh.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 arduino,yun|\
26 buffalo,bhr-4grv2|\
27 devolo,magic-2-wifi|\
28 engenius,eap1200h|\
29 engenius,eap300-v2|\
30 engenius,eap350-v1|\
31 engenius,eap600|\
32 engenius,ecb1200|\
33 engenius,ecb1750|\
34 engenius,ecb350-v1|\
35 engenius,ecb600|\
36 engenius,enh202-v1|\
37 engenius,ens202ext-v1|\
38 engenius,enstationac-v1|\
39 etactica,eg200|\
40 glinet,gl-ar750s-nor|\
41 glinet,gl-ar750s-nor-nand|\
42 librerouter,librerouter-v1|\
43 netgear,ex6400|\
44 netgear,ex7300|\
45 netgear,ex7300-v2|\
46 netgear,wndr4300-v2|\
47 netgear,wndr4500-v3|\
48 netgear,wnr1000-v2|\
49 netgear,wnr2000-v3|\
50 netgear,wnr2200-8m|\
51 netgear,wnr2200-16m|\
52 netgear,wnr612-v2|\
53 ocedo,koala|\
54 ocedo,raccoon|\
55 openmesh,a40|\
56 openmesh,a60|\
57 openmesh,mr600-v1|\
58 openmesh,mr600-v2|\
59 openmesh,mr900-v1|\
60 openmesh,mr900-v2|\
61 openmesh,mr1750-v1|\
62 openmesh,mr1750-v2|\
63 openmesh,om5p|\
64 openmesh,om5p-an|\
65 openmesh,om5p-ac-v1|\
66 openmesh,om5p-ac-v2|\
67 samsung,wam250|\
68 ubnt,nanostation-m|\
69 yuncore,a770|\
70 yuncore,a782|\
71 yuncore,xd4200|\
72 ziking,cpe46b|\
73 zyxel,nbg6616)
74 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
75 ;;
76 buffalo,wzr-hp-ag300h)
77 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
78 ;;
79 buffalo,wzr-hp-g300nh-rb|\
80 buffalo,wzr-hp-g300nh-s)
81 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
82 ;;
83 domywifi,dw33d)
84 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
85 ;;
86 dongwon,dw02-412h-64m|\
87 dongwon,dw02-412h-128m|\
88 glinet,gl-ar300m-lite|\
89 glinet,gl-ar300m-nand|\
90 glinet,gl-ar300m-nor|\
91 glinet,gl-ar300m16)
92 idx="$(find_mtd_index u-boot-env)"
93 [ -n "$idx" ] && \
94 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
95 ;;
96 glinet,gl-ar150)
97 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
98 ;;
99 netgear,wndr3700|\
100 netgear,wndr3700-v2|\
101 netgear,wndrmac-v1)
102 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
103 ;;
104 netgear,wndr3700-v4|\
105 netgear,wndr4300|\
106 netgear,wndr4300tn|\
107 netgear,wndr4300sw)
108 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
109 ;;
110 openmesh,om2p-v1|\
111 openmesh,om2p-v2|\
112 openmesh,om2p-v4|\
113 openmesh,om2p-hs-v1|\
114 openmesh,om2p-hs-v2|\
115 openmesh,om2p-hs-v3|\
116 openmesh,om2p-hs-v4|\
117 openmesh,om2p-lc|\
118 plasmacloud,pa300|\
119 plasmacloud,pa300e)
120 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
121 ;;
122 qihoo,c301)
123 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
124 ;;
125 wallys,dr531)
126 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
127 ;;
128 zte,mf286|\
129 zte,mf286a|\
130 zte,mf286r)
131 ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
132 ;;
133 esac
134
135 config_load ubootenv
136 config_foreach ubootenv_add_app_config ubootenv
137
138 exit 0