From owner-freebsd-stable Sat May 18 15:29: 9 2002 Delivered-To: freebsd-stable@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 93E3437B406 for ; Sat, 18 May 2002 15:29:05 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.9.1) with ESMTP id g4IMT5hU013553; Sat, 18 May 2002 15:29:05 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g4IMT3Qu013550; Sat, 18 May 2002 15:29:03 -0700 (PDT) Date: Sat, 18 May 2002 15:29:03 -0700 (PDT) From: Matthew Dillon Message-Id: <200205182229.g4IMT3Qu013550@apollo.backplane.com> To: freebsd-stable@freebsd.org Cc: "Lawrence.S.Lansing" , pir-sig@pir.net, mikea@mikea.ath.cx Subject: Re2: Problem with compact flash reader under -stable Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG (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: 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 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