ath79: add support for Senao Engenius EAP600
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / ath79
1 #!/bin/sh
2 #
3 # Copyright (C) 2011-2014 OpenWrt.org
4 #
5
6 [ -e /etc/config/ubootenv ] && exit 0
7
8 touch /etc/config/ubootenv
9
10 . /lib/uboot-envtools.sh
11 . /lib/functions.sh
12
13 board=$(board_name)
14
15 case "$board" in
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 allnet,all-wap02860ac|\
23 arduino,yun|\
24 buffalo,bhr-4grv2|\
25 devolo,magic-2-wifi|\
26 engenius,eap300-v2|\
27 engenius,eap600|\
28 engenius,ecb1200|\
29 engenius,ecb1750|\
30 engenius,ecb350-v1|\
31 engenius,ecb600|\
32 engenius,enh202-v1|\
33 engenius,ens202ext-v1|\
34 engenius,enstationac-v1|\
35 etactica,eg200|\
36 glinet,gl-ar750s-nor|\
37 glinet,gl-ar750s-nor-nand|\
38 librerouter,librerouter-v1|\
39 netgear,ex6400|\
40 netgear,ex7300|\
41 netgear,wndr4300-v2|\
42 netgear,wndr4500-v3|\
43 netgear,wnr1000-v2|\
44 netgear,wnr2000-v3|\
45 netgear,wnr2200-8m|\
46 netgear,wnr2200-16m|\
47 netgear,wnr612-v2|\
48 ocedo,koala|\
49 ocedo,raccoon|\
50 openmesh,om5p-ac-v2|\
51 samsung,wam250|\
52 ubnt,nanostation-m|\
53 yuncore,a770|\
54 yuncore,a782|\
55 yuncore,xd4200|\
56 zyxel,nbg6616)
57 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
58 ;;
59 buffalo,wzr-hp-ag300h)
60 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
61 ;;
62 domywifi,dw33d)
63 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
64 ;;
65 glinet,gl-ar150)
66 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
67 ;;
68 glinet,gl-ar300m-lite|\
69 glinet,gl-ar300m-nand|\
70 glinet,gl-ar300m-nor|\
71 glinet,gl-ar300m16)
72 idx="$(find_mtd_index u-boot-env)"
73 [ -n "$idx" ] && \
74 ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
75 ;;
76 netgear,wndr3700|\
77 netgear,wndr3700-v2|\
78 netgear,wndrmac-v1)
79 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
80 ;;
81 netgear,wndr3700-v4|\
82 netgear,wndr4300|\
83 netgear,wndr4300tn|\
84 netgear,wndr4300sw)
85 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
86 ;;
87 plasmacloud,pa300|\
88 plasmacloud,pa300e)
89 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
90 ;;
91 qihoo,c301)
92 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
93 ;;
94 wallys,dr531)
95 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
96 ;;
97 esac
98
99 config_load ubootenv
100 config_foreach ubootenv_add_app_config ubootenv
101
102 exit 0