--- elwix/config/etc/default/rc.cfg 2014/07/29 19:12:14 1.1.2.5 +++ elwix/config/etc/default/rc.cfg 2014/09/17 21:05:34 1.2.2.1 @@ -2,17 +2,14 @@ # # U-boot cfg nand map load/save management script # -# $Id: rc.cfg,v 1.1.2.5 2014/07/29 19:12:14 misho Exp $ +# $Id: rc.cfg,v 1.2.2.1 2014/09/17 21:05:34 misho Exp $ CFG_NAND_LIST="/etc/cfg.map" -CFG_NAND_MAP="/elwix/altroot/cf/map.cfg" +CFG_NAND_MAP="/dev/ada0g" CFG_NAND_SIZE=262144 -FRM_NAND_MAP="/elwix/altroot/cf/map.firmware" -FRM_NAND_SIZE=7929856 +UPGRADE_GPIO_PINS="1 2 3" -UPGRADE_GPIO_PINS="" - cd ${2:-/etc} case "$1" in @@ -64,7 +61,7 @@ case "$1" in 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 + gpioctl $i 1 >/dev/null 2>&1 || pceng "$1=0" >/dev/null 2>&1 done TFTPd -wR ;;