glibc: update to latest 2.27 commit (BZ #24531)
[openwrt/openwrt.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/uboot-envtools.sh
12 . /lib/functions.sh
13
14 board=$(board_name)
15
16 case "$board" in
17 cznic,turris-omnia)
18 ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000"
19 ;;
20 globalscale,espressobin|\
21 marvell,armada8040-mcbin)
22 ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
23 ;;
24 linksys,caiman|\
25 linksys,cobra|\
26 linksys,shelby)
27 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
28 ;;
29 linksys,mamba)
30 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
31 ;;
32 linksys,rango|\
33 linksys,venom)
34 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
35 ;;
36 esac
37
38 config_load ubootenv
39 config_foreach ubootenv_add_app_config ubootenv
40
41 exit 0