lkml.org 
[lkml]   [2012]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: usbview 2.0 release
On Tue, Oct 23, 2012 at 12:09:00AM +0530, Anil Nair wrote:
> Hello Greg,
>
> I had only one doubt though the tool seems to work for rooted users only?
> when i try to launch it as a normal user it gives me error saying,
>
> "
> Can not open the file /sys/kernel/debug/usb/devices
>
> Verify that you have USB compiled into your kernel,
> have the USB core modules loaded, and have the
> usbdevfs filesystem mounted
>
> "

Ugh, that old usbdevfs name should go away, it's debugfs that is being
used now, thanks for pointing it out.

> That problem gets solved when using root user, is it because of the
> reason that i have to mount usbdevfs for my current user?
> The earlier usbview v1.1 tool required that that is why i am asking you.

No, debugfs needs to be mounted at /sys/kernel/debug/ Is it not mounted
that way for you? Perhaps it is mounted with root-only access (default
for 3.7-rc1 and newer kernels)?

I should just port the thing to use libusb instead of debugfs, but
that's a larger job for such a low-priority tool.

thanks,

greg k-h


\
 
 \ /
  Last update: 2012-10-22 21:01    [W:0.104 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site