|
|
Heads-up: a usb tool - prtusbDate: Thu, 01 Feb 2007 11:10:34 +0800 From: Gaopeng Chen - Sun China <Gaopeng.Chen at sun dot com> To: onnv-gate at onnv dot eng dot sun dot com, on-all at sun dot com Subject: Heads-up: a usb tool - prtusb The putback of 6498959 print usb device info for developers and users adds a new dcmd "::prtusb" into mdb. It's a convenient tool to dump the USB device info, which can help users to file an issue/bug and help developers to diagnose in the live system or coredump. DESCRIPTION [addr]::prtusb [-v] [-t] [-i No.] addr : address of usba_device_t -v : print all descriptors -t : print device trees -i No. : print the device by No. (hex) If the addr is assigned, all the USB devices are involved. The options can be combined to use, such as > ::prtusb No. DRIVER INST NODE VID.PID PRODUCT 1 : ehci 0 pci108e,5347 0000.0000 No Product String 2 : ohci 0 pci108e,5347 0000.0000 No Product String 3 : hid 0 mouse 0430.0100 No Product String 4 : hid 1 keyboard 413c.2003 Dell USB Keyboard 5 : usb_mid 0 device 046d.0a02 Logitech USB Headset > ::prtusb -v -t -i 4 No. DRIVER INST NODE VID.PID PRODUCT 4 : hid 1 keyboard 413c.2003 Dell USB Keyboard usba_device: 0x81267540 mfg_prod_sn: Dell - Dell USB Keyboard - keyboard, instance #1 (driver name: hid) /pci@0,0/pci108e,5347@2/keyboard@2 dip: 0x80431b78 hid_statep: 0x8127cb40 hid_errlevel: 0x4 usage page ( 0x01 ) usage ( 0x06 ) ... ... Besides, a wrapper of "::prtusb" shell script "prtusb" is in /net/usb.prc/usbtool/bin/prtusb It can be used by all internal S10/SNV users who haven't updated the mdb usba modules. My friends, when you file a USB bug or issue in the future, please attach the output of "prtusb -v -t". Thanks. -- Best Regards, GaoPeng Chen Call: +86-10-62673005 Ext: x82005 Sun Microsystem Inc. China |