On Fri, Sep 4, 2009 at 00:33, Stefan Conrad<dr.stefan.conrad@xxxxxxxxxxx> wrote: > I am trying to initialise a MidiSport USB interface with a udev rule > that triggers fxload to upload the firmware: > > ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", Better use KERNEL=="*.0". Matching on the DEVPATH is in most cases wrong. > ENV{PRODUCT}=="763/1001/*", RUN+="/sbin/fxload -v -s > /usr/local/share/usb/maudio/MidiSportLoader.ihx -I > /usr/local/share/usb/maudio/MidiSport2x2.ihx -D $env{DEVNAME}" > > The problem: > DEVNAME is not set in the environment. The rule matches on USB devices _and_ interfaces and runs several times. You better limit it to the device only with: ENV{DEVTYPE}=="usb_device". > Only DEVICE is set with the 'wrong' device file name under /proc/bus/usb > which is deprecated and thus not useful. There is a known timing problem with the usb device nodes, and this should fix it: http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob;f=driver-core/driver-core-add-new-device-to-bus-s-list-before-probing.patch;hb=HEAD Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html