使用linux驱动,驱动来自:https://github.com/WCHSoftGroup/ch37x_hcd_linux

SPI使用mode3,时钟为12.5MHz


插入识别运行正常:

usb-storage 1-1:1.0: USB Mass Storage device detected

scsi host0: usb-storage 1-1:1.0

scsi 0:0:0:0: Direct-Access? ? ?SanDisk? Cruzer Blade? ? ?1.00 PQ: 0 ANSI: 6


一旦加载SCSI disk驱动,就开始反复出现reset:

insmod sd_mod.ko

[? 183.887964][? 0] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)

[? 214.439579][? 6] ch37x_spi_thread:line[1788]

[? 214.443855][? 7] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 214.450375][? 7] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 214.529168][? 6] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 214.535686][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 214.542213][? 6] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 214.548731][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 214.619170][? 7] usb 1-1: reset full-speed USB device number 2 using wch, spi_ch37x_hcd

[? 214.629643][? 7] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 214.636161][? 7] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 214.719167][? 6] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 214.725685][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 214.732211][? 6] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 214.738729][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 219.859573][? 6] ch37x_spi_thread:line[1788]

[? 219.863852][? 6] usb 1-1: can't restore configuration #1 (error=-110)

[? 219.870286][? 6] hub control -> typeReq: 2301 wValue: 0001 wIndex:0001

[? 219.876804][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 219.883335][? 6] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 219.884590][? 6] sd 0:0:0:0: [sda] Write Protect is off

[? 219.884593][? 6] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00

[? 219.900538][? 6] hub control -> wPortStatus[0]: 0001 wPortChange:? ? 0

[? 219.907065][? 6] usb 1-1: USB disconnect, device number 2

[? 219.919187][? 0] sd 0:0:0:0: [sda] Asking for cache data failed

[? 219.925099][? 0] sd 0:0:0:0: [sda] Assuming drive cache: write through

[? 219.931910][? 0] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00

[? 219.940860][? 0] sd 0:0:0:0: [sda] Sense not available.

[? 219.946079][? 0] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)

[? 219.952715][? 0] sd 0:0:0:0: [sda] Attached SCSI removable disk

[? 220.249348][? 6] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 220.255866][? 6] hub control -> wPortStatus[0]: 0001 wPortChange:? ? 0

[? 220.339166][? 6] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 220.345684][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 220.352210][? 6] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 220.358728][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 220.429169][? 6] usb 1-1: new full-speed USB device number 3 using wch, spi_ch37x_hcd

[? 220.439462][? 6] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 220.445980][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 220.529167][? 6] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 220.535685][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 220.542210][? 6] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 220.548727][? 6] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 220.668244][? 6] usb-storage 1-1:1.0: USB Mass Storage device detected

[? 220.674884][? 6] scsi host0: usb-storage 1-1:1.0

[? 221.706260][? 6] scsi 0:0:0:0: Direct-Access? ? ?SanDisk? Cruzer Blade? ? ?1.00 PQ: 0 ANSI: 6

[? 252.199570][? 1] ch37x_spi_thread:line[1788]

[? 252.203848][? 3] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 252.210368][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 252.289164][? 2] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 252.295683][? 2] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 252.302211][? 2] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 252.308728][? 2] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 252.379169][? 3] usb 1-1: reset full-speed USB device number 3 using wch, spi_ch37x_hcd

[? 252.389623][? 3] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 252.396141][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 252.479167][? 2] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 252.485685][? 2] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 252.492212][? 2] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 252.498730][? 2] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 257.619568][? 1] ch37x_spi_thread:line[1788]

[? 257.623839][? 3] usb 1-1: device firmware changed

[? 257.628536][? 3] hub control -> typeReq: 2301 wValue: 0001 wIndex:0001

[? 257.635054][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 257.641586][? 3] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 257.648103][? 3] hub control -> wPortStatus[0]: 0001 wPortChange:? ? 0

[? 257.654629][? 3] usb 1-1: USB disconnect, device number 3

[? 257.679204][? 3] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00

[? 257.688154][? 3] sd 0:0:0:0: [sda] Sense not available.

[? 257.693373][? 3] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)

[? 257.699979][? 3] sd 0:0:0:0: [sda] 0-byte physical blocks

[? 257.705385][? 3] sd 0:0:0:0: [sda] Write Protect is off

[? 257.710602][? 3] sd 0:0:0:0: [sda] Mode Sense: 00 80 06 12

[? 257.716094][? 3] sd 0:0:0:0: [sda] Asking for cache data failed

[? 257.722005][? 3] sd 0:0:0:0: [sda] Assuming drive cache: write through

[? 257.728803][? 3] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00

[? 257.737754][? 3] sd 0:0:0:0: [sda] Sense not available.

[? 257.743003][? 3] sd 0:0:0:0: [sda] Attached SCSI removable disk

[? 258.089338][? 3] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 258.095857][? 3] hub control -> wPortStatus[0]: 0001 wPortChange:? ? 0

[? 258.179165][? 3] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 258.185683][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 258.192210][? 3] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 258.198727][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 258.269171][? 3] usb 1-1: new full-speed USB device number 4 using wch, spi_ch37x_hcd

[? 258.279398][? 3] hub control -> typeReq: 2303 wValue: 0004 wIndex:0001

[? 258.285916][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ? 0

[? 258.369168][? 3] hub control -> typeReq: a300 wValue: 0000 wIndex:0001

[? 258.375686][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 258.382211][? 3] hub control -> typeReq: 2301 wValue: 0014 wIndex:0001

[? 258.388729][? 3] hub control -> wPortStatus[0]: 0003 wPortChange:? ?10

[? 258.507855][? 3] usb-storage 1-1:1.0: USB Mass Storage device detected

[? 258.514497][? 3] scsi host0: usb-storage 1-1:1.0

[? 259.546341][? 3] scsi 0:0:0:0: Direct-Access? ? ?SanDisk? Cruzer Blade? ? ?1.00 PQ: 0 ANSI: 6

[? 259.558948][? 3] sd 0:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)


请问该如何排查定位