Bug 29530

Summary: KingByte USB Pen Drive doesn't work with FreeBSD
Product: Base System Reporter: gene <gene>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description gene 2001-08-08 05:20:00 UTC
Any program that tries to read/write data from/to KingByte Pen Drives will hang in a non-killable state.  This is because Pen Drives, like some other flash-based drives, don't support 6-byte SCSI READ commands.

Fix: 

Add the following quirk entry to src/sys/cam/scsi/scsi_da.c:

	{
		/*
		 * KingByte Pen Drives
		 * do not support READ_6 commands, only READ_10. 
		 */
		{T_DIRECT, SIP_MEDIA_REMOVABLE, "NO BRAND", "PEN DRIVE", "*"},
		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
	},
How-To-Repeat: Access the Pen Drive using programs like dd(1) as in: dd if=/dev/da0 of=/dev/null count=1
Comment 1 Nick Hibma freebsd_committer freebsd_triage 2001-09-02 10:27:16 UTC
State Changed
From-To: open->closed

Committed. Thanks!