3 # Copyright (C) 2014-2016 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
7 [ -e /etc/config/ubootenv ] && exit 0
9 touch /etc/config/ubootenv
11 . /lib/uboot-envtools.sh
18 ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000"
20 globalscale,espressobin|\
21 globalscale,espressobin-emmc|\
22 globalscale,espressobin-v7|\
23 globalscale,espressobin-v7-emmc|\
24 marvell,armada8040-mcbin)
25 ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
30 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
33 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
37 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
42 config_foreach ubootenv_add_app_config ubootenv