2 # Copyright (C) 2013-2014 OpenWrt.org
5 [ -e /etc/config/ubootenv ] && exit 0
7 touch /etc/config/ubootenv
10 . /lib/uboot-envtools.sh
41 if [ -c /dev/mtd1 ]; then
42 # board boots from NAND
43 ubootenv_add_uci_config /dev/mtd1 0x0 0x20000 0x40000
44 ubootenv_add_uci_config /dev/mtd1 0x80000 0x20000 0x40000
46 # board boots from microSD
47 ubootenv_add_uci_config /dev/mmcblk0 0xb1400 0x20000
48 ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x20000
51 toradex,apalis_imx6q-eval|\
52 toradex,apalis_imx6q-ixora|\
53 toradex,apalis_imx6q-ixora-v1.1)
54 ubootenv_add_uci_config $(bootdev_from_uuid)boot0 -0x2200 0x2000 0x200 10
56 wand,imx6dl-wandboard)
57 ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
62 config_foreach ubootenv_add_app_config ubootenv