I think newer systems may also have nodes (symlinks, really) somewhere in the /sys filesystem, but I haven't actually dug into it so I'm not sure.
On Tue, Mar 18, 2008 at 2:52 PM, Roger Lindsjö <[EMAIL PROTECTED]> wrote: > Richard Clegg wrote: > > Hi, > > > > I have been testing the latest source code from CVS on Fedora Core 6 > > and 8 and it looks like the code is not using the correct identifiers > > for the device nodes at /dev/bus/usb/*/*. > > > > Fedora Core 6 and 8 use device nodes of the form: > > > > /dev/bus/usb/001/001 > > /dev/bus/usb/002/001 > > /dev/bus/usb/003/001 > > etc > > > > but the latest javax-usb source code is trying to access the device > > nodes: > > > > /dev/bus/usb/1/1 > > /dev/bus/usb/2/1 > > /dev/bus/usb/3/1 > > etc > > > > and is failing. > > > > Changing the following lines in > > javax-usb-ri-linux/jni/JavaxUsbKernel.c and then recompiling seemed to > > solve the problem: > > > > #define USBDEVFS_SPRINTF_NODE_NEW "/dev/bus/usb/%d/%d" > > changed to > > #define USBDEVFS_SPRINTF_NODE_NEW "/dev/bus/usb/%3.03d/%3.03d" > > > > #define USBDEVFS_SSCANF_NODE_NEW "/dev/bus/usb/%d/%d" > > changed to > > #define USBDEVFS_SSCANF_NODE_NEW "/dev/bus/usb/%3d/%3d" > > Does anyone know if the use of leading zeroes in the naming of the > > device nodes under /dev/bus/usb/ is specific to Fedora Core or is it > > used on all Linux distributions? > > > It seems to vary, and I guess that Dan's system has no leading zeroes > while my (fedora 7) does. I made the same changes as you to get it > running. I think we have to improve the code which handles those files a > bit. > > //Roger Lindsjö > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > javax-usb-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
