From 30e7053ebce4d058ecef42c81477bd8680d03aed Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 29 Mar 2004 01:43:27 +0000 Subject: [PATCH] usbdux update from bernd porr: The new hotplug script uses comedi/usbdux.c for firmware upload and not fxload any more. fxload is too unreliable and seems to be missing or different among different distros. All users of usbdux boards report problems which are fxload related. The new hotplug script simply uses comedi_config -i firmware.hex. This fix also removes problems with the usbdevfs (race in 2.6, sleep, ...). The usbdevfs is no longer needed. --- etc/hotplug/usb/usbdux/usbdux | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/etc/hotplug/usb/usbdux/usbdux b/etc/hotplug/usb/usbdux/usbdux index 0e467a8..e801850 100755 --- a/etc/hotplug/usb/usbdux/usbdux +++ b/etc/hotplug/usb/usbdux/usbdux @@ -1,6 +1,6 @@ #!/bin/sh # -# hotplug script for USBDUX. Mon Oct 20 10:08:09 BST 2003. +# hotplug script for USBDUX. Sat Mar 20 09:56:43 GMT 2004 # Bernd.Porr@cn.stir.ac.uk # # @@ -29,26 +29,6 @@ if [ -e /usr/local/share/usb/usbdux_firmware.hex ]; then fi # # -# in 2.6 there might be a race condition between -# the usbdevfs and this hotplug script. -# Therefore we wait a bit to make sure that /proc/bus/usb/... is there. -if ! [ -e $DEVICE ]; then -sleep 1 -fi -# -# If the device is still not existing probably the usbdevfs hasn't been -# mounted. -if ! [ -e $DEVICE ]; then - echo "usbdux hotplug: /proc/bus/usb/... does not exist" - echo "Please make sure that usbdevfs is mounted." - exit 1 -fi -# -# -# firmware upload into the usb device -fxload -v -2 -I $USBDUX_FIRMWARE -# -# # If you have more than one device please add/uncomment # # just to make sure we remove the comedi device @@ -56,7 +36,7 @@ $COMEDI_CONFIG -r /dev/comedi0 # $COMEDI_CONFIG -r /dev/comedi1 # # connecting the comedi device comedi0 with the module usbdux -$COMEDI_CONFIG /dev/comedi0 usbdux -# $COMEDI_CONFIG /dev/comedi1 usbdux +$COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi0 usbdux +# $COMEDI_CONFIG -i $USBDUX_FIRMWARE /dev/comedi1 usbdux # # -- 2.26.2