2013-11-12 10:07:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
|
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2013-11-12 10:07:03 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2018-12-17 22:59:31 +00:00
|
|
|
i2se,duckbill)
|
2013-11-12 10:07:03 +00:00
|
|
|
ubootenv_add_uci_config "/dev/mmcblk0" "0x20000" "0x20000"
|
|
|
|
ubootenv_add_uci_config "/dev/mmcblk0" "0x40000" "0x20000"
|
|
|
|
;;
|
2020-03-04 22:42:02 +00:00
|
|
|
olimex,imx23-olinuxino)
|
|
|
|
ubootenv_add_uci_config "/dev/mmcblk0" "0x40000" "0x4000"
|
|
|
|
;;
|
2013-11-12 10:07:03 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
config_load ubootenv
|
|
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
|
|
|
|
exit 0
|