[package] uboot-envtools: add support for imx6 target
[openwrt/svn-archive/archive.git] / package / boot / uboot-envtools / files / imx6
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 OpenWrt.org
4 #
5
6 [ -e /etc/config/ubootenv ] && exit 0
7
8 touch /etc/config/ubootenv
9
10 . /lib/uboot-envtools.sh
11 . /lib/functions.sh
12
13 board=$(cat /proc/device-tree/model)
14
15 case "$board" in
16 "Wandboard i.MX6 Dual Lite Board")
17 ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
18 ;;
19 esac
20
21 config_load ubootenv
22 config_foreach ubootenv_add_app_config ubootenv
23
24 exit 0