This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: USB

Part Number: AM3358

Hi,

SDK: 

http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html

Customer uses the linux kernel 3.2 . When using USB to 4hub, insert two U disks, copy data between the two U disks, and find that there is no problem with the file transfer of dozens of k, but the file transfer of 1-10M will Report an error, he uses customized board.

root@ok335x:~# [ 47.651818] usb 1-1.4: new high-speed USB device number 3 using musb-hdrc
[ 47.775897] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0749
[ 47.783125] usb 1-1.4: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[ 47.790777] usb 1-1.4: Product: USB3.0 Card Reader
[ 47.795795] usb 1-1.4: Manufacturer: Generic
[ 47.800260] usb 1-1.4: SerialNumber: 000000001536
[ 47.811989] scsi0 : usb-storage 1-1.4:1.0
[ 48.813573] scsi 0:0:0:0: Direct-Access Generic MassStorageClass 1536 PQ: 0 ANSI: 6
[ 50.005570] sd 0:0:0:0: [sda] Unit Not Ready
[ 50.010071] sd 0:0:0:0: [sda] Sense Key : 0xb [current]
[ 50.015771] sd 0:0:0:0: [sda] ASC=0x30 ASCQ=0x0
[ 50.345849] sd 0:0:0:0: [sda] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[ 50.355249] sd 0:0:0:0: [sda] Write Protect is off
[ 50.361535] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 50.382019] sda: sda1
[ 50.391026] sd 0:0:0:0: [sda] Attached SCSI removable disk

[ 57.891818] usb 1-1.1: new high-speed USB device number 4 using musb-hdrc
[ 58.015891] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0749
[ 58.023123] usb 1-1.1: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[ 58.030772] usb 1-1.1: Product: USB3.0 Card Reader
[ 58.035793] usb 1-1.1: Manufacturer: Generic
[ 58.040258] usb 1-1.1: SerialNumber: 000000001536
[ 58.051579] scsi1 : usb-storage 1-1.1:1.0
[ 59.053574] scsi 1:0:0:0: Direct-Access Generic MassStorageClass 1536 PQ: 0 ANSI: 6
[ 59.392629] sd 1:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[ 59.402175] sd 1:0:0:0: [sdb] Write Protect is off
[ 59.408442] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 59.428655] sdb: sdb1 sdb2
[ 59.438757] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 59.592864] EXT3-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
[ 59.614134] EXT2-fs (sdb2): error: couldn't mount because of unsupported optional features (244)
[ 59.654602] EXT3-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
[ 59.668413] EXT2-fs (sdb2): error: couldn't mount because of unsupported optional features (244)
[ 59.686423] yaffs: dev is 8388626 name is "sdb2" rw
[ 59.691538] yaffs: passed flags ""
[ 59.696110] yaffs: dev is 8388626 name is "sdb2" rw
[ 59.701216] yaffs: passed flags ""

root@ok335x:/media# cp sda1/app-debug.apk /media/sdb1/
[ 164.361829] usb 1-1.4: reset high-speed USB device number 3 using musb-hdrc
[ 180.561820] usb 1-1.4: reset high-speed USB device number 3 using musb-hdrc
[ 180.761816] usb 1-1.4: reset high-speed USB device number 3 using musb-hdrc
[ 187.201817] usb 1-1.1: reset high-speed USB device number 4 using musb-hdrc
[ 190.961815] usb 1-1.4: reset high-speed USB device number 3 using musb-hdrc

[ 191.084675] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 191.091746] sd 0:0:0:0: [sda] Unhandled error code
[ 191.096797] sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
[ 191.103480] sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 04 b9 5c 00 00 f0 00
[ 191.111012] end_request: I/O error, dev sda, sector 309596

[ 191.116847] sd 0:0:0:0: rejecting I/O to offline device
[ 191.122334] sd 0:0:0:0: [sda] killing request
[ 191.126928] sd 0:0:0:0: rejecting I/O to offline device
[ 191.132436] sd 0:0:0:0: rejecting I/O to offline device

[ 191.137955] sd 0:0:0:0: [sda] Unhandled error code
[ 191.142991] sd 0:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
[ 191.149663] sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 04 ba 4c 00 00 10 00
[ 191.157193] end_request: I/O error, dev sda, sector 309836
[ 191.163308] sd 0:0:0:0: rejecting I/O to offline device
cp: read error: Input/output error

root@ok335x:/media# [ 197.401825] usb 1-1.1: reset high-speed USB device number 4 using musb-hdrc
[ 213.601818] usb 1-1.1: reset high-speed USB device number 4 using musb-hdrc
[ 213.801806] usb 1-1.1: reset high-speed USB device number 4 using musb-hdrc

Process after inserting U disk:

1165 root 0 SW [scsi_eh_0]
1166 root 0 SW [usb-storage]
1193 root 0 SW [scsi_eh_1]
1194 root 0 SW [usb-storage]

Please help give some suggestions.

  • Hi Nancy,

    Customer uses the linux kernel 3.2 .

    SDK v6.0 was released many years ago, it is no longer supported.

    [ 59.428655] sdb: sdb1 sdb2
    [ 59.438757] sd 1:0:0:0: [sdb] Attached SCSI removable disk
    [ 59.592864] EXT3-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
    [ 59.614134] EXT2-fs (sdb2): error: couldn't mount because of unsupported optional features (244)
    [ 59.654602] EXT3-fs (sdb2): error: couldn't mount because of unsupported optional features (240)
    [ 59.668413] EXT2-fs (sdb2): error: couldn't mount because of unsupported optional features (244)

    The USB device seems to have some issues. Please either re-format it or try a different USB device to  ensure this error message doesn't happen.

    [ 164.361829] usb 1-1.4: reset high-speed USB device number 3 using musb-hdrc

    Then if the reset issue still happens, please check if the MUSB CPPI DMA is enabled in kernel config. Please disable it if it is enabled and check if the copy failure still happens.

  • Hi,

    Thanks for help!

    After the CPPI_DMA function is disabled in the kernel, the problem is solved. What is this function?

  • Hi Nancy,

    Thanks for the update. CPPI DMA is a DMA controller integrated in the MUSB module on AM335x to help moving USB packets between DDR and MUSB endpoint FIFO.