--- elwix/config/etc/uboot/rc.cfg 2014/02/24 23:18:35 1.1.2.21 +++ elwix/config/etc/uboot/rc.cfg 2014/02/24 23:37:42 1.1.2.22 @@ -2,7 +2,7 @@ # # U-boot cfg nand map load/save management script # -# $Id: rc.cfg,v 1.1.2.21 2014/02/24 23:18:35 misho Exp $ +# $Id: rc.cfg,v 1.1.2.22 2014/02/24 23:37:42 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="8 6 7" + 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 ;; *)