3 # Copyright (C) 2013-2014 OpenWrt.org
6 [ -e /etc
/config
/ubootenv
] && exit 0
8 touch /etc
/config
/ubootenv
11 .
/lib
/uboot-envtools.sh
14 board
=$
(imx6_board_name
)
18 if [ -c /dev
/mtd1
]; then
19 # board boots from NAND
20 ubootenv_add_uci_config
/dev
/mtd1
0x0 0x20000 0x40000
21 ubootenv_add_uci_config
/dev
/mtd1
0x80000 0x20000 0x40000
23 # board boots from microSD
24 ubootenv_add_uci_config
/dev
/mmcblk0
0xb1400 0x20000 0x20000
25 ubootenv_add_uci_config
/dev
/mmcblk0
0xd1400 0x20000 0x20000
29 ubootenv_add_uci_config
"/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
34 config_foreach ubootenv_add_app_config ubootenv