ath79: add support for the Netgear WNDRMAC v1
[oweals/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 buffalo,bhr-4grv2|\
18 devolo,magic-2-wifi|\
19 engenius,ecb1750|\
20 etactica,eg200|\
21 glinet,gl-ar300m-lite|\
22 glinet,gl-ar300m-nand|\
23 glinet,gl-ar300m-nor|\
24 glinet,gl-ar300m16|\
25 glinet,gl-ar750s-nor|\
26 glinet,gl-ar750s-nor-nand|\
27 librerouter,librerouter-v1|\
28 netgear,ex6400|\
29 netgear,ex7300|\
30 netgear,wndr4300-v2|\
31 netgear,wndr4500-v3|\
32 netgear,wnr1000-v2|\
33 netgear,wnr2000-v3|\
34 netgear,wnr2200-8m|\
35 netgear,wnr2200-16m|\
36 netgear,wnr612-v2|\
37 ocedo,koala|\
38 ocedo,raccoon|\
39 openmesh,om5p-ac-v2|\
40 yuncore,a770|\
41 yuncore,a782|\
42 yuncore,xd4200)
43         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
44         ;;
45 buffalo,wzr-hp-ag300h)
46         ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
47         ;;
48 domywifi,dw33d)
49         ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x10000" "0x10000"
50         ;;
51 glinet,gl-ar150)
52         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
53         ;;
54 netgear,wndr3700|\
55 netgear,wndr3700-v2|\
56 netgear,wndrmac-v1)
57         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
58         ;;
59 netgear,wndr3700-v4|\
60 netgear,wndr4300|\
61 netgear,wndr4300sw)
62         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
63         ;;
64 qihoo,c301)
65         ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
66         ;;
67 esac
68
69 config_load ubootenv
70 config_foreach ubootenv_add_app_config ubootenv
71
72 exit 0