rgrr / yapicoprobe

Yet Another Picoprobe
123 stars 12 forks source link

Mass storage Medium not present #41

Closed JustAnother1 closed 1 year ago

JustAnother1 commented 1 year ago

Without a target connected to the pico with yapicoprobe:

[13072.639849] usb 1-5.4: new full-speed USB device number 13 using xhci_hcd [13072.903394] usb 1-5.4: New USB device found, idVendor=2e8a, idProduct=000c, bcdDevice= 1.13 [13072.903404] usb 1-5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [13072.903408] usb 1-5.4: Product: YAPicoprobe CMSIS-DAP [13072.903410] usb 1-5.4: Manufacturer: RaspberryPi [13072.903412] usb 1-5.4: SerialNumber: E6614C30937B8F2F [13072.990828] hid-generic 0003:2E8A:000C.0008: hiddev3,hidraw6: USB HID v1.11 Device [RaspberryPi YAPicoprobe CMSIS-DAP] on usb-0000:04:00.0-5.4/input1 [13072.991395] cdc_acm 1-5.4:1.2: ttyACM0: USB ACM device [13072.991814] usb-storage 1-5.4:1.4: USB Mass Storage device detected [13072.992193] scsi host6: usb-storage 1-5.4:1.4 [13072.993035] cdc_acm 1-5.4:1.5: ttyACM1: USB ACM device [13074.024612] scsi 6:0:0:0: Direct-Access DAPLink YAPicoprobe 1.13 PQ: 0 ANSI: 2 [13074.025016] sd 6:0:0:0: Attached scsi generic sg2 type 0 [13074.025592] sd 6:0:0:0: [sdb] 262164 512-byte logical blocks: (134 MB/128 MiB) [13074.026323] sd 6:0:0:0: [sdb] Write Protect is on [13074.026330] sd 6:0:0:0: [sdb] Mode Sense: 03 00 80 00 [13074.027034] sd 6:0:0:0: [sdb] No Caching mode page found [13074.027036] sd 6:0:0:0: [sdb] Assuming drive cache: write through [13074.035317] sdb: [13074.035496] sd 6:0:0:0: [sdb] Attached SCSI removable disk [13074.962740] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [13074.962748] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [13074.962753] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [13074.962756] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 00 00 00 08 00 [13074.962759] I/O error, dev sdb, sector 2048 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 [13074.963875] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [13074.963881] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [13074.963885] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [13074.963888] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 00 00 00 04 00 [13074.963889] I/O error, dev sdb, sector 2048 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [13074.963897] Buffer I/O error on dev sdb, logical block 512, async page read [13074.964869] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [13074.964872] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [13074.964875] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [13074.964877] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 04 00 00 04 00 [13074.964878] I/O error, dev sdb, sector 2052 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [13074.964882] Buffer I/O error on dev sdb, logical block 513, async page read

$ lsusb Bus 001 Device 013: ID 2e8a:000c RaspberryPi YAPicoprobe CMSIS-DAP

with another pico as target:

[14334.188489] usb 1-5.4: new full-speed USB device number 14 using xhci_hcd [14334.451363] usb 1-5.4: New USB device found, idVendor=2e8a, idProduct=000c, bcdDevice= 1.13 [14334.451373] usb 1-5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [14334.451377] usb 1-5.4: Product: YAPicoprobe CMSIS-DAP [14334.451379] usb 1-5.4: Manufacturer: RaspberryPi [14334.451381] usb 1-5.4: SerialNumber: E6614C30937B8F2F [14334.539063] hid-generic 0003:2E8A:000C.0009: hiddev3,hidraw6: USB HID v1.11 Device [RaspberryPi YAPicoprobe CMSIS-DAP] on usb-0000:04:00.0-5.4/input1 [14334.539770] cdc_acm 1-5.4:1.2: ttyACM0: USB ACM device [14334.540475] usb-storage 1-5.4:1.4: USB Mass Storage device detected [14334.541334] scsi host6: usb-storage 1-5.4:1.4 [14334.541906] cdc_acm 1-5.4:1.5: ttyACM1: USB ACM device [14335.557483] scsi 6:0:0:0: Direct-Access DAPLink YAPicoprobe 1.13 PQ: 0 ANSI: 2 [14335.557779] sd 6:0:0:0: Attached scsi generic sg2 type 0 [14335.558139] sd 6:0:0:0: [sdb] 262164 512-byte logical blocks: (134 MB/128 MiB) [14335.558847] sd 6:0:0:0: [sdb] Write Protect is on [14335.558850] sd 6:0:0:0: [sdb] Mode Sense: 03 00 80 00 [14335.559609] sd 6:0:0:0: [sdb] No Caching mode page found [14335.559612] sd 6:0:0:0: [sdb] Assuming drive cache: write through [14335.568246] sdb: [14335.568404] sd 6:0:0:0: [sdb] Attached SCSI removable disk [14336.544221] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [14336.544231] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [14336.544235] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [14336.544238] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 00 00 00 08 00 [14336.544241] I/O error, dev sdb, sector 2048 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 [14336.545356] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [14336.545360] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [14336.545363] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [14336.545365] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 00 00 00 04 00 [14336.545367] I/O error, dev sdb, sector 2048 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [14336.545372] Buffer I/O error on dev sdb, logical block 512, async page read [14336.546357] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [14336.546360] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] [14336.546362] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present [14336.546365] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 08 04 00 00 04 00 [14336.546366] I/O error, dev sdb, sector 2052 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [14336.546369] Buffer I/O error on dev sdb, logical block 513, async page read

no drive appears.

rgrr commented 1 year ago

Hallo Lars, ich schreibe mit Dir jetzt auf deutsch. Ist mir ansonsten zu mühsam und es liest außer uns beiden eh keiner mit. Falls doch, wird halt wieder auf englsich umgeschaltet.

Zum MSC: das ist nicht 100%ig ausgegoren. Vor allen Dingen, wenn zur Laufzeit sich die Konfiguration ändert. Ich verwende das hier mal als Merker und fixe es, wenn es passt.

Aber trotzdem noch eine Frage: Du startest die Probe jeweils neu? Oder änderst Du die Konfiguration on the fly?

JustAnother1 commented 1 year ago

Es ist einmal "new full-speed USB device number 13" und dann Nummer 14. Ich habe die USB Verbindung also zwischendurch unterbrochen.

rgrr commented 1 year ago

cannot reconstruct, you have to fix this on your side. PR welcome.

rgrr commented 1 year ago

no feedback, thus closing