Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 17:37:48 +0200
From:      Richard Kaestner <richard.kaestner@ycn.com>
To:        freebsd-questions@freebsd.org
Subject:   USB Flash and USB-Quirks question
Message-ID:  <200308051737.48945.richard.kaestner@ycn.com>

next in thread | raw e-mail | index | archive | help
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



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