USB Flash and USB-Quirks question
Richard Kaestner
richard.kaestner at ycn.com
Tue Aug 5 08:37:54 PDT 2003
sorry for butting in ...
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
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 ;=)
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 =
8000002
Aug 5 17:12:04 zwerg kernel: ^ISense class 7, sense error 0, extended sense
0
Aug 5 17:12:04 zwerg kernel: SCSI device sda: 94465 512-byte hdwr sectors
(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 at zwerg root]# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily -
Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright
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 at zwerg root]#
FreeBSD (4.8):
root at ws02# uname -a
FreeBSD ws02.rfk.priv 4.8-STABLE FreeBSD 4.8-STABLE #3: Mon Jul 28 12:55:36
CEST 2003 root at 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
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 isn't
# necessary at all :-). Just for pretty printing in debugging mode.
#
device "USB device"
Thanks for Tips and / or Pointers
Richard Kaestner
More information about the freebsd-questions
mailing list