Date: Sat, 13 Apr 2002 22:30:41 -0700 (PDT) From: Sander van Zoest <sander-freebsd-pr@vanzoest.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/37052: Quirk: ADS Tech Drive Kit 2.0 USB DA_Q_NO_6_BYTE Message-ID: <200204140530.g3E5Uf190301@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 37052 >Category: kern >Synopsis: Quirk: ADS Tech Drive Kit 2.0 USB DA_Q_NO_6_BYTE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 13 22:40:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sander van Zoest >Release: 4.5-STABLE (Dated April 12th, 2002) >Organization: >Environment: FreeBSD rietveld.vanzoest.com 4.5-STABLE-20020412 FreeBSD 4.5-STABLE-20020412 #2: Sat Apr 13 15:51:24 PDT 2002 sander@rietveld.vanzoest.com:/work/bsd/src/sys/compile/RIETVELD i386 >Description: I recently bought the ADS Technologies USB Drive Kit 2.0, <http://www.adstech.com/products/USB_2_Drivekit/specifications/USB2DriveKit_prodspec.asp?pid=USBX-804> which identifies itself as umass0: DMI USB 2.0 Storage Adaptor, rev 2.00/10.10, addr 2 This kit allows you to take any ATA/IDE device and turn them into USB 2.0 devices. I plugged in a Maxtor DiamondMax Plus 60GB drive. After plugging in the drive kit dmesg states the following: %dmesg <snip> umass0: DMI USB 2.0 Storage Adaptor, rev 2.00/10.10, addr 2 umass0:0:0:-1: Attached to scbus0 as device 0 pass0 at umass-sim0 bus 0 target 0 lun 0 pass0: <MAXTOR 6 L060J3 A93.> Fixed Direct Access SCSI-0 device pass0: Serial Number \^_ pass0: 650KB/s transfers da0 at umass-sim0 bus 0 target 0 lun 0 da0: <MAXTOR 6 L060J3 A93.> Fixed Direct Access SCSI-0 device da0: Serial Number \^_ da0: 650KB/s transfers da0: 57259MB (117266688 512 byte sectors: 64H 32S/T 57259C) % usbdevs -v <snip> Controller /dev/usb1: addr 1: self powered, config 1, OHCI root hub(0x0000), NEC(0x0000), rev 0x0100 port 1 addr 2: self powered, config 2, USB 2.0 Storage Adaptor(0xb001), DMI(0 x0c0b), rev 0x1010 port 2 powered % camcontrol devlist -v scbus0 on umass-sim0 bus 0: <MAXTOR 6 L060J3 A93.> at scbus0 target 0 lun 0 (pass0,da0) scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) >How-To-Repeat: After plugging in the drive kit and booting the machine, try to mount the drive. You will receive the following error. % mount_msdos /dev/da0s1 /mnt da0s1: type 0xc, start 63, end = 117242369, size 117242307 : OK(da0:umass-sim0:0:0:0): READ(06). CDB: 8 0 0 3f 4 0 (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:21,0 (da0:umass-sim0:0:0:0): Logical block address out of range >Fix: Since this Drive Kit allows any IDE device to become a USB device, it is not possible to key off of the Umass device info since this would be the IDE device and not the Drive Kit. To get the system to work as a temporary fix I matched my Maxtor drive and added the quirk as follows: --- scsi_da.c.orig Sat Apr 13 15:21:18 2002 +++ scsi_da.c Sat Apr 13 15:22:46 2002 @@ -269,6 +269,13 @@ {T_DIRECT, SIP_MEDIA_FIXED, "Maxtor*", "D080H4*", "*"}, /*quirks*/ DA_Q_NO_6_BYTE }, + { + /* + * ADS Tech Drive Kit 2.0 with Maxtor Drive + * XXX: This Kit allows any drive! + */ + {T_DIRECT, SIP_MEDIA_FIXED, "Maxtor*", "L060J3*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE + }, { {T_OPTICAL, SIP_MEDIA_REMOVABLE, "FUJITSU", "MCF3064AP", "*"}, /*quirks*/ DA_Q_NO_6_BYTE --- This patch allows me to mount the drive, although I do get the following message error message. da0s1: type 0xc, start 63, end = 117242369, size 117242307 : OK (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) failed, minimum_cmd_size is increased to 10. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204140530.g3E5Uf190301>