ath79: add support for DomyWifi DW33D
[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 buffalo,bhr-4grv2|\
18 domywifi,dw33d|\
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 glinet,gl-ar150)
49 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x10000"
50 ;;
51 netgear,wndr3700|\
52 netgear,wndr3700-v2)
53 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x10000"
54 ;;
55 netgear,wndr3700-v4|\
56 netgear,wndr4300)
57 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
58 ;;
59 qihoo,c301)
60 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
61 ;;
62 esac
63
64 config_load ubootenv
65 config_foreach ubootenv_add_app_config ubootenv
66
67 exit 0