package/uboot-envtools: add OpenMesh a60 support
[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/ar71xx.sh
11 . /lib/uboot-envtools.sh
12 . /lib/functions.sh
13
14 board=$(ar71xx_board_name)
15
16 case "$board" in
17 a60|\
18 alfa-ap120c|\
19 all0258n|\
20 ap90q|\
21 cap324|\
22 cap4200ag|\
23 carambola2|\
24 cpe830|\
25 cpe870|\
26 cr3000|\
27 cr5000|\
28 eap300v2|\
29 gl-ar300m|\
30 hornet-ub|\
31 hornet-ub-x2|\
32 jwap230|\
33 mr1750|\
34 mr1750v2|\
35 mr600|\
36 mr600v2|\
37 mr900|\
38 mr900v2|\
39 nbg6716|\
40 om5p|\
41 om5p-ac|\
42 om5p-acv2|\
43 om5p-an|\
44 sr3200|\
45 tube2h|\
46 wndr3700|\
47 xd3200)
48 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
49 ;;
50 alfa-ap96|\
51 all0315n|\
52 om2p|\
53 om2p-hs|\
54 om2p-hsv2|\
55 om2p-hsv3|\
56 om2p-hsv4|\
57 om2p-lc|\
58 om2pv2|\
59 om2pv4)
60 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
61 ;;
62 dap-2695-a1|\
63 wzr-hp-ag300h)
64 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
65 ;;
66 dr531)
67 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0xf800" "0x10000"
68 ;;
69 qihoo-c301)
70 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
71 ;;
72 esac
73
74 config_load ubootenv
75 config_foreach ubootenv_add_app_config ubootenv
76
77 exit 0