Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2002 15:29:03 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        freebsd-stable@freebsd.org
Cc:        "Lawrence.S.Lansing" <lansil@rpi.edu>, pir-sig@pir.net, mikea@mikea.ath.cx
Subject:   Re2: Problem with compact flash reader under -stable
Message-ID:  <200205182229.g4IMT3Qu013550@apollo.backplane.com>

next in thread | raw e-mail | index | archive | help
    	(oops, reposting, I totally screwed up the CC line.  Sorry for
	the dup!).

    I just recently purchased a SimpleTech UCF-100 flashlink... a USB
    compact flash reader.  It didn't work right off the bat so I did a 
    Google search and found a thread from December begun by 
    Lawrence.  

    In that thread it would appear that someone tried to use a quirk entry
    and failed.  For that reason I did not try a quirk entry right off the
    bat but played with CAM debugging to try to diagnose the problem.  The
    unit seemed to read mode pages just fine and I couldn't imagine why
    a read operation would fail so I decided to construct a Quirk entry
    along the lines described in the December thread and along the lines
    of other entries in the quirk table for this class of reader.

    Well, it worked!  On my little HP desktop adding the quirk entry
    allowed me to 'dd' from the dummy scsi device and also allowed me to
    'mount -t msdos /dev/da8s1 /mnt', access, and manipulate the flash files.

    I'm not sure why Mike Andrews experiment back in December failed.
    There could be other issues at work with his hardware, or changes/fixes
    made to the USB subsystem since then.  This is just a head's up to
    interested parties that I was able to get this thing to work.  This
    is the dmesg output from my unit:

	umass0: DataFab Systems Inc. USB CF , rev 1.10/3.08, addr 2
	da8 at umass-sim0 bus 0 target 0 lun 0
	da8: <OEI-USB CompactFlash 3.08> Removable Direct Access SCSI-0 device 
	da8: 650KB/s transfers
	da8: 245MB (501760 512 byte sectors: 64H 32S/T 245C)

    I've submitted the quirk entry to the release engineers to try to get
    it into the 4.6 release.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

Index: scsi_da.c
===================================================================
RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
retrieving revision 1.42.2.23
diff -u -r1.42.2.23 scsi_da.c
--- scsi_da.c	8 Apr 2002 08:44:16 -0000	1.42.2.23
+++ scsi_da.c	18 May 2002 20:44:43 -0000
@@ -340,6 +340,13 @@
 	},
 	{
 		/*
+		 * SimpleTech FlashLink UCF-100
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "OEI-USB", "CompactFlash", "*"},
+		/*quirks*/ DA_Q_NO_6_BYTE
+	},
+	{
+		/*
 		 * Minolta Dimage 2330
 		 */
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "MINOLTA", "DIMAGE 2330*", "*"},


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205182229.g4IMT3Qu013550>