* RE: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
@ 2006-06-24 17:52 ` Robert Kennedy
2006-06-25 0:48 ` Greg KH
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Robert Kennedy @ 2006-06-24 17:52 UTC (permalink / raw)
To: linux-hotplug
I have found the bug but don't know the solution.
For some reason the latest kernel 2.6.17 is NOT creating any entries in
/proc/bus/usb. My device driver is trying to upload firmware (via fxload) to
my USB CD-RW drive using /proc/bus/usb as the address. It fails since
/proc/bus/usb does NOT exist ever.
I can load the firmware manually via fxload by using /dev/bus/usb/etc etc as
the address. see Below:
[root@myarch 001]# tail /var/log/everything.log
Jun 24 13:32:03 myarch usb 1-1: USB disconnect, address 5
Jun 24 13:32:13 myarch usb 1-1: new full speed USB device using uhci_hcd and
address 6
Jun 24 13:32:13 myarch usb 1-1: device descriptor read/64, error -71
Jun 24 13:32:13 myarch usb 1-1: configuration #1 chosen from 1 choice
Jun 24 13:32:14 myarch /lib/udev/backpackusb.sh: load
/lib/firmware/backpackusb.d/BP1SCAN.HEX for ac9/0/0 to /proc/bus/usb/001/006
[root@myarch 001]# fxload -D /dev/bus/usb/001/006 -I
/lib/firmware/backpackusb.d/BP1SCAN.HEX
[root@myarch 001]# tail /var/log/everything.log
Jun 24 13:34:54 myarch usb 1-1: USB disconnect, address 6
Jun 24 13:34:55 myarch usb 1-1: new full speed USB device using uhci_hcd and
address 7
Jun 24 13:34:56 myarch usb 1-1: configuration #1 chosen from 1 choice
Jun 24 13:34:56 myarch /lib/udev/backpackusb.sh: load
/lib/firmware/backpackusb.d/BP1CD6.HEX for ac9/1001/306 to
/proc/bus/usb/001/007
Now I must manually upload the second piece of firmware into the CD-RW:
[root@myarch 001]# fxload -D /dev/bus/usb/001/007 -I
/lib/firmware/backpackusb.d/BP1CD6.HEX
[root@myarch 001]# ls /dev/cd*
/dev/cdrom /dev/cdrom0 /dev/cdrom1 /dev/cdrw /dev/cdrw0 /dev/cdwriter
/dev/cd:
cdrom-hdc cdrom-sr0 cdrw-sr0
Success! But there is NEVER any entries in /proc/bus/usb ..
[root@myarch 001]# ls -la /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 2006-06-24 13:49 .
dr-xr-xr-x 6 root root 0 2006-06-24 08:49 ..
[root@myarch 001]#
Is this a BUG in the KERNEL? Or is /proc/bus/usb deprecated?
I am also at a loss on how to change my backpackusb.sh script to use
/dev/bus/usb instaed of /proc/bus/usb. The fix is not obvious to me.
Rob
>From: "Robert Kennedy" <amtor@hotmail.com>
>To: linux-hotplug-devel@lists.sourceforge.net
>Subject: fxload and udev 094?
>Date: Sat, 24 Jun 2006 14:27:01 +0000
>
>I just upgraded to kernel 2.6.17 and udev 094. The hotplugging of my
>external CDRW drive no longer works. It is an old external CD-RW drive
>that
>needs firmware to be loaded into it during hotpluggng via fxload.
>
>Hotplugging worked with previous versions of udev and a simple udev.rules
>file that I named backpackusb.rules.
>
>[rob@myarch rules.d]$ cat backpackusb.rules
>#these are the entries for bpck-usb devices
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0000",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0001",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1000",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1001",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1002",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1003",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1004",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1005",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1006",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="1007",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0010",
>RUN+="/lib/udev/backpackusb.sh"
>SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0011",
>RUN+="/lib/udev/backpackusb.sh"
>[rob@myarch rules.d]$
>
>The rule called a script /lib/udev/backpackusb.sh when the right device was
>hotplugged. This script used fxload to load the firmware into the drive.
>But for some reason it is no longer working. See the log below generated
>during hotplugging:
>
>[root@myarch ~]# tail /var/log/messages.log
>Jun 24 08:54:38 myarch usb 1-1: USB disconnect, address 2
>Jun 24 08:54:41 myarch usb 1-1: new full speed USB device using uhci_hcd
>and
>address 3
>Jun 24 08:54:41 myarch usb 1-1: configuration #1 chosen from 1 choice
>Jun 24 08:54:42 myarch /lib/udev/backpackusb.sh: load
>/lib/firmware/backpackusb.d/BP1SCAN.HEX for ac9/0/0 to
>/proc/bus/usb/001/003
>
>[root@myarch ~]# ls -la /proc/bus/usb/
>total 0
>dr-xr-xr-x 2 root root 0 2006-06-24 08:55 .
>dr-xr-xr-x 6 root root 0 2006-06-24 08:49 ..
>
>[root@myarch ~]# uname -a
>Linux myarch 2.6.17-ARCH #1 SMP PREEMPT Tue Jun 20 12:31:51 CEST 2006 i686
>Pentium II (Deschutes) GenuineIntel GNU/Linux
>
>[root@myarch ~]# udevinfo -V
>udevinfo, version 094
>[root@myarch ~]#
>
>Hotplugging did attempt to load some firmware into my external USB CD-RW
>drive using fxload using the /proc/bus/usb/001/003 address. But there is
>NOTHING in /proc/bus/usb. Very strange.
>
>What has changed? Any ideas?
>
>Rob
>
>
>
>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
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
2006-06-24 17:52 ` Robert Kennedy
@ 2006-06-25 0:48 ` Greg KH
2006-06-25 1:19 ` Robert Kennedy
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-06-25 0:48 UTC (permalink / raw)
To: linux-hotplug
On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> I have found the bug but don't know the solution.
>
> For some reason the latest kernel 2.6.17 is NOT creating any entries in
> /proc/bus/usb.
Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
distros do not even mount the thing anymore, now that we have sysfs and
/dev/bus/usb/ for the usbfs devices.
What distro are you using?
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
2006-06-24 17:52 ` Robert Kennedy
2006-06-25 0:48 ` Greg KH
@ 2006-06-25 1:19 ` Robert Kennedy
2006-06-25 3:09 ` Greg KH
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Robert Kennedy @ 2006-06-25 1:19 UTC (permalink / raw)
To: linux-hotplug
>On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> > I have found the bug but don't know the solution.
> >
> > For some reason the latest kernel 2.6.17 is NOT creating any entries in
> > /proc/bus/usb.
>
>Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
>distros do not even mount the thing anymore, now that we have sysfs and
>/dev/bus/usb/ for the usbfs devices.
>
>What distro are you using?
>
I am using Arch Linux. I think you are right. I did some more digging.
fxload was written and designed to use devfs. It typically uses the DEVICE
environment (set by thr kernel during hotplugging) for the address of the
external USB device. e.g. /proc/bus/usb/001.
I will ask the gurus of the arch distro how I can implment usbfs. (I don't
see a module that I can load. Perhaps I will have to roll my own kernel).
Since it looks like usbfs is on the way out, are there any plans to update
the old fxload program to use /dev/bus/usb paths instead?
Rob
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
` (2 preceding siblings ...)
2006-06-25 1:19 ` Robert Kennedy
@ 2006-06-25 3:09 ` Greg KH
2006-06-25 12:22 ` Robert Kennedy
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-06-25 3:09 UTC (permalink / raw)
To: linux-hotplug
On Sun, Jun 25, 2006 at 01:19:55AM +0000, Robert Kennedy wrote:
>
> >On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> >> I have found the bug but don't know the solution.
> >>
> >> For some reason the latest kernel 2.6.17 is NOT creating any entries in
> >> /proc/bus/usb.
> >
> >Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
> >distros do not even mount the thing anymore, now that we have sysfs and
> >/dev/bus/usb/ for the usbfs devices.
> >
> >What distro are you using?
> >
>
> I am using Arch Linux. I think you are right. I did some more digging.
> fxload was written and designed to use devfs. It typically uses the DEVICE
> environment (set by thr kernel during hotplugging) for the address of the
> external USB device. e.g. /proc/bus/usb/001.
No, DEVICE is not for devfs, it's for udevfs.
> I will ask the gurus of the arch distro how I can implment usbfs. (I don't
> see a module that I can load. Perhaps I will have to roll my own kernel).
Just do:
mount -t usbfs none /proc/bus/usb
and you should be fine. It should already be in your kernel.
> Since it looks like usbfs is on the way out, are there any plans to update
> the old fxload program to use /dev/bus/usb paths instead?
Does it use libusb? If so, it should work just fine as is. If not,
it's a one line change to get it to work.
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
` (3 preceding siblings ...)
2006-06-25 3:09 ` Greg KH
@ 2006-06-25 12:22 ` Robert Kennedy
2006-06-26 15:54 ` Greg KH
2006-06-26 19:00 ` Robert Kennedy
6 siblings, 0 replies; 8+ messages in thread
From: Robert Kennedy @ 2006-06-25 12:22 UTC (permalink / raw)
To: linux-hotplug
>
>On Sun, Jun 25, 2006 at 01:19:55AM +0000, Robert Kennedy wrote:
> >
> > >On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> > >> I have found the bug but don't know the solution.
> > >>
> > >> For some reason the latest kernel 2.6.17 is NOT creating any entries
>in
> > >> /proc/bus/usb.
> > >
> > >Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
> > >distros do not even mount the thing anymore, now that we have sysfs and
> > >/dev/bus/usb/ for the usbfs devices.
> > >
> > >What distro are you using?
> > >
> >
> > I am using Arch Linux. I think you are right. I did some more digging.
> > fxload was written and designed to use devfs. It typically uses the
>DEVICE
> > environment (set by thr kernel during hotplugging) for the address of
>the
> > external USB device. e.g. /proc/bus/usb/001.
>
>No, DEVICE is not for devfs, it's for udevfs.
Hmm. According to the man page for fxload, fxload uses the DEVICE
environment variable as the address of the device to which fxload should
upload the firmware. Currently on my computer, DEVICE is being set to
/proc/bus/usb/xxx/yyy where xxx and yyy vary depending on the histrory of
what is being plugged into the USB bus. I would like to update my scripts
to use /dev/bus/usb adressing but I do not know how to pass this new
/dev/bus/usb addressing into my scripts via a udev rule.
>
> > I will ask the gurus of the arch distro how I can implment usbfs. (I
>don't
> > see a module that I can load. Perhaps I will have to roll my own
>kernel).
>
>Just do:
> mount -t usbfs none /proc/bus/usb
>and you should be fine. It should already be in your kernel.
Yes, that did the trick but I doubt it will last very long since it looks
like arch linux is completely dropping support for devfs. (I assume usbfs
is part of devfs). Every time I run the arch package manager, it asks me to
remove devfs (and just use udev instead).
>
> > Since it looks like usbfs is on the way out, are there any plans to
>update
> > the old fxload program to use /dev/bus/usb paths instead?
>
>Does it use libusb? If so, it should work just fine as is. If not,
>it's a one line change to get it to work.
I don't think it does. It appears that fxload just uses DEVICE to set its
address to which to upload files. Here is the one line in the source code
in main.c of fxload:
const char *device_path = getenv("DEVICE");
Right now, on my computer DEVICE is being set to a usbfs address (e.g.
/proc/bus/usb/xxx/yyy)
It looks like I have two options, try to update fxload so it uses the newer
/dev/bus/usb addressing or
update my scripts to somehow use the new /dev/bus/usb/ addressing.
my udev rules are pretty simple. Here are some of them:
SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0000",
RUN+="/lib/udev/backpackusb.sh"
SYSFS{idVendor}="0ac9", SYSFS{idProduct}="0001",
RUN+="/lib/udev/backpackusb.sh"
As you see when you plug in the right CD-RW USB device into the USB bus,
these udev rules just call the "/lib/udev/backpackusb.sh" script. This
script uses a case statement on $PRODUCT to load the right firmware into the
external CD-RW device using fxload. Right now it uses DEVICE as the
address to which fxload will upload the firmware.
I can override the address with a -D option to fxload.
How can I pass the new /dev/bus/usb address from the udev rule into my
script? Does udev set a different ENVIRONMENT variable to the newer
/dev/bus/usb addressing scheme?
Rob
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
` (4 preceding siblings ...)
2006-06-25 12:22 ` Robert Kennedy
@ 2006-06-26 15:54 ` Greg KH
2006-06-26 19:00 ` Robert Kennedy
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2006-06-26 15:54 UTC (permalink / raw)
To: linux-hotplug
On Sun, Jun 25, 2006 at 12:22:55PM +0000, Robert Kennedy wrote:
>
> >
> >On Sun, Jun 25, 2006 at 01:19:55AM +0000, Robert Kennedy wrote:
> >>
> >> >On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> >> >> I have found the bug but don't know the solution.
> >> >>
> >> >> For some reason the latest kernel 2.6.17 is NOT creating any entries
> >in
> >> >> /proc/bus/usb.
> >> >
> >> >Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
> >> >distros do not even mount the thing anymore, now that we have sysfs and
> >> >/dev/bus/usb/ for the usbfs devices.
> >> >
> >> >What distro are you using?
> >> >
> >>
> >> I am using Arch Linux. I think you are right. I did some more digging.
> >> fxload was written and designed to use devfs. It typically uses the
> >DEVICE
> >> environment (set by thr kernel during hotplugging) for the address of
> >the
> >> external USB device. e.g. /proc/bus/usb/001.
> >
> >No, DEVICE is not for devfs, it's for udevfs.
>
> Hmm. According to the man page for fxload, fxload uses the DEVICE
> environment variable as the address of the device to which fxload should
> upload the firmware. Currently on my computer, DEVICE is being set to
> /proc/bus/usb/xxx/yyy where xxx and yyy vary depending on the histrory of
> what is being plugged into the USB bus. I would like to update my scripts
> to use /dev/bus/usb adressing but I do not know how to pass this new
> /dev/bus/usb addressing into my scripts via a udev rule.
Should be the same addressing.
And anyway, just mount usbfs, what is keeping you from doing that?
> >> I will ask the gurus of the arch distro how I can implment usbfs. (I
> >don't
> >> see a module that I can load. Perhaps I will have to roll my own
> >kernel).
> >
> >Just do:
> > mount -t usbfs none /proc/bus/usb
> >and you should be fine. It should already be in your kernel.
>
> Yes, that did the trick but I doubt it will last very long since it looks
> like arch linux is completely dropping support for devfs. (I assume usbfs
> is part of devfs). Every time I run the arch package manager, it asks me
> to remove devfs (and just use udev instead).
Again, no, usbfs has NOTHING to do with devfs. Totally different,
please do not confuse the two.
And as devfs is not supported in the 2.6 kernel anymore, it might make
sense to remove it from your system :)
> >> Since it looks like usbfs is on the way out, are there any plans to
> >update
> >> the old fxload program to use /dev/bus/usb paths instead?
> >
> >Does it use libusb? If so, it should work just fine as is. If not,
> >it's a one line change to get it to work.
>
> I don't think it does. It appears that fxload just uses DEVICE to set its
> address to which to upload files. Here is the one line in the source code
> in main.c of fxload:
>
> const char *device_path = getenv("DEVICE");
>
> Right now, on my computer DEVICE is being set to a usbfs address (e.g.
> /proc/bus/usb/xxx/yyy)
>
> It looks like I have two options, try to update fxload so it uses the newer
> /dev/bus/usb addressing or
> update my scripts to somehow use the new /dev/bus/usb/ addressing.
Or again, just mount usbfs. Add it to your fstab to have it
automatially mounted at boot time. What is preventing this?
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] 8+ messages in thread* Re: fxload and udev 094?
2006-06-24 14:27 fxload and udev 094? Robert Kennedy
` (5 preceding siblings ...)
2006-06-26 15:54 ` Greg KH
@ 2006-06-26 19:00 ` Robert Kennedy
6 siblings, 0 replies; 8+ messages in thread
From: Robert Kennedy @ 2006-06-26 19:00 UTC (permalink / raw)
To: linux-hotplug
>On Sun, Jun 25, 2006 at 12:22:55PM +0000, Robert Kennedy wrote:
> >
> > >
> > >On Sun, Jun 25, 2006 at 01:19:55AM +0000, Robert Kennedy wrote:
> > >>
> > >> >On Sat, Jun 24, 2006 at 05:52:26PM +0000, Robert Kennedy wrote:
> > >> >> I have found the bug but don't know the solution.
> > >> >>
> > >> >> For some reason the latest kernel 2.6.17 is NOT creating any
>entries
> > >in
> > >> >> /proc/bus/usb.
> > >> >
> > >> >Are you sure usbfs is mounted at /proc/bus/usb? A lot of the newer
> > >> >distros do not even mount the thing anymore, now that we have sysfs
>and
> > >> >/dev/bus/usb/ for the usbfs devices.
> > >> >
> > >> >What distro are you using?
> > >> >
> > >>
> > >> I am using Arch Linux. I think you are right. I did some more
>digging.
> > >> fxload was written and designed to use devfs. It typically uses the
> > >DEVICE
> > >> environment (set by thr kernel during hotplugging) for the address of
> > >the
> > >> external USB device. e.g. /proc/bus/usb/001.
> > >
> > >No, DEVICE is not for devfs, it's for udevfs.
> >
> > Hmm. According to the man page for fxload, fxload uses the DEVICE
> > environment variable as the address of the device to which fxload should
> > upload the firmware. Currently on my computer, DEVICE is being set to
> > /proc/bus/usb/xxx/yyy where xxx and yyy vary depending on the histrory
>of
> > what is being plugged into the USB bus. I would like to update my
>scripts
> > to use /dev/bus/usb adressing but I do not know how to pass this new
> > /dev/bus/usb addressing into my scripts via a udev rule.
>
>Should be the same addressing.
>
>And anyway, just mount usbfs, what is keeping you from doing that?
Well it looks like usbfs is not working properly in the in Arch (Linux)
-current. My usbfs line in my /etc/fstab no longer has any effect. I have
filed a bug report with Arch Linux.
(I can manaully mount usbfs. So it looks like a problem with the init
scripts in Arch Linux).
If I really have to, I could modify my driver script to do some bash string
manipulation and change the /proc part in the DEVICE path to /dev. But I
hope that folks at arch get usbfs working properly again so I don't have to
do this hack.
>
> > >> I will ask the gurus of the arch distro how I can implment usbfs. (I
> > >don't
> > >> see a module that I can load. Perhaps I will have to roll my own
> > >kernel).
> > >
> > >Just do:
> > > mount -t usbfs none /proc/bus/usb
> > >and you should be fine. It should already be in your kernel.
> >
> > Yes, that did the trick but I doubt it will last very long since it
>looks
> > like arch linux is completely dropping support for devfs. (I assume
>usbfs
> > is part of devfs). Every time I run the arch package manager, it asks
>me
> > to remove devfs (and just use udev instead).
>
>Again, no, usbfs has NOTHING to do with devfs. Totally different,
>please do not confuse the two.
>
>And as devfs is not supported in the 2.6 kernel anymore, it might make
>sense to remove it from your system :)
Thanks for the info. Since usbfs stopped working properly in the latest
release of Arch that dropped support for devfs, I improperly assumed that
usbfs was part of devfs. My mistake.
>
> > >> Since it looks like usbfs is on the way out, are there any plans to
> > >update
> > >> the old fxload program to use /dev/bus/usb paths instead?
> > >
> > >Does it use libusb? If so, it should work just fine as is. If not,
> > >it's a one line change to get it to work.
> >
> > I don't think it does. It appears that fxload just uses DEVICE to set
>its
> > address to which to upload files. Here is the one line in the source
>code
> > in main.c of fxload:
> >
> > const char *device_path = getenv("DEVICE");
> >
> > Right now, on my computer DEVICE is being set to a usbfs address (e.g.
> > /proc/bus/usb/xxx/yyy)
> >
> > It looks like I have two options, try to update fxload so it uses the
>newer
> > /dev/bus/usb addressing or
> > update my scripts to somehow use the new /dev/bus/usb/ addressing.
>
>Or again, just mount usbfs. Add it to your fstab to have it
>automatially mounted at boot time. What is preventing this?
>
A bug in Arch is preventing this. I have filed a bug Report with the folks
at Arch Linux.
Again... Thanks for all your help. I am learned something new today about
usbfs!
Rob
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] 8+ messages in thread