How to add and configure a usb device driver in SRSS for Sunray?
Dear Sir,
If I want to use a usb device on Sunray 2 (the usb device is plugged into Sunray's usb port), and I have been developed a usb driver on Solaris 10. Can I install the same driver in SRSS host to active the usb device in Sunray? If it can, how do I configure SRSS and where is the location of SRSS drivers? Can I use add_drv similar command to add my driver to SRSS?
The second question is when I plug-in a usb device to Sunray, can I see device information (VID, PID, and so on) in any log file or by any command as "prtconf -v" on Solaris?
Thank you very much.
Best Regards,
Steven
# 1
What sort of USB device do you want to use ?
The peripherals chapter in the SRSS admin guide tells you how to use supported USB devices.
http://docs.sun.com/source/819-2384/dev.html
Drivers written for Solaris devices will not work with Sun Ray devices. If you want to write a device driver for Sun Ray, it is recommended you use libusb for a userland driver. See libusb notes on same chapter mentioned above.
There is currently no SRSS utility to list Sun Ray device parameters like prtconf does.
You could write a libusb application to do this, or use the test program described here:
http://libusb.sourceforge.net/doc/examples.html
aw11 at 2007-7-7 3:15:34 >

# 2
Hi,
Thanks your prompt and kind answers.
I am implementing a driver for a non-hid usb touch screen, hence I cannot find the relative descriptions in peripherals chapter of the SRSS admin guide.
I am studying libusb now. Is it a usr application program or a driver if I implement my program by libusb? The test program in http://libusb.sourceforge.net/doc/examples.html looks like a user application program, is it as your means of "userland driver"? How can I create a device node in /tmp/SUNWut/units/IEEE802.0018ed000078/devices just like srss does for usb mass storage or other usb devices?
Thanks a lot!
Steven