Good morning!
This is my first post to these forums, so if I am breaking any etiquette, please let me know!
We are developing a board with the following properties, all on the same layout:
We have a basic linux host, based on the AM3352 derived from the BeagleBone, with USB connections to two other devices. These connections are both peripheral only from the perspective of the AM3352.
We have two other processors that we want to boot using the usb connection to the AM335x, where the AM335x is behaving like a storage device. Each of these processors has a direct connection to one of the AM335x USB ports. These processors are host only usb, and only require the DP and DM usb lines.
On the AM335x, we directly connect the DP and DM lines to the USB host. USB(0/1) CE, ID, and DRVVBU are floating. Finally, we have a 5V line connected to the VBUS input. We toggle this on/off to simulate connection/disconnection for bring-up and speed negotiation. Finally, I have verified that both DRVVBUS lines are not configured as GPIO lines.
I have used the 4.06.00.11 kernel, along with the community supported 3.8 kernels (http://eewiki.net/display/linuxonarm/BeagleBone, Robert C Nelson), both exhibiting the same behavior.
We bring the AM3352 part up, booting Linux successfully. At this point we bring the connected processor out of reset and into u-boot. We load the g_mass_storage.ko module on the AM335x and raise the VBUS line. There is some line negotiation, but the two processors fail to properly enumerate and set speed.
Because of the difficulty working with USB in uboot, we are currently booting the other processors via tftp. This allows us to test the usb connections with both sides being Linux. The rest of this post is made with information gathered with both sides in Linux. I only note this because this is not our final goal: we will eventually need to boot from U-boot using the AM335x as a storage device.
The g_mass_storage.ko module is loaded on the AM335x with the following parameters: "insmod g_mass_storage.ko file=/dev/mmcblk0p2 stall=0 iSerialNumber=1 iProduct=2 idVendor=0x0525 iManufacturer=1 idProduct=0xa4a5 removable=1 nofua=1 cdrom=0 ro=1 bcdDevice=1". I have tried the permutations of stall, removable, nofua, and cdrom. This combination gets furthest in the communications, but still fails. I also use a file back storage instead of the /dev/mmcblk0p2, with the same results.
Here is the booting processors dmesg output when we set VBUS into the AM335x:
usb 1-1: new high speed USB device using sduh-ehci and address 2
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device using sduh-ehci and address 3
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: new high speed USB device using sduh-ehci and address 4
usb 1-1: device not accepting address 4, error -71
usb 1-1: new high speed USB device using sduh-ehci and address 5
usb 1-1: device not accepting address 5, error -71
hub 1-0:1.0: unable to enumerate USB device on port 1
Here is the output on the AM335x:
[ 76.323670] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
[ 76.323733] gadget: adding config #1 'Linux File-Backed Storage'/bf094574
[ 76.324020] lun0: open backing file: /dev/mmcblk0p2
[ 76.328401] gadget: Mass Storage Function, version: 2009/09/11
[ 76.334502] gadget: Number of LUNs=1
[ 76.345335] lun0: LUN: removable read only file: /dev/mmcblk0p2
[ 76.351573] gadget: I/O thread pid: 204
[ 76.359637] gadget: adding 'Mass Storage Function'/cf54d840 to config 'Linux File-Backed Storage'/bf094574
[ 76.359697] gadget: cfg 1/bf094574 speeds: high full
[ 76.359716] gadget: interface 0 = Mass Storage Function/cf54d840
[ 76.359743] gadget: Mass Storage Gadget, version: 2009/09/11
[ 76.373331] gadget: g_mass_storage ready
[ 76.381155] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 76.398752] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 76.415317] musb-hdrc musb-hdrc.0.auto: supports USB remote wakeup
[ 76.415463] usb usb1: default language 0x0409
[ 76.415524] usb usb1: udev 1, busnum 1, minor = 0
[ 76.415546] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 76.422599] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 76.429927] usb usb1: Product: MUSB HDRC host driver
[ 76.434964] usb usb1: Manufacturer: Linux 3.8.13-bone28 musb-hcd
[ 76.441049] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 76.455425] usb usb1: usb_probe_device
[ 76.455467] usb usb1: configuration #1 chosen from 1 choice
[ 76.455567] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[ 76.455855] hub 1-0:1.0: usb_probe_interface
[ 76.455878] hub 1-0:1.0: usb_probe_interface - got id
[ 76.455913] hub 1-0:1.0: USB hub found
[ 76.467120] hub 1-0:1.0: 1 port detected
[ 76.474844] hub 1-0:1.0: standalone hub
[ 76.474874] hub 1-0:1.0: individual port power switching
[ 76.474892] hub 1-0:1.0: no over-current protection
[ 76.474909] hub 1-0:1.0: Single TT
[ 76.474929] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
[ 76.474947] hub 1-0:1.0: power on to power good time: 10ms
[ 76.475009] hub 1-0:1.0: local power source is good
[ 76.475160] hub 1-0:1.0: enabling power on all ports
[ 76.576448] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 76.576554] hub 1-0:1.0: hub_suspend
[ 76.576600] usb usb1: bus auto-suspend, wakeup 1
[ 83.889325] CAUTION: musb: Babble Interrupt Occurred
[ 84.008153] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 84.014841] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 84.308024] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 84.314707] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 84.708025] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 84.714718] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 84.807526] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 84.814202] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 84.907643] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 84.914334] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 85.007512] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 85.014198] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 85.019759] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 85.026408] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 85.207639] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 85.214316] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 85.607638] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 85.614325] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 85.907119] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 85.913802] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 86.007141] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 86.013824] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 86.207264] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 86.213958] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 86.307008] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 86.313694] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 86.507238] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 86.514395] CAUTION: musb: Babble Interrupt Occurred
[ 86.737006] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 86.743688] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 86.937006] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 86.943698] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.136860] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.143967] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.149535] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.156636] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.236746] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.243870] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.249440] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.256538] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.336877] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.343998] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.437248] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.444361] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 87.636495] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 87.643616] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 88.136736] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 88.143854] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 88.236230] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 88.536350] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 88.836229] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 88.843394] CAUTION: musb: Babble Interrupt Occurred
[ 89.070327] CAUTION: musb: Babble Interrupt Occurred
[ 89.186345] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 89.385786] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 89.486489] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage idle
[ 89.493081] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 89.499822] CAUTION: musb: Babble Interrupt Occurred
[ 89.786211] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 89.793330] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 89.798898] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage out/status
[ 89.806002] CAUTION: musb: Babble Interrupt Occurred
[ 90.029948] CAUTION: musb: Babble Interrupt Occurred
[ 90.145859] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 90.152552] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.158122] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 90.164786] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.355709] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage in/status
[ 90.362737] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.368320] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage in/status
[ 90.375332] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.569820] CAUTION: musb: Babble Interrupt Occurred
[ 90.685475] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 90.692152] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.697727] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage setup
[ 90.704387] musb_g_ep0_irq 804: SETUP packet len 10 != 8 ?
[ 90.895579] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage in/status
Now, we accidentally discovered that we could partially bring up the AM335x as a storage device if we bounced the VBUS line a couple times, 200ms apart (we originally used a manual toggle to gate the VBUS line, and discovered this after my hand slipped :) )
The AM335x printout:
[ 234.987200] CAUTION: musb: Babble Interrupt Occurred
[ 235.437727] CAUTION: musb: Babble Interrupt Occurred
[ 235.584939] CAUTION: musb: Babble Interrupt Occurred
[ 235.993686] gadget: full-speed config #1: Linux File-Backed Storage
[ 236.000133] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 236.000148] gadget: delayed_status count 1
[ 236.000404] gadget: usb_composite_setup_continue
[ 236.000425] gadget: usb_composite_setup_continue: Completing delayed status
[ 237.103882] gadget: sending command-failure status
[ 237.198191] gadget: bulk-in set halt
[ 237.361195] gadget: bulk-in set halt
[ 237.364240] CAUTION: musb: Babble Interrupt Occurred
[ 237.373738] gadget: reset config
[ 237.373919] gadget: bulk_in_complete --> -104, 16/16
[ 237.373947] gadget: reset interface
[ 237.504524] CAUTION: musb: Babble Interrupt Occurred
[ 237.693426] gadget: full-speed config #1: Linux File-Backed Storage
[ 237.699855] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 237.699871] gadget: delayed_status count 1
[ 237.704557] gadget: usb_composite_setup_continue
[ 237.704577] gadget: usb_composite_setup_continue: Completing delayed status
[ 237.713723] gadget: bulk-in set halt
[ 237.718277] gadget: sending command-failure status
[ 237.799612] gadget: suspend
[ 239.147165] CAUTION: musb: Babble Interrupt Occurred
[ 239.156703] gadget: reset config
[ 239.156830] gadget: bulk_in_complete --> -104, 512/16384
[ 239.156857] gadget: bulk_in_complete --> -104, 0/13
[ 239.156879] gadget: bulk_out_complete --> -104, 0/31
[ 239.156901] gadget: reset interface
[ 239.294244] CAUTION: musb: Babble Interrupt Occurred
[ 239.703613] gadget: full-speed config #1: Linux File-Backed Storage
[ 239.710045] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 239.710060] gadget: delayed_status count 1
[ 239.710182] gadget: usb_composite_setup_continue
[ 239.710201] gadget: usb_composite_setup_continue: Completing delayed status
[ 240.812363] gadget: sending command-failure status
[ 240.907217] gadget: bulk-in set halt
[ 240.910277] CAUTION: musb: Babble Interrupt Occurred
[ 240.919784] gadget: reset config
[ 240.920006] gadget: bulk_in_complete --> -104, 16/16
[ 240.920035] gadget: reset interface
[ 241.054044] CAUTION: musb: Babble Interrupt Occurred
[ 241.242853] gadget: full-speed config #1: Linux File-Backed Storage
[ 241.249286] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 241.249303] gadget: delayed_status count 1
[ 241.254024] gadget: usb_composite_setup_continue
[ 241.254044] gadget: usb_composite_setup_continue: Completing delayed status
[ 241.271722] gadget: bulk-in set halt
[ 241.289919] gadget: sending command-failure status
[ 241.392047] gadget: bulk-in set halt
[ 241.395210] CAUTION: musb: Babble Interrupt Occurred
[ 241.404713] gadget: reset config
[ 241.404985] gadget: bulk_in_complete --> -104, 16/16
[ 241.405017] gadget: reset interface
[ 241.533940] CAUTION: musb: Babble Interrupt Occurred
[ 241.722794] gadget: full-speed config #1: Linux File-Backed Storage
[ 241.729227] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 241.729243] gadget: delayed_status count 1
[ 241.729266] CAUTION: musb: just musb interrupt
[ 241.733924] gadget: usb_composite_setup_continue
[ 241.733945] gadget: usb_composite_setup_continue: Completing delayed status
[ 241.750205] gadget: bulk-in set halt
[ 241.768389] gadget: sending command-failure status
[ 241.844984] gadget: reset config
[ 241.845137] gadget: bulk_in_complete --> -104, 1536/16384
[ 241.849684] gadget: bulk_in_complete --> -104, 13/13
[ 241.854222] gadget: bulk_out_complete --> -104, 0/31
[ 241.854246] gadget: reset interface
[ 241.973816] CAUTION: musb: Babble Interrupt Occurred
[ 242.162742] gadget: full-speed config #1: Linux File-Backed Storage
[ 242.169176] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 242.169191] gadget: delayed_status count 1
[ 242.173921] gadget: usb_composite_setup_continue
[ 242.173942] gadget: usb_composite_setup_continue: Completing delayed status
[ 242.189668] gadget: bulk-in set halt
[ 242.194290] gadget: sending command-failure status
[ 242.246078] CAUTION: musb: Babble Interrupt Occurred
[ 242.255570] gadget: reset config
[ 242.255707] gadget: bulk_in_complete --> -104, 1536/16384
[ 242.260260] gadget: bulk_in_complete --> -104, 13/13
[ 242.264793] gadget: bulk_out_complete --> -104, 0/31
[ 242.264816] gadget: reset interface
[ 242.383854] CAUTION: musb: Babble Interrupt Occurred
[ 242.572649] gadget: full-speed config #1: Linux File-Backed Storage
[ 242.579091] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 242.579107] gadget: delayed_status count 1
[ 242.579130] CAUTION: musb: just musb interrupt
[ 242.583772] gadget: usb_composite_setup_continue
[ 242.583792] gadget: usb_composite_setup_continue: Completing delayed status
[ 242.593395] gadget: bulk-in set halt
[ 242.597968] gadget: sending command-failure status
[ 242.644097] CAUTION: musb: Babble Interrupt Occurred
[ 242.653573] gadget: reset config
[ 242.653706] gadget: bulk_in_complete --> -104, 1536/16384
[ 242.658261] gadget: bulk_in_complete --> -104, 13/13
[ 242.662792] gadget: bulk_out_complete --> -104, 0/31
[ 242.662814] gadget: reset interface
[ 242.783800] CAUTION: musb: Babble Interrupt Occurred
[ 242.972671] gadget: full-speed config #1: Linux File-Backed Storage
[ 242.979095] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 242.979110] gadget: delayed_status count 1
[ 242.984101] gadget: usb_composite_setup_continue
[ 242.984122] gadget: usb_composite_setup_continue: Completing delayed status
[ 242.993512] gadget: bulk-in set halt
[ 242.998101] gadget: sending command-failure status
[ 243.955861] gadget: bulk-in set halt
[ 243.958193] CAUTION: musb: Babble Interrupt Occurred
[ 243.967713] gadget: reset config
[ 243.967890] gadget: bulk_in_complete --> -104, 16/16
[ 243.967918] gadget: reset interface
[ 244.103523] CAUTION: musb: Babble Interrupt Occurred
[ 244.292404] gadget: full-speed config #1: Linux File-Backed Storage
[ 244.298835] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 244.298851] gadget: delayed_status count 1
[ 244.303516] gadget: usb_composite_setup_continue
[ 244.303537] gadget: usb_composite_setup_continue: Completing delayed status
[ 244.320548] gadget: bulk-in set halt
[ 244.338725] gadget: sending command-failure status
And the other processors dmesg:
usb 1-1: new high speed USB device using sduh-ehci and address 6
hub 1-0:1.0: unable to enumerate USB device on port 1
usb 2-1: new full speed USB device using sduh-ohci and address 2
usb 2-1: not running at top speed; connect to a high speed hub
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a5
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: 2
usb 2-1: Manufacturer: 1
usb 2-1: SerialNumber: 1
usb-storage 2-1:1.0: Quirks match for vid 0525 pid a4a5: 10000
scsi0 : usb-storage 2-1:1.0
scsi 0:0:0:0: Direct-Access Linux File-CD Gadget 0308 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 3711015 512-byte logical blocks: (1.90 GB/1.76 GiB)
sd 0:0:0:0: [sda] Write Protect is on
sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
hub 2-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
usb 2-1: USB disconnect, address 2
sd 0:0:0:0: [sda] Unhandled error code
sd 0:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
sd 0:0:0:0: [sda] READ CAPACITY failed
sd 0:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 0:0:0:0: [sda] Sense not available.
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb 2-1: new full speed USB device using sduh-ohci and address 3
usb 2-1: not running at top speed; connect to a high speed hub
usb 2-1: New USB device found, idVendor=0525, idProduct=a4a5
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: 2
usb 2-1: Manufacturer: 1
usb 2-1: SerialNumber: 1
usb-storage 2-1:1.0: Quirks match for vid 0525 pid a4a5: 10000
scsi1 : usb-storage 2-1:1.0
scsi 1:0:0:0: Direct-Access Linux File-CD Gadget 0308 PQ: 0 ANSI: 2
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] 3711015 512-byte logical blocks: (1.90 GB/1.76 GiB)
usb 2-1: reset full speed USB device using sduh-ohci and address 3
sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 1:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 3
sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 1:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 3
usb 2-1: reset full speed USB device using sduh-ohci and address 3
usb 2-1: reset full speed USB device using sduh-ohci and address 3
sd 1:0:0:0: [sda] Media Changed
sd 1:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 1:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 1:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 1:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 22 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
usb 2-1: reset full speed USB device using sduh-ohci and address 3
sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
However, any attempts to mount the sda results in continuous USB resets.
AM335x dmesg:
[ 815.265843] gadget: bulk-in set halt
[ 815.269017] CAUTION: musb: Babble Interrupt Occurred
[ 815.278534] gadget: reset config
[ 815.278731] gadget: bulk_in_complete --> -104, 16/16
[ 815.278760] gadget: reset interface
[ 815.414955] CAUTION: musb: Babble Interrupt Occurred
815.603858] gadget: full-speed config #1: Linux File-Backed Storage
[ 815.610292] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 815.610308] gadget: delayed_status count 1
[ 815.614987] gadget: usb_composite_setup_continue
[ 815.615008] gadget: usb_composite_setup_continue: Completing delayed status
[ 815.624146] gadget: bulk-in set halt
[ 815.628696] gadget: sending command-failure status
[ 815.738462] gadget: bulk-in set halt
[ 815.741010] CAUTION: musb: Babble Interrupt Occurred
[ 815.750531] gadget: reset config
[ 815.750732] gadget: bulk_in_complete --> -104, 16/16
[ 815.750761] gadget: reset interface
[ 815.884869] CAUTION: musb: Babble Interrupt Occurred
[ 816.073755] gadget: full-speed config #1: Linux File-Backed Storage
[ 816.080187] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 816.080203] gadget: delayed_status count 1
[ 816.084882] gadget: usb_composite_setup_continue
[ 816.084904] gadget: usb_composite_setup_continue: Completing delayed status
[ 816.094060] gadget: bulk-in set halt
[ 816.112157] gadget: sending command-failure status
[ 816.180419] gadget: suspend
[ 817.357532] CAUTION: musb: Babble Interrupt Occurred
[ 817.367057] gadget: reset config
[ 817.367196] gadget: bulk_in_complete --> -104, 512/16384
[ 817.367335] gadget: bulk_in_complete --> -104, 0/13
[ 817.367360] gadget: bulk_out_complete --> -104, 0/31
[ 817.367382] gadget: reset interface
[ 817.504606] CAUTION: musb: Babble Interrupt Occurred
[ 817.913339] gadget: full-speed config #1: Linux File-Backed Storage
[ 817.919777] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 817.919793] gadget: delayed_status count 1
[ 817.919930] gadget: usb_composite_setup_continue
[ 817.920035] gadget: usb_composite_setup_continue: Completing delayed status
[ 819.022686] gadget: sending command-failure status
[ 819.116942] gadget: bulk-in set halt
[ 819.129521] gadget: reset config
[ 819.129772] gadget: bulk_in_complete --> -104, 16/16
[ 819.129802] gadget: reset interface
[ 819.264428] CAUTION: musb: Babble Interrupt Occurred
[ 819.453408] gadget: full-speed config #1: Linux File-Backed Storage
[ 819.459854] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 819.459870] gadget: delayed_status count 1
[ 819.464532] gadget: usb_composite_setup_continue
[ 819.464552] gadget: usb_composite_setup_continue: Completing delayed status
[ 819.498304] gadget: bulk-in set halt
[ 819.516524] gadget: sending command-failure status
[ 819.617028] gadget: bulk-in set halt
[ 819.619984] CAUTION: musb: Babble Interrupt Occurred
[ 819.629493] gadget: reset config
[ 819.629708] gadget: bulk_in_complete --> -104, 16/16
[ 819.629737] gadget: reset interface
[ 819.764373] CAUTION: musb: Babble Interrupt Occurred
[ 819.953331] gadget: full-speed config #1: Linux File-Backed Storage
[ 819.959776] gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 819.959791] gadget: delayed_status count 1
[ 819.964745] gadget: usb_composite_setup_continue
[ 819.964767] gadget: usb_composite_setup_continue: Completing delayed status
[ 819.976791] gadget: bulk-in set halt
[ 819.994976] gadget: sending command-failure status
[ 820.061260] CAUTION: musb: Babble Interrupt Occurred
[ 820.070739] gadget: reset config
[ 820.070915] gadget: bulk_in_complete --> -104, 1536/16384
[ 820.075474] gadget: bulk_in_complete --> -104, 13/13
[ 820.080009] gadget: bulk_out_complete --> -104, 0/31
[ 820.080033] gadget: reset interface
[ 820.204333] CAUTION: musb: Babble Interrupt Occurred
Host processor:
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 22 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
EXT3-fs (sda): error: unable to read superblock
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
EXT2-fs (sda): error: unable to read superblock
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 54 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
EXT4-fs (sda): unable to read superblock
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
FAT: unable to read boot sector
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 54 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
FAT: unable to read boot sector
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
isofs_fill_super: bread failed, dev=sda, iso_blknum=16, block=32
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 54 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 54 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
UDF-fs: No partition found (1)
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
quiet_error: 54 callbacks suppressed
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
Buffer I/O error on device sda, logical block 4
Buffer I/O error on device sda, logical block 5
Buffer I/O error on device sda, logical block 6
Buffer I/O error on device sda, logical block 7
Buffer I/O error on device sda, logical block 8
Buffer I/O error on device sda, logical block 9
sda: unable to read partition table
yaffs: dev is 8388608 name is "sda" ro
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 8.0,"sda"
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
usb 2-1: reset full speed USB device using sduh-ohci and address 2
sd 0:0:0:0: [sda] Media Changed
sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 0:0:0:0: [sda] Sense Key : Unit Attention [current]
sd 0:0:0:0: [sda] Add. Sense: Power on, reset, or bus device reset occurred
sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 00 00 00 00 00 20 00
end_request: I/O error, dev sda, sector 0
sda: unable to read partition table
yaffs: dev is 8388608 name is "sda" ro
yaffs: passed flags ""
yaffs: yaffs: Attempting MTD mount of 8.0,"sda"
When connected directly to an actual usb thumbdrive, the other processor successfully recognizes and is able to mount the usb drive.
I have tried several patches and modifications mentioned in other threads (such as toggling VBUS, altering the TRSMRCY delays.
Also, we have tried other gadget drivers (ether, serial), and they ended up having the same kinds of behavior.
Thank you very much for any help/advice you may have. Please let me know if there is anymore information that would be helpful!
Mike