--- elwix/config/etc/default/rc.cfg 2014/02/24 23:18:35 1.1.2.2 +++ elwix/config/etc/default/rc.cfg 2014/02/24 23:57:10 1.1.2.3 @@ -2,7 +2,7 @@ # # U-boot cfg nand map load/save management script # -# $Id: rc.cfg,v 1.1.2.2 2014/02/24 23:18:35 misho Exp $ +# $Id: rc.cfg,v 1.1.2.3 2014/02/24 23:57:10 misho Exp $ CFG_NAND_LIST="/etc/cfg.map" CFG_NAND_MAP="/dev/map/cfg" @@ -11,6 +11,8 @@ CFG_NAND_SIZE=65536 FRM_NAND_MAP="/dev/map/firmware" FRM_NAND_SIZE=7929856 +UPGRADE_GPIO_PINS="" + cd ${2:-/etc} case "$1" in @@ -61,6 +63,9 @@ case "$1" in echo "ELWIX switch to upgrade mode. Starting TFTPd ..." echo " You can upload now elwix_firmware.bin image to device with \"firmware\" name!!!" echo " Example: put elwix_firmware.bin firmware" + for i in ${UPGRADE_GPIO_PINS}; do + gpioctl $i 1 >/dev/null 2>&1 + done TFTPd -wR ;; *)