you don't need usbfs mounted anymore - udev now creates the nodes at /dev/bus/usb. Change the permissions of those nodes instead of mounting usbfs. You can create a simple udev rule, or manually chmod the node(s) you are accessing (the udev rule with work over hotplugs/reboots while a simple chmod is temporary).
On Fri, Dec 12, 2008 at 9:00 AM, Ben Hall <[email protected]> wrote: > I am having some issues accessing devices using javax-usb-ri-linux-1.0.2. I > believe I have set it up correctly as I do not have any errors when running > the example applications. > > I was not able to see any devices with the Show Topology example, except for > the virtual hub so I turned on the JNI tracing which revealed this: > > [hotplug](3) JavaxUsbTopologyUpdater.c.build_device[117] Building device > /dev/bus/usb/001/001 > [default](1) JavaxUsbTopologyUpdater.c.build_device[121] Could not access > /dev/bus/usb/001/001 > [hotplug](3) JavaxUsbTopologyUpdater.c.build_device[117] Building device > /dev/bus/usb/002/001 > [default](1) JavaxUsbTopologyUpdater.c.build_device[121] Could not access > /dev/bus/usb/002/001 > > The lines go on to list the other device combinations but the error messages > are essentially the same. > > I believe the USB access should be correct, but the error message indicates > otherwise. > > Here is how I have mounted the usbfs (insecurely, but it should do the > trick): > > b...@kronos:~$ mount | grep usbfs > usbfs on /proc/bus/usb type usbfs (rw,devmode=0666) > b...@kronos:~$ ls -l /proc/bus/usb/007/003 > -rw-rw-rw- 1 root root 77 2008-12-12 10:33 /proc/bus/usb/007/003 > b...@kronos:~$ uname -a > Linux kronos 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 > GNU/Linux > > I suspect it is something trivial I have forgotten to do but I can not seem > to spot it at this stage. > > Has anyone seen this issue before and if you have, any hints on how I can > fix it? > > Cheers, > Ben. > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > javax-usb-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
