TI中文支持网
TI专业的中文技术问题搜集分享网站

PROCESSOR-SDK-AM335X: USB转4hub,同时接两个u盘,互相拷贝大文件失败

Part Number:PROCESSOR-SDK-AM335X

您好

     我使用的是linux3.2的内核,在使用USB转4hub上,插入两个U盘,两个u盘之间拷贝数据,发现几十k的文件传输没有问题,但1-10M的文件传输会报错,执行流程以及报错放到下面,谢谢了。

还有一个现象,u盘和文件系统之间的拷贝是完全没有问题,而且两个U盘同时向文件系统拷贝文件也是没有问题的,但两U盘之间就是拷贝不了大文件,所以没有办法了,希望帮忙看看

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

Nancy Wang:

请问是使用的开发板还是自制板?我需要咨询相关工程师再给您回复,谢谢!

,

Shine:

请问用的是哪个版本的processor SDK?

,

user6044729:

我用的是飞凌的开发版

,

user6044729:

这个processor SDK怎么确认呢,我不太清楚

,

user6044729:

另外我看了一下插入U盘后的进程,如下:

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]同时我对比了一下5718的,多了两个进程,scsi_tmf_和bioset ,不清楚是不是这的问题,在5718插两u盘传文件是没问题的

[scsi_eh_1] [scsi_tmf_1] [usb-storage] [bioset]

[scsi_eh_2] [scsi_tmf_2] [usb-storage] [bioset]

,

Nancy Wang:

是基于以下哪个版本的SDK开发的?

https://www.ti.com.cn/tool/cn/PROCESSOR-SDK-AM335X

,

user6044729:

PROCESSOR-SDK-LINUX-AM335X — Linux Processor SDK for AM335x

,

Nancy Wang:

请参考以下英文贴的回复并及时跟进:

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1013013/am3358-usb/3743721#3743721

,

user6044729:

把CPPI_DMA功能在内核config disabled后,问题解决了,请问这个功能是什么,会影响我4G模块的使用吗

,

Nancy Wang:

是MUSB模块的DMA控制器,负责在 DDR 和 MUSB 端点 FIFO 之间搬移USB数据包。

赞(0)
未经允许不得转载:TI中文支持网 » PROCESSOR-SDK-AM335X: USB转4hub,同时接两个u盘,互相拷贝大文件失败
分享到: 更多 (0)