2013-07-03 07:08:19 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2014-06-26 18:14:14 +08:00
|
|
|
# Copyright (C) 2013-2014 OpenWrt.org
|
2013-07-03 07:08:19 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
|
2014-06-26 18:14:14 +08:00
|
|
|
. /lib/imx6.sh
|
2013-07-03 07:08:19 +08:00
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
2014-06-26 18:14:14 +08:00
|
|
|
board=$(imx6_board_name)
|
2013-07-03 07:08:19 +08:00
|
|
|
|
|
|
|
case "$board" in
|
2014-06-26 18:14:14 +08:00
|
|
|
"wandboard")
|
2013-07-03 07:08:19 +08:00
|
|
|
ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
config_load ubootenv
|
|
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
|
|
|
|
exit 0
|