From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 08:37:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D1C537B401 for ; Tue, 5 Aug 2003 08:37:54 -0700 (PDT) Received: from vector01.richardkaestner.com (212-88-187-192.ADSL.ycn.com [212.88.187.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15F5E43F75 for ; Tue, 5 Aug 2003 08:37:53 -0700 (PDT) (envelope-from rfk@richardkaestner.com) Received: by vector01.richardkaestner.com (Postfix, from userid 1001) id B5080686E; Tue, 5 Aug 2003 17:37:49 +0200 (CEST) From: Richard Kaestner To: freebsd-questions@freebsd.org Date: Tue, 5 Aug 2003 17:37:48 +0200 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200308051737.48945.richard.kaestner@ycn.com> Subject: USB Flash and USB-Quirks question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 15:37:54 -0000 sorry for butting in ...=20 maybe someone could give me some tips: 1. what is a "quirk" (and how to apply it. Probably RTFM - but which one?): > { > /* > * A-DATA USB Flash 2.0 P1.0 SpeedDrive > */ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "A-DATA", "Flas*", "*"}, > /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE > } 2. I have a USB-CF adapter (el-cheapo) which is recognized in Linux=20 but not in FreeBSD (4.8, 5.0): Could one of the mentioned quirks help to get it working? (and yes: the CF-Card is working and recognized by BIOS+ATA adapter ;=3D) Linux (RedHat, Kernel 2.4.20-18.9): Aug 5 17:11:59 zwerg kernel: hub.c: new USB device 00:04.2-1, assigned address 5 Aug 5 17:12:03 zwerg /etc/hotplug/usb.agent: Setup usb-storage for USB product 7c4/a109/8001 Aug 5 17:12:04 zwerg kernel: SCSI error: host 1 id 0 lun 0 return code = =3D=20 8000002 Aug 5 17:12:04 zwerg kernel: ^ISense class 7, sense error 0, extended sen= se=20 0 Aug 5 17:12:04 zwerg kernel: SCSI device sda: 94465 512-byte hdwr sectors= =20 (48 MB) Aug 5 17:12:04 zwerg kernel: sda: Write Protect is off Aug 5 17:12:04 zwerg kernel: sda: I/O error: dev 08:00, sector 0 Aug 5 17:12:04 zwerg kernel: I/O error: dev 08:00, sector 0 Aug 5 17:12:04 zwerg kernel: unable to read partition table Aug 5 17:12:04 zwerg devlabel: devlabel service started/restarted [root@zwerg root]# cdrecord -scanbus Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J=F6rg Schilling Linux sg driver version: 3.1.24 Using libscg version 'schily-0.7' cdrecord: Warning: using inofficial libscg transport code version (schily = =2D=20 Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyri= ght 1997 J. Schilling'). scsibus1: 1,0,0 100) 'Datafab ' 'USB to CF + SM C' '8001' Removable Disk 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * [root@zwerg root]# =46reeBSD (4.8): root@ws02# uname -a FreeBSD ws02.rfk.priv 4.8-STABLE FreeBSD 4.8-STABLE #3: Mon Jul 28 12:55:3= 6=20 CEST 2003 root@david.rfk.priv:/usr/obj/usr/src/sys/WS02 i386 /var/log/messages (after plugging in): Aug 5 17:21:40 ws02 /kernel: ugen0: DataFab Systems Inc. USB CF+SM, rev=20 1.10/80.01, addr 7 (same on FreeBSD 5.0) My attempt to tweak /etc/usb.conf (no-go either): # rfk, August 2003: # DATAFAB SYSTEMS CF-Card Reader: device "DATAFAB CF-Reader" devname "umass[0-9]+" vendor 0x07C4 product 0xA109 attach "/usr/bin/camcontrol rescan all" # The fallthrough entry: Nothing is specified, nothing is done. And it is= n't # necessary at all :-). Just for pretty printing in debugging mode. # device "USB device" Thanks for Tips and / or Pointers Richard Kaestner