Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to debug a USB problem?



On Wed, Dec 07, 2011 at 01:04:02PM +0400, Aleksej Saushev wrote:
> 
> Build kernel with USB_DEBUG and check kernel messages?
> 
> 

and OHCI_DEBUG and EHCI_DEBUG, then set the variables usbdebug,
ohcidebug and ehcidebug to 1 using DDB (just in case someone else needs
to know wtf to do).

It looks like EHCI just hangs:

Dec  9 08:19:50 rover /netbsd: ehci_pcd: change=0x02
Dec  9 08:19:50 rover /netbsd: ehci_pcd: change=0x02
Dec  9 08:19:51 rover /netbsd: ehci after reset, status=0x00001100
Dec  9 08:19:51 rover /netbsd: ehci0: port reset timeout
Dec  9 08:19:51 rover /netbsd: usbd_do_request_flags_pipe: returning
err=TIMEOUT
Dec  9 08:19:51 rover /netbsd: uhub2: port 1 reset failed

OHCI seems a lot better behaved.  I think the problem with the BBB reset
was more that my mp3 player was upset by the connection to the EHCI
port.  Normally what I would do is try one usb port and then just try
the next one.  When I actually reset the mp3 player and tried a OHCI
port the device attached and I could mount it.  I have copied some files
and it seems fine.

-- 
Brett Lymn
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."




Home | Main Index | Thread Index | Old Index