Project

General

Profile

Bug #8901

Kingston 8GB DT 100 G2 USB stick doesn't work with FreeNAS 9.3

Added by First Last over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Xin Li
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I'm trying to add this stick as a stripe member with Sandisk Cruzer Fit 8GB but for some reason FreeNAS doesn't detect it properly. 'Available USB stick' list is empty and there is no USB stick on disks' list at Storage page.

Mar 18 18:14:52 NAS kernel: ugen0.3: <Kingston> at usbus0
Mar 18 18:14:52 NAS kernel: umass1: <Kingston DT 100 G2, class 0/0, rev 2.00/1.00, addr 3> on usbus0
Mar 18 18:14:52 NAS kernel: umass1: SCSI over Bulk-Only; quirks = 0x0100
Mar 18 18:14:52 NAS kernel: umass1:5:1:-1: Attached to scbus5
Mar 18 18:14:52 NAS kernel: da1 at umass-sim1 bus 1 scbus5 target 0 lun 0
Mar 18 18:14:52 NAS kernel: da1: <Kingston DT 100 G2 1.00> Removable Direct Access SCSI-0 device
Mar 18 18:14:52 NAS kernel: da1: Serial Number 001CC.........70E2374
Mar 18 18:14:52 NAS kernel: da1: 40.000MB/s transfers
Mar 18 18:14:52 NAS kernel: da1: 7639MB (15644912 512 byte sectors: 255H 63S/T 973C)
Mar 18 18:14:52 NAS kernel: da1: quirks=0x2<NO_6_BYTE>
Mar 18 18:14:52 NAS kernel: (da1:umass-sim1:1:0:0): got CAM status 0x50
Mar 18 18:14:52 NAS kernel: (da1:umass-sim1:1:0:0): fatal error, failed to attach to device
Mar 18 18:14:52 NAS kernel: da1 at umass-sim1 bus 1 scbus5 target 0 lun 0
Mar 18 18:14:52 NAS kernel: da1: <Kingston DT 100 G2 1.00> s/n 001CC.....70E2374 detached
Mar 18 18:14:52 NAS kernel: (da1:umass-sim1:1:0:0): Periph destroyed

Temporary fix "usbconfig -u X -a Y add_quirk UQ_MSC_NO_PREVENT_ALLOW" from the FreeBSD bug report linked below worked in my testing.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747

*Fix procedure:

[root@NAS ~]# usbconfig -u 0 -a 3 dump_device_desc
ugen0.3: <DT 100 G2 Kingston> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x0951
idProduct = 0x1653
bcdDevice = 0x0100
iManufacturer = 0x0001 <Kingston>
iProduct = 0x0002 <DT 100 G2>
iSerialNumber = 0x0003 <001.....870E2374>
bNumConfigurations = 0x0001

[root@NAS ~]# usbconfig -u 0 -a 3 add_quirk UQ_MSC_NO_PREVENT_ALLOW
[root@NAS ~]#

Associated revisions

Revision 84f4ffd4 (diff)
Added by Xin Li over 5 years ago

Revert "Selectively incorporate https://svnweb.freebsd.org/base?view=revision&revision=277044" This reverts commit 3c9fe60f5b1bece5314575f3985b0c7680a1813a, the revert is temporary as we are going to cherry-pick individual revisions instead. Ticket: #8901

Revision 84f4ffd4 (diff)
Added by Xin Li over 5 years ago

Revert "Selectively incorporate https://svnweb.freebsd.org/base?view=revision&revision=277044" This reverts commit 3c9fe60f5b1bece5314575f3985b0c7680a1813a, the revert is temporary as we are going to cherry-pick individual revisions instead. Ticket: #8901

Revision 5c0388c2 (diff)
Added by hselasky over 5 years ago

MFC r246360: Fix some nits. (cherry picked from commit f0c15d120340415d495cca912ab4636513f76ada) Ticket: #8901

Revision 5c0388c2 (diff)
Added by hselasky over 5 years ago

MFC r246360: Fix some nits. (cherry picked from commit f0c15d120340415d495cca912ab4636513f76ada) Ticket: #8901

Revision 42f39025 (diff)
Added by hselasky over 5 years ago

MFC r250986: Fix some statical clang analyzer warnings. (cherry picked from commit bade4b429891464a7d846d93d829fd794e1dcb34) Ticket: #8901

Revision 42f39025 (diff)
Added by hselasky over 5 years ago

MFC r250986: Fix some statical clang analyzer warnings. (cherry picked from commit bade4b429891464a7d846d93d829fd794e1dcb34) Ticket: #8901

Revision 81de5687 (diff)
Added by hselasky over 5 years ago

MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 (cherry picked from commit 475f8fee0bee2b6467e9f729f7390948656b54b1) Ticket: #8901

Revision 81de5687 (diff)
Added by hselasky over 5 years ago

MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 (cherry picked from commit 475f8fee0bee2b6467e9f729f7390948656b54b1) Ticket: #8901

Revision 52d179dc (diff)
Added by hselasky over 5 years ago

MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 (cherry picked from commit e8cc935f1dd46dde09f90f5aa935da0d819d8846) Ticket: #8901

Revision 52d179dc (diff)
Added by hselasky over 5 years ago

MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 (cherry picked from commit e8cc935f1dd46dde09f90f5aa935da0d819d8846) Ticket: #8901

Revision f01adb15 (diff)
Added by hselasky over 5 years ago

MFC r278105: Separate out detection of prevent and allow medium removal quirk. PR: 185747 (cherry picked from commit 0e4e52a00f708707164da1a610b4e246953b661b) Ticket: #8901

Revision f01adb15 (diff)
Added by hselasky over 5 years ago

MFC r278105: Separate out detection of prevent and allow medium removal quirk. PR: 185747 (cherry picked from commit 0e4e52a00f708707164da1a610b4e246953b661b) Ticket: #8901

Revision 46a97e60 (diff)
Added by Xin Li over 5 years ago

Revert "Selectively incorporate https://svnweb.freebsd.org/base?view=revision&revision=277044" This reverts commit 3c9fe60f5b1bece5314575f3985b0c7680a1813a, the revert is temporary as we are going to cherry-pick individual revisions instead. Ticket: #8901 (cherry picked from commit 84f4ffd4496e99a6b083d98484f82ea46f8155c6)

Revision 46a97e60 (diff)
Added by Xin Li over 5 years ago

Revert "Selectively incorporate https://svnweb.freebsd.org/base?view=revision&revision=277044" This reverts commit 3c9fe60f5b1bece5314575f3985b0c7680a1813a, the revert is temporary as we are going to cherry-pick individual revisions instead. Ticket: #8901 (cherry picked from commit 84f4ffd4496e99a6b083d98484f82ea46f8155c6)

Revision a4045946 (diff)
Added by hselasky over 5 years ago

MFC r246360: Fix some nits. (cherry picked from commit f0c15d120340415d495cca912ab4636513f76ada) Ticket: #8901 (cherry picked from commit 5c0388c2053552a3824b1987c99607008c5b400a)

Revision a4045946 (diff)
Added by hselasky over 5 years ago

MFC r246360: Fix some nits. (cherry picked from commit f0c15d120340415d495cca912ab4636513f76ada) Ticket: #8901 (cherry picked from commit 5c0388c2053552a3824b1987c99607008c5b400a)

Revision fd4fa656 (diff)
Added by hselasky over 5 years ago

MFC r250986: Fix some statical clang analyzer warnings. (cherry picked from commit bade4b429891464a7d846d93d829fd794e1dcb34) Ticket: #8901 (cherry picked from commit 42f39025e0636e7652fdc9f4151a38e7867c42a8)

Revision fd4fa656 (diff)
Added by hselasky over 5 years ago

MFC r250986: Fix some statical clang analyzer warnings. (cherry picked from commit bade4b429891464a7d846d93d829fd794e1dcb34) Ticket: #8901 (cherry picked from commit 42f39025e0636e7652fdc9f4151a38e7867c42a8)

Revision e4520cf5 (diff)
Added by hselasky over 5 years ago

MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 (cherry picked from commit 475f8fee0bee2b6467e9f729f7390948656b54b1) Ticket: #8901 (cherry picked from commit 81de5687ee067b7b1ada71c27ac5aa75a56a7076)

Revision e4520cf5 (diff)
Added by hselasky over 5 years ago

MFC r269575, r269576 and r269578: - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319 (cherry picked from commit 475f8fee0bee2b6467e9f729f7390948656b54b1) Ticket: #8901 (cherry picked from commit 81de5687ee067b7b1ada71c27ac5aa75a56a7076)

Revision 7744a1d6 (diff)
Added by hselasky over 5 years ago

MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 (cherry picked from commit e8cc935f1dd46dde09f90f5aa935da0d819d8846) Ticket: #8901 (cherry picked from commit 52d179dcb1c6bc33b2ad3a5dc47bda611012e8c9)

Revision 7744a1d6 (diff)
Added by hselasky over 5 years ago

MFC r277044: Increase the maximum number of dynamic USB quirks. USB memory stick devices which don't support the synchronize cache SCSI command are likely to also not support the prevent-allow medium removal SCSI command. PR: 185747 (cherry picked from commit e8cc935f1dd46dde09f90f5aa935da0d819d8846) Ticket: #8901 (cherry picked from commit 52d179dcb1c6bc33b2ad3a5dc47bda611012e8c9)

Revision 6050105f (diff)
Added by hselasky over 5 years ago

MFC r278105: Separate out detection of prevent and allow medium removal quirk. PR: 185747 (cherry picked from commit 0e4e52a00f708707164da1a610b4e246953b661b) Ticket: #8901 (cherry picked from commit f01adb15497687c79d247f11822e2585893b8673)

Revision 6050105f (diff)
Added by hselasky over 5 years ago

MFC r278105: Separate out detection of prevent and allow medium removal quirk. PR: 185747 (cherry picked from commit 0e4e52a00f708707164da1a610b4e246953b661b) Ticket: #8901 (cherry picked from commit f01adb15497687c79d247f11822e2585893b8673)

History

#1 Updated by Xin Li over 5 years ago

  • Status changed from Unscreened to Fix In Progress
  • Target version set to Unspecified

#2 Updated by Xin Li over 5 years ago

  • Status changed from Fix In Progress to Ready For Release

#3 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF