From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 18 Aug 2006 11:31:40 +0000 Subject: Re: Problems defining an udev rule for usb-daq board Message-Id: <1155900700.3333.20.camel@pim.off.vrfy.org> List-Id: References: <7713092.1155898774121.JavaMail.root@ps14> In-Reply-To: <7713092.1155898774121.JavaMail.root@ps14> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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&kid0709&bid&3057&dat1642 _______________________________________________ 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