linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: fxload and udev 094?
Date: Mon, 26 Jun 2006 15:54:31 +0000	[thread overview]
Message-ID: <20060626155431.GD3120@kroah.com> (raw)
In-Reply-To: <BAY113-F32987CC7E5ED8B8C586FDDAA7B0@phx.gbl>

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

  parent reply	other threads:[~2006-06-26 15:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2006-06-25 12:22 ` Robert Kennedy
2006-06-26 15:54 ` Greg KH [this message]
2006-06-26 19:00 ` Robert Kennedy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060626155431.GD3120@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).