* Re: Problems defining an udev rule for usb-daq board
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
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2006-08-18 11:31 UTC (permalink / raw)
To: linux-hotplug
On Fri, 2006-08-18 at 12:59 +0200, a0123195@tiscali.de wrote:
> 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"
You plug into the module-load event. Are you sure that the module isn't
already loaded when you connect the device? And how will the module-load
event, that calls your script, find the the device?
Why don't you plug into the event for the device to upload the firmware?
Kay
-------------------------------------------------------------------------
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* AW: Re: Problems defining an udev rule for usb-daq board
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 ` a0123195
2006-08-18 12:26 ` Kay Sievers
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: a0123195 @ 2006-08-18 12:20 UTC (permalink / raw)
To: linux-hotplug
>You plug into the module-load event. Are you sure that the module
isn't
>already loaded when you connect the device? And how will the module-
load
>event, that calls your script, find the the device?
The module usbdux is automatically loaded when the device is
connetcted.
>Why don't you plug into the event for the device to upload the
firmware?
How? I don't know much about udev, but it worked with kernel 2.6.8.
and the hotplug scripts.
Thanks, Sven
>
>Kay
>
>
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* Re: AW: Re: Problems defining an udev rule for usb-daq board
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
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2006-08-18 12:26 UTC (permalink / raw)
To: linux-hotplug
On Fri, 2006-08-18 at 14:20 +0200, a0123195@tiscali.de wrote:
> >You plug into the module-load event. Are you sure that the module
> isn't
> >already loaded when you connect the device? And how will the module-
> load
> >event, that calls your script, find the the device?
>
> The module usbdux is automatically loaded when the device is
> connetcted.
But only the first time you connect a matching device and never again,
except you unload it manually.
> >Why don't you plug into the event for the device to upload the
> firmware?
>
> How? I don't know much about udev, but it worked with kernel 2.6.8.
> and the hotplug scripts.
Run 'udevmonitor --env', plug-in the device, pick from the list of
events the one for the device and use this.
Try the one which contains the correct DEVNAME and use that value as the
device node name you upload the firmware to.
Good luck,
Kay
-------------------------------------------------------------------------
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* Re: Problems defining an udev rule for usb-daq board
2006-08-18 10:59 Problems defining an udev rule for usb-daq board a0123195
` (2 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-08-19 2:59 UTC (permalink / raw)
To: linux-hotplug
On Fri, Aug 18, 2006 at 12:59:34PM +0200, a0123195@tiscali.de wrote:
> 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):
Hm, do you have a pointer to where you got the usbdux code from? It's
not in the main kernel tree, right?
thanks,
greg k-h
-------------------------------------------------------------------------
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* AW: Re: Problems defining an udev rule for usb-daq board
2006-08-18 10:59 Problems defining an udev rule for usb-daq board a0123195
` (3 preceding siblings ...)
2006-08-19 2:59 ` Greg KH
@ 2006-08-21 14:55 ` a0123195
2006-08-21 16:49 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: a0123195 @ 2006-08-21 14:55 UTC (permalink / raw)
To: linux-hotplug
The usbdux code is part of comedi, see e.g. http://www.comedi.
org/download/comedilib-0.7.22.tar.gz, more information about the daq
board is here: http://www.linux-usb-daq.co.uk/.
Thanks, Sven
>----Ursprüngliche Nachricht----
>Von: greg@kroah.com
>Datum: 19.08.2006 04:59
>An: <a0123195@tiscali.de>
>Cc: <linux-hotplug-devel@lists.sourceforge.net>
>Betreff: Re: Problems defining an udev rule for usb-daq board
>
>On Fri, Aug 18, 2006 at 12:59:34PM +0200, a0123195@tiscali.de wrote:
>> 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):
>
>Hm, do you have a pointer to where you got the usbdux code from?
It's
>not in the main kernel tree, right?
>
>thanks,
>
>greg k-h
>
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* Re: Re: Problems defining an udev rule for usb-daq board
2006-08-18 10:59 Problems defining an udev rule for usb-daq board a0123195
` (4 preceding siblings ...)
2006-08-21 14:55 ` AW: " a0123195
@ 2006-08-21 16:49 ` Greg KH
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2006-08-21 16:49 UTC (permalink / raw)
To: linux-hotplug
On Mon, Aug 21, 2006 at 04:55:33PM +0200, a0123195@tiscali.de wrote:
> The usbdux code is part of comedi, see e.g. http://www.comedi.
> org/download/comedilib-0.7.22.tar.gz, more information about the daq
> board is here: http://www.linux-usb-daq.co.uk/.
Ah, ok, that fun thing :(
Try asking the authors of that code to fix it up, as it is not under the
GPL, I'm not allowed to touch it, sorry.
good luck,
greg k-h
-------------------------------------------------------------------------
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