v1.4.1 refesh based upon upstrea 17.01 branch
[librecmc/librecmc.git] / package / boot / uboot-envtools / files / mvebu
1 #!/bin/sh
2 #
3 # Copyright (C) 2014-2016 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
5 #
6
7 [ -e /etc/config/ubootenv ] && exit 0
8
9 touch /etc/config/ubootenv
10
11 . /lib/mvebu.sh
12 . /lib/uboot-envtools.sh
13 . /lib/functions.sh
14
15 board=$(mvebu_board_name)
16
17 case "$board" in
18 armada-385-linksys-caiman|\
19 armada-385-linksys-cobra|\
20 armada-385-linksys-shelby)
21         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
22         ;;
23 armada-385-linksys-rango)
24         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
25         ;;
26 armada-xp-linksys-mamba)
27         ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
28         ;;
29 esac
30
31 config_load ubootenv
32 config_foreach ubootenv_add_app_config ubootenv
33
34 exit 0