uboot-envtools: add OpenMesh OM5P-AC 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 alfa-ap120c | \
18 all0258n | \
19 cap324 | \
20 cap4200ag | \
21 carambola2 | \
22 cr3000 | \
23 cr5000 | \
24 eap300v2 | \
25 hornet-ub | \
26 hornet-ub-x2 | \
27 mr1750 | \
28 mr600 | \
29 mr600v2 | \
30 mr900 | \
31 mr900v2 | \
32 nbg6716 | \
33 om5p-an | \
34 om5p-ac | \
35 om5p | \
36 tube2h | \
37 wndr3700)
38 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
39 ;;
40 alfa-ap96 | \
41 all0315n | \
42 om2p | \
43 om2pv2 | \
44 om2p-hs | \
45 om2p-hsv2 | \
46 om2p-lc)
47 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
48 ;;
49 wzr-hp-ag300h)
50 ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
51 ;;
52 qihoo-c301)
53 ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
54 ;;
55 esac
56
57 config_load ubootenv
58 config_foreach ubootenv_add_app_config ubootenv
59
60 exit 0