From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jasem Mutlaq" Date: Tue, 14 Oct 2008 17:24:42 +0000 Subject: RE: Loading firmware Message-Id: <007f01c92e21$c1949b30$44bdd190$@com> List-Id: References: <003c01c92d81$89978710$9cc69530$@com> In-Reply-To: <003c01c92d81$89978710$9cc69530$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > That's not a USB _device_, it's a (not interesting) USB endpoint. > > > which I then need to parse in some regexp magic in order to > > extract the bus and dev num in order to construct the full path. I > used to > > be able to pull devnum and busnum ($env{BUSNUM}) but not anymore > (using > > openSUSE 11). > > That still works. I tried it on OpenSUSE 11 and it doesn't, $env{BUSNUM} and $env{DEVNUM} are empty strings, $env{DEVNAME} returns the USB endpoint which I can't pass to fxload. > Why not just use $DEVNAME? > RUN+="/sbin/fxload -D $env{DEVNAME}" This is what I get: run_program: '/sbin/fxload' (stderr) '/dev/usbdev1.24_ep82: No such device or address' run_program: '/sbin/fxload' returned with status 255 Thus far, fxload only works if it is passed something in the form of /dev/bus/usb/XXX/YYY Cheers, Jasem