[svn-commits] tzafrir: tools/trunk r7596 - in /tools/trunk/xpp: astribank_tool.c xpp_fxloader

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 19 06:20:07 CST 2009


Author: tzafrir
Date: Thu Nov 19 06:20:04 2009
New Revision: 7596

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7596
Log:
xpp: support loading USB firmware into 1163 devices as well

Modified:
    tools/trunk/xpp/astribank_tool.c
    tools/trunk/xpp/xpp_fxloader

Modified: tools/trunk/xpp/astribank_tool.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_tool.c?view=diff&rev=7596&r1=7595&r2=7596
==============================================================================
--- tools/trunk/xpp/astribank_tool.c (original)
+++ tools/trunk/xpp/astribank_tool.c Thu Nov 19 06:20:04 2009
@@ -204,9 +204,9 @@
 	if((astribank = mpp_init(devpath)) == NULL) {
 		ERR("Failed initializing MPP\n");
 #ifdef SUPPORT_OLD_RESET
-		INFO("opt_reset = %s\n", opt_reset);
+		DBG("opt_reset = %s\n", opt_reset);
 		if (opt_reset) {
-			INFO("Trying old reset method\n");
+			DBG("Trying old reset method\n");
 			if ((ret = old_reset(devpath)) != 0) {
 				ERR("Old reset method failed as well: %d\n", ret);
 			}
@@ -223,20 +223,20 @@
 			ERR("Bad reset kind '%s'\n", opt_reset);
 			return 1;
 		}
-		INFO("Reseting (%s)\n", opt_reset);
+		DBG("Reseting (%s)\n", opt_reset);
 		if((ret = mpp_reset(astribank, full_reset)) < 0) {
 			ERR("%s Reseting astribank failed: %d\n",
 				(full_reset) ? "Full" : "Half", ret);
 		}
 	} else if(opt_renumerate) {
-		INFO("Renumerate\n");
+		DBG("Renumerate\n");
 		if((ret = mpp_renumerate(astribank)) < 0) {
 			ERR("Renumerating astribank failed: %d\n", ret);
 		}
 	} else if(opt_watchdog) {
 		int	watchdogstate = strtoul(opt_watchdog, NULL, 0);
 
-		INFO("TWINSTAR: Setting watchdog %s-guard\n",
+		DBG("TWINSTAR: Setting watchdog %s-guard\n",
 			(watchdogstate) ? "on" : "off");
 		if((ret = mpp_tws_setwatchdog(astribank, watchdogstate)) < 0) {
 			ERR("Failed to set watchdog to %d\n", watchdogstate);
@@ -249,7 +249,7 @@
 					? " Same same, never mind..."
 					: "";
 
-		INFO("TWINSTAR: Setting portnum to %d.%s\n", new_portnum, msg);
+		DBG("TWINSTAR: Setting portnum to %d.%s\n", new_portnum, msg);
 		if((ret = mpp_tws_setportnum(astribank, new_portnum)) < 0) {
 			ERR("Failed to set USB portnum to %d\n", new_portnum);
 			return 1;

Modified: tools/trunk/xpp/xpp_fxloader
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/xpp_fxloader?view=diff&rev=7596&r1=7595&r2=7596
==============================================================================
--- tools/trunk/xpp/xpp_fxloader (original)
+++ tools/trunk/xpp/xpp_fxloader Thu Nov 19 06:20:04 2009
@@ -265,6 +265,7 @@
 	load_usb_fw e4e4 1140 $USB_FW
 	load_usb_fw e4e4 1150 $USB_FW
 	load_usb_fw e4e4 1160 $USB_FW
+	load_usb_fw e4e4 1163 $USB_FW
 	wait_renumeration $numdevs e4e4 '11[3456]1'
 	if [ "$1" != 'usb' ]
 	then
@@ -309,7 +310,7 @@
 	$LOGGER "Trying to find what to do for product $PRODUCT, device $DEVICE"
 	prod_id=`echo "$PRODUCT" | cut -d/ -f2`
 	case "$PRODUCT" in
-	e4e4/11[3456]0/*)
+	e4e4/11[3456]0/*|e4e4/1163/*)
 		FIRM_USB="$FIRMWARE_DIR/$USB_FW"
 		$LOGGER "Loading firmware '$FIRM_USB' into '$DEVICE'"
 		run_fxload -D "$DEVICE" -I "$FIRM_USB"




More information about the svn-commits mailing list