From: Jonathan M. <jm...@sp...> - 2002-04-30 05:56:16
|
Hi. I'm new to USB coding, but have a grasp of the basic USB concepts. I installed libusb 0.1.5 on my OpenBSD system (with a SIIG OHCI root hub), and even manually ran `MAKEDEV ugen` to create the ugen devices. I am having problems and I don't know if it might be with libusb, openbsd, my card, or what.. When I run testlibusb, I get the following: bash-2.05# ./testlibusb bus/device idVendor/idProduct /dev/usb0//dev/ugen0.00 040A/0002 Couldn't retrieve descriptors I grabbed the testlibusb.c code and added usb_set_debug(4), and got the following: usb_set_debug: Setting debugging level to 4 (on) usb_find_busses: Found /dev/usb0 usb_find_devices_on_bus: Found /dev/ugen0.00 on /dev/usb0 usb_find_devices_on_bus: couldn't open device /dev/ugen1.00: No such file or directory USB error: failed to open /dev/ugen0.00.00: No such file or directory bus/device idVendor/idProduct /dev/usb0//dev/ugen0.00 040A/0002 Couldn't retrieve descriptors At one point I also tried creating symbolic links and crap, but that didn't do anything, and didn't seem to be a real solution. I'm also not sure if USB support is compiled into the OpenBSD kernel (sad to say, I'm more of a Solaris developer and don't know much about the internals of *BSD yet). I also tried checking out the source from cvs, but couldn't get it to autoconf. Any help would be very very very much appreciated. BTW, it's probably worth mentioning what I intend to do, in case anyone wants to lend a hand. I've got one of those Sony Plug-N-Play XM Radios, and the thing has a mini USB port on the back. Sony won't say what it's for or what they plan to do with it, and I searched the net and couldn't find a hint of anyone attempting to work on a driver. So I'll take the plunge. I got a cable that works, plugged it in, and usbdevs reports this: port 2 addr 3: power 100 mA, config 1, DRN-XM01(0x0054), Sony(0x054c), rev 2.00. Anyway, should be interesting to see what happens once I can talk to it (hopefully I won't accidentally overwrite the flash or something). Thanks -Jon |