2009/2/27 Felipe Balbi <me@xxxxxxxxxxxxxxx>: > On Fri, Feb 27, 2009 at 06:52:38PM +0100, Frans Meulenbroeks wrote: >> Hi, >> >> Several times I encountered issues with devices connected to the >> beagle board's OTG port (through a powered hub). >> (kernel 2.6.28-omap1). >> Today this happened again and I was lucky enough to be able to find >> the symptoms. >> >> Scenario: I had a file on a USB hard disk. This file was copied to an >> SD card. After copying the file was corrupted. >> Removing the card and hard disk and connecting them to my linux box >> allowed me to compare the SD and hard disk version (using cmp -l). >> There were differences on four places. Each difference was 4 bytes (32 >> bits) and occurred on a 4 byte boundary. >> >> I have no idea what causes it, but I strongly suspect the MUSB driver. >> A hauppauge usb tv card also does not work when connected to the hub, >> whereas the same card works without problem on a linksys NSLU2 (which >> also has an arm processor). >> >> Anyone suggestions? Patches ?? > > I guess that should be already fixed with patches queued up in Greg's > queue, but then again, let me check more. Could you: > > # echo 5 > /sys/modules/musb_hdrc/parameters/debug > # echo 8 > /proc/sysrq-trigger > > then connect device and send me log output ? > > -- > balbi > Hi Balbi, Thanks for your help. It was echo 5 > /sys/module/musb_hdrc/parameters/musb_debug Also beforestarting the system I removed all other usb devices from the hub (I have to use a hub to get enough power for the hard disk). After connecting the disk it took about two seconds before the system started to generate log data. The system kept on generating debug info so after about two minutes I decided that it was enough and switched off the beagle and saved the log file. If this is too short let me know and I'll repeat the experiment. The last 30 lines or so are probably caused by the device loosing power. At that point it was still very busy generating messages The log file is attached: 54 k gizpped 1.2M unzipped. If you happen to have a patch that would be great. Best regards, Frans
Attachment:
minicom.cap.gz
Description: GNU Zip compressed data