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?
Regards,
Richard
___________________________________________________________
Rise to the challenge for Sport Relief with Yahoo! For Good
http://uk.promotions.yahoo.com/forgood/
-------------------------------------------------------------------------
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
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel