From mboxrd@z Thu Jan 1 00:00:00 1970 From: bhoel@despammed.com (=?utf-8?q?Berthold_H=C3=B6llmann?=) Date: Sun, 24 Dec 2006 23:42:14 +0000 Subject: UDEV rule for uploading firmware Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org I try to fix a UDEV rule for uploading firmware for an USB audio device. The tool madfuload has to get the device name in either the DEVICE environment variable or via a command line switch. The original rule as delivered with the program is: ACTION=3D"add", SUBSYSTEM=3D"usb", DEVPATH=3D"/*.0", ENV{PRODUCT}=3D"763/28= 06/*", RUN+=3D"/usr/local/sbin/madfuload -l -3 -f /usr/local/share/usb/maud= io/ma006100.bin" But this gives only=20 madfuload: --device not given, and DEVICE not set in /var/log/messages when I attach the device. I tried a lot with the command line, even hardcoding the next predictable device name, but always get madfuload: cannot open '/dev/.tmp-0-0': No such device or address or madfuload: cannot open /dev/bus/usb/005/028: No such file or directory even when a manual call with /dev/bus/usb/005/028 is successfull afterwards. The original rule file name is 42-madfuload.rules and I tried to increase the leading number to get the rules applied later in the chain, but no go. With SuSE 10.1 I fixed the problem by reactivating the usbfs mount by fixing the /etc/fstab, but with openSuSE 10.2 I only get # mount -a mount: mount point /proc/bus/usb does not exist # pre SuSE 10.1 #usbfs /proc/bus/usb usbfs noauto #0 0 # SuSE 10.1 /dev/bus/usb /proc/bus/usb usbfs defaults = 0 0 Is there a way to fix this problem in udev, do I have to change my fstab entry or do I have to switch to a different tool like HAL? Thanks Berthold --=20 berthold@xn--hllmanns-n4a.de / bhoel@web.de / ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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