linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems defining an udev rule for usb-daq board
@ 2006-08-18 10:59 a0123195
  2006-08-18 11:31 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: a0123195 @ 2006-08-18 10:59 UTC (permalink / raw)
  To: linux-hotplug

Hi all,
I've got trouble configuring an usb-daq board with udev. I use a 
recent self-compiled kernel (2.6.16-2-686) on Debian testing with 
comedi-0.7.72 and an usb-daq board (usbdux). The daq-board runs 
perfect, but I can't figure out how it can be automagically configured 
by udev when hotplugged. After connecting the board,  one had to 
execute the following command (as root): 

/usr/local/sbin/comedi_config -i /usr/local/share/usb/usbdux_firmware.
hex /dev/comedi0 usbdux

I tried the following udev-rule without success:

KERNEL="usbdux", SUSBSYSTEM="module",  SYSFS{refcnt}="0", RUN+="
/usr/local/bin/config_usbdux"

where "config_usbdux" is a shell-script with the comedi_config command 
above.

The following output might be helpful:

# udevinfo -a -p /sys/module/usbdux/

[...]

  looking at device '/module/usbdux':
    KERNEL="usbdux"
    SUBSYSTEM="module"
    SYSFS{refcnt}="0"

# udevinfo -a -p /sys/bus/usb/drivers/usbdux/

  looking at device '/bus/usb/drivers/usbdux':
    KERNEL="usbdux"
    SUBSYSTEM="drivers"

After connecting the daq-board, dmesg shows:

usb 5-1: new high speed USB device using ehci_hcd and address 34
usb 5-1: configuration #1 chosen from 1 choice
comedi_: usbdux_: finding a free structure for the usb-device
comedi_: usbdux: usbduxsub[0] is ready to connect to comedi.
comedi_: usbdux: ifnum=0
comedi_: usbdux0 has been successfully initialised.

After configuring with comedi_config dmesg shows

comedi0: usbdux: uploading 1471 bytes to addr 0, first byte=2.
comedi0: usbdux: usb-device 0 is attached to comedi.
comedi0: attached to usbdux.

Now the board is ready to use,. Any ideas? Thanks in advance, Sven








Endlich Sicherheit bei Computerabstuerzen - Phoenix Recover Pro. http://internetzugang.tiscali.de/internet_services/detail_rec.php


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-21 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 10:59 Problems defining an udev rule for usb-daq board a0123195
2006-08-18 11:31 ` Kay Sievers
2006-08-18 12:20 ` AW: " a0123195
2006-08-18 12:26 ` Kay Sievers
2006-08-19  2:59 ` Greg KH
2006-08-21 14:55 ` AW: " a0123195
2006-08-21 16:49 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).