2009-06-23 13:56:01

by Pavel Machek

[permalink] [raw]
Subject: 2.6.31-rc0-git: lsusb stopped working?


On thinkpad x60. Otherwise usb seems to work, including btusb dongle.

/proc/bus/usb does not seem to exists.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


2009-06-23 15:06:31

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue, Jun 23, 2009 at 08:01:14AM -0700, Greg KH wrote:
> On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> >
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> >
> > /proc/bus/usb does not seem to exists.
>
> Newer (as in the past 2 years) versions of lsusb should not need
> /proc/bus/usb/
>
> What version of usbutils are you using?

Oh, and if you really need it back, it's under CONFIG_EMBEDDED now.

Hope this helps,

greg k-h

2009-06-23 15:06:43

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
>
> On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
>
> /proc/bus/usb does not seem to exists.

Newer (as in the past 2 years) versions of lsusb should not need
/proc/bus/usb/

What version of usbutils are you using?

thanks,

greg k-h

2009-06-23 15:09:54

by Frans Pop

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

Pavel Machek wrote:
> On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
>
> /proc/bus/usb does not seem to exists.

Correct. usbfs has been removed in 2.6.31.

It's strange that lsusb no longer works for you. I've verified that on
Debian stable (Lenny) it does still work after I unmount /proc/bus/usb.
I guess Debian must have a newer version of usbutils, or one built with
libusb support.

The fact that your USB devices work means they do have libusb support.

$ dpkg -l usbutils
ii usbutils 0.73-10 Linux USB utilities

Note that /proc/bus/usb/devices has been moved to debugfs and there's also
work being done (see linux-usb archive) on a script that can list
equivalent info by walking /sys.

For all the above: AFAIK and IIUC :-)

Cheers,
FJP

2009-06-23 16:17:49

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue, Jun 23, 2009 at 05:09:44PM +0200, Frans Pop wrote:
> Pavel Machek wrote:
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> >
> > /proc/bus/usb does not seem to exists.
>
> Correct. usbfs has been removed in 2.6.31.

To be pedantic, no, the filesystem has not been "removed". Only the
user-mountable filesystem option has been moved under CONFIG_EMBEDDED,
as there should not be any userspace code that still uses that interface
into usbfs.

The recommended solution is to use the device nodes for usbfs, which
have been around for a few years now, and usually show up under
/dev/bus/usb/ and have the proper ACL and permissions that the
filesystem nodes can't have for a variety of reasons.

If for some reason you can not use the /dev/bus/usb/ device nodes, you
can enable the config option by turning on CONFIG_EMBEDDED.

Hope this helps,

greg k-h

2009-06-23 20:35:29

by Olivier Galibert

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> If for some reason you can not use the /dev/bus/usb/ device nodes, you
> can enable the config option by turning on CONFIG_EMBEDDED.

Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
useful stuff normal people do not want to remove? I for one would
never imagine going there to put back legacy stuff.

OG.

2009-06-23 20:38:03

by Pavel Machek

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue 2009-06-23 22:35:18, Olivier Galibert wrote:
> On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> > If for some reason you can not use the /dev/bus/usb/ device nodes, you
> > can enable the config option by turning on CONFIG_EMBEDDED.
>
> Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
> useful stuff normal people do not want to remove? I for one would
> never imagine going there to put back legacy stuff.

Yes, it surprised me, too.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-06-23 21:06:24

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue, Jun 23, 2009 at 10:35:18PM +0200, Olivier Galibert wrote:
> On Tue, Jun 23, 2009 at 09:13:34AM -0700, Greg KH wrote:
> > If for some reason you can not use the /dev/bus/usb/ device nodes, you
> > can enable the config option by turning on CONFIG_EMBEDDED.
>
> Wasn't CONFIG_EMBEDDED defined as an option to enable _removing_
> useful stuff normal people do not want to remove? I for one would
> never imagine going there to put back legacy stuff.

It works the same way, we really want this option to be disabled, as it
is not needed on "modern" systems. But if you want it back, like on
some embedded systems that have only local root users, then
CONFIG_EMBEDDED will allow you to do that.

thanks,

greg k-h

2009-07-11 09:10:56

by Pavel Machek

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Tue 2009-06-23 08:01:14, Greg KH wrote:
> On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> >
> > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> >
> > /proc/bus/usb does not seem to exists.
>
> Newer (as in the past 2 years) versions of lsusb should not need
> /proc/bus/usb/
>
> What version of usbutils are you using?

root@amd:/home/pavel# lsusb --version
lsusb (usbutils) 0.73
root@amd:/home/pavel#

I may have done something stupid with not runing udev and linking
/proc/bus/usb to /dev, instead...

But it is not only usbutils that is broken, I first noticed breakage
on android fastboot.
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-07-11 17:51:43

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Sat, Jul 11, 2009 at 11:10:39AM +0200, Pavel Machek wrote:
> On Tue 2009-06-23 08:01:14, Greg KH wrote:
> > On Tue, Jun 23, 2009 at 03:55:29PM +0200, Pavel Machek wrote:
> > >
> > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > >
> > > /proc/bus/usb does not seem to exists.
> >
> > Newer (as in the past 2 years) versions of lsusb should not need
> > /proc/bus/usb/
> >
> > What version of usbutils are you using?
>
> root@amd:/home/pavel# lsusb --version
> lsusb (usbutils) 0.73
> root@amd:/home/pavel#
>
> I may have done something stupid with not runing udev and linking
> /proc/bus/usb to /dev, instead...

the opensuse FACTORY tree now has a more modern version of usbutils in
it, which works just fine without usbfs mounted.

> But it is not only usbutils that is broken, I first noticed breakage
> on android fastboot.

Android needs it? That's crazy, given that they don't have any usb host
controllers in their devices. Very wierd...
Android is also an embedded device, so you should be able to select the
option already on their builds, right?

Anyway, this change is going to be reverted, it is already queued up to
go to Linus early next week. Just need to test some other pending
patches as well.

thanks,

greg k-h

2009-07-11 20:45:55

by Pavel Machek

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

Hi!
> > > >
> > > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > > >
> > > > /proc/bus/usb does not seem to exists.
> > >
> > > Newer (as in the past 2 years) versions of lsusb should not need
> > > /proc/bus/usb/
> > >
> > > What version of usbutils are you using?
> >
> > root@amd:/home/pavel# lsusb --version
> > lsusb (usbutils) 0.73
> > root@amd:/home/pavel#
> >
> > I may have done something stupid with not runing udev and linking
> > /proc/bus/usb to /dev, instead...
>
> the opensuse FACTORY tree now has a more modern version of usbutils in
> it, which works just fine without usbfs mounted.

Well, this is heavily hacked debian :-)

> > But it is not only usbutils that is broken, I first noticed breakage
> > on android fastboot.
>
> Android needs it? That's crazy, given that they don't have any usb host
> controllers in their devices. Very wierd...

fastboot runs on PC and uploads kernels to Android device(s).

> Anyway, this change is going to be reverted, it is already queued up to
> go to Linus early next week. Just need to test some other pending
> patches as well.

Thanks!
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-07-12 00:26:50

by Greg KH

[permalink] [raw]
Subject: Re: 2.6.31-rc0-git: lsusb stopped working?

On Fri, Jul 10, 2009 at 06:13:37PM +0200, Pavel Machek wrote:
> Hi!
> > > > >
> > > > > On thinkpad x60. Otherwise usb seems to work, including btusb dongle.
> > > > >
> > > > > /proc/bus/usb does not seem to exists.
> > > >
> > > > Newer (as in the past 2 years) versions of lsusb should not need
> > > > /proc/bus/usb/
> > > >
> > > > What version of usbutils are you using?
> > >
> > > root@amd:/home/pavel# lsusb --version
> > > lsusb (usbutils) 0.73
> > > root@amd:/home/pavel#
> > >
> > > I may have done something stupid with not runing udev and linking
> > > /proc/bus/usb to /dev, instead...
> >
> > the opensuse FACTORY tree now has a more modern version of usbutils in
> > it, which works just fine without usbfs mounted.
>
> Well, this is heavily hacked debian :-)

Take it up with the Debian maintainers then, there are newer usbutils
packages availble somewhere...

> > > But it is not only usbutils that is broken, I first noticed breakage
> > > on android fastboot.
> >
> > Android needs it? That's crazy, given that they don't have any usb host
> > controllers in their devices. Very wierd...
>
> fastboot runs on PC and uploads kernels to Android device(s).

Oh, that program. That sounds like a Debian configuration issue.

good luck,

greg k-h