3 # Copyright (C) 2013-2014 OpenWrt.org
6 [ -e /etc
/config
/ubootenv
] && exit 0
8 touch /etc
/config
/ubootenv
11 .
/lib
/uboot-envtools.sh
18 ubootenv_add_uci_config $
(bootdev_from_uuid
)boot0
-0x2200 0x2000 0x200 10
21 if [ -c /dev
/mtd1
]; then
22 # board boots from NAND
23 ubootenv_add_uci_config
/dev
/mtd1
0x0 0x20000 0x40000
24 ubootenv_add_uci_config
/dev
/mtd1
0x80000 0x20000 0x40000
26 # board boots from microSD
27 ubootenv_add_uci_config
/dev
/mmcblk0
0xb1400 0x20000 0x20000
28 ubootenv_add_uci_config
/dev
/mmcblk0
0xd1400 0x20000 0x20000
32 ubootenv_add_uci_config
"/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
37 config_foreach ubootenv_add_app_config ubootenv