--- elwix/config/etc/uboot/rc.cfg 2014/02/24 23:18:35 1.1.2.21 +++ elwix/config/etc/uboot/rc.cfg 2014/09/15 19:06:47 1.2 @@ -2,14 +2,13 @@ # # 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.2 2014/09/15 19:06:47 misho Exp $ CFG_NAND_LIST="/etc/cfg.map" CFG_NAND_MAP="/dev/map/cfg" CFG_NAND_SIZE=65536 -FRM_NAND_MAP="/dev/map/firmware" -FRM_NAND_SIZE=7929856 +UPGRADE_GPIO_PINS="8 6 7" cd ${2:-/etc} @@ -61,10 +60,13 @@ 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 ;; *) - echo "Missing parameter - available options are (load | save | erase | backup | restore)" + echo "Missing parameter - available options are (load | save | erase | backup | restore | upgrade)" ;; esac