>> > Very weird indeed. What shows up in /sys/kernel/debug/usb/devices? >> >> The USB devices show up fine there. Here's with the roothub and just a HS hub: >> >> sarah@xanatos:~$ lsusb >> Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 003 Device 003: ID 0a5c:2145 Broadcom Corp. >> Bus 003 Device 002: ID 08ff:2810 AuthenTec, Inc. >> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> sarah@xanatos:~$ ls /sys/bus/usb/devices/ >> 1-0:1.0 3-0:1.0 3-1:1.0 3-2:1.0 3-2:1.2 4-0:1.0 6-0:1.0 8-0:1.0 usb1 usb3 usb5 usb7 usb9 >> 2-0:1.0 3-1 3-2 3-2:1.1 3-2:1.3 5-0:1.0 7-0:1.0 9-0:1.0 usb2 usb4 usb6 usb8 > > Okay, but what about /sys/kernel/debug/usb/devices? > > There's a real, serious reason for asking. Goodness knows where lsusb > gets its information from -- but the debugfs usb/devices file is a > direct window into the kernel's data structures. It even includes > stuff that isn't present in sysfs. > Hi Alan, Sarah, Here is an awk program that prints stuff as if it was from /proc/bus/usb/devices, which is now depricated. It strictly uses only what is in sysfs. However sysfs is very twisty and would only make sense to someone who understands udev. :) In order to get all the descriptors, I had to actually parse the binary descriptors in sysfs. Not all descriptors are fully printed (hid, audio, unknown), but it should not crash. Regards, Steve > ... >> It seems like it's not asking for anything from bus 9. > > No, it isn't. Evidently lsusb gets the list of buses from libusb, so > maybe there's something funky going on inside libusb. Do you know what > version you've got? > > Another possibility to check out is /dev/bus/usb/. Does everything > seem okay in there? > > Alan Stern > >
Attachment:
usbd.awk
Description: Binary data