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"
21 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x8000" "0x8000" "1"
23 globalscale
,espressobin|\
24 globalscale
,espressobin-emmc|\
25 globalscale
,espressobin-v7|\
26 globalscale
,espressobin-v7-emmc|\
27 marvell
,armada8040-mcbin
)
28 ubootenv_add_uci_config
"/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
31 linksys
,wrt1900ac-v2|\
33 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x20000" "0x40000"
36 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x40000" "0x20000"
40 ubootenv_add_uci_config
"/dev/mtd1" "0x0" "0x20000" "0x20000"
43 ubootenv_add_uci_config
"/dev/mtd0" "0x180000" "0x10000" "0x10000"
48 config_foreach ubootenv_add_app_config ubootenv