Bug 199101 - Verbatim STORE N GO USB drive failed to attach, now resolved, patch for usb-quirk.c included
Summary: Verbatim STORE N GO USB drive failed to attach, now resolved, patch for usb-q...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-04-01 19:14 UTC by DW
Modified: 2018-08-05 05:33 UTC (History)
1 user (show)

See Also:


Attachments
patch for usb_quirk.c, usbdevs (1.14 KB, patch)
2015-04-01 19:14 UTC, DW
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DW 2015-04-01 19:14:18 UTC
Created attachment 155104 [details]
patch for usb_quirk.c, usbdevs

original 11-current system is 
FreeBSD 11.0-CURRENT (VENUS) #0 r280370: Mon Mar 23 22:14:14 CET 2015

relevant dmesg entries when inserting the drive:

umass0: <Verbatim STORE N GO, class 0/0, rev 2.10/1.00, addr 2> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:4:0: Attached to scbus4
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10
00 00 
(probe0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed
(probe0:umass-sim0:0:0:0): Error 5, Unretryable error
(da0:umass-sim0:0:0:0): got CAM status 0x50
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device

=========

after applying the attached patch, the device becomes usable as /dev/da0,
the successful quirk being
 USB_QUIRK(VERBATIM, STORENGO, 0x0000, 0xffff, UQ_MSC_IGNORE_RESIDUE)


ugen2.2: <Verbatim> at usbus2
umass0: <Verbatim STORE N GO, class 0/0, rev 2.10/1.00, addr 2> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8180
umass0:4:0: Attached to scbus4
Trying to mount root from ufs:/dev/ada0p2 [rw]...
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code)
(probe0:umass-sim0:0:0:0): Error 22, Unretryable error
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <Verbatim STORE N GO > Removable Direct Access SPC-4 SCSI device
da0: 40.000MB/s transfers
da0: 14909MB (30535401 512 byte sectors: 255H 63S/T 1900C)
da0: quirks=0x2<NO_6_BYTE>
uhid0: <Fujitsu Siemens Computers Fujitsu Siemens Computers USB-Keyboard rf v1.0, class 0/0, rev 1.10/0.01, addr 2> on usbus4
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2015-04-01 19:27:39 UTC
see
https://lists.freebsd.org/pipermail/freebsd-current/2015-March/055210.html
for the discussion on that topic.
Comment 2 DW 2015-04-03 09:32:52 UTC
patch confirmed to work on 
FreeBSD 10.1-STABLE #0 r279278