ar71xx: add support for OCEDO Koala
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / ar71xx
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 a40|\
17 a60|\
18 alfa-ap120c|\
19 all0258n|\
20 ap121f|\
21 ap90q|\
22 ap91-5g|\
23 arduino-yun|\
24 cap324|\
25 cap4200ag|\
26 carambola2|\
27 cpe830|\
28 cpe870|\
29 cr3000|\
30 cr5000|\
31 e1700ac-v2|\
32 e600g-v2|\
33 e600gac-v2|\
34 eap300v2|\
35 ens202ext|\
36 gl-ar300m|\
37 gl-ar750|\
38 hornet-ub|\
39 hornet-ub-x2|\
40 jwap230|\
41 koala|\
42 mr1750|\
43 mr1750v2|\
44 mr600|\
45 mr600v2|\
46 mr900|\
47 mr900v2|\
48 n5q|\
49 nbg6716|\
50 om5p|\
51 om5p-ac|\
52 om5p-acv2|\
53 om5p-an|\
54 r36a|\
55 rme-eg200|\
56 sr3200|\
57 t830|\
58 tube2h|\
59 wam250|\
60 wndr3700|\
61 xd3200)
62 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
63 ;;
64 alfa-ap96|\
65 all0315n|\
66 om2p|\
67 om2p-hs|\
68 om2p-hsv2|\
69 om2p-hsv3|\
70 om2p-hsv4|\
71 om2p-lc|\
72 om2pv2|\
73 om2pv4)
74 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
75 ;;
76 dap-2695-a1|\
77 wzr-hp-ag300h)
78 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
79 ;;
80 dr342|\
81 dr531)
82 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
83 ;;
84 rambutan)
85 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
86 ubootenv_add_uci_config "/dev/mtd1" "0x100000" "0x20000" "0x20000"
87 ;;
88 qihoo-c301)
89 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
90 ;;
91 wi2a-ac200i)
92 ubootenv_add_uci_config "/dev/mtd4" "0x0" "0x8000" "0x10000"
93 ;;
94 esac
95
96 config_load ubootenv
97 config_foreach ubootenv_add_app_config ubootenv
98
99 exit 0