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.
This commit is contained in:
Frank Mori Hess 2004-03-29 01:43:27 +00:00
parent dfc1ffbdba
commit 30e7053ebc

View file

@ -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
#
#