From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 01:47:30 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2B0B1065670 for ; Sun, 1 Mar 2009 01:47:30 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3628FC0A for ; Sun, 1 Mar 2009 01:47:30 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) (Authenticated sender: imb) by sarah.protected-networks.net (Postfix) with ESMTPSA id E1AF56111; Sat, 28 Feb 2009 20:47:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1235872048; bh=ZtFmKLKOfd42mWjD7xc/5daTV1SCB9qxcNUZBvwOufU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=CWETajpSFf2ECt/GlQ0qdVpgci0lvExtEtU/CoQWOk1ACHvsaQKdUhOOJxFMS57nz KcAjHtd0UTdBXq664CgzMVZxXjW3S7kExIH70n9QVB+D1ITdH0gFBrSqslj/ABH DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=MmwNMNa4d/zI8C9WyzqFK8cTWxO7rirCpJkYHErNnczA5Zh/5BFjJaHDFg/y5CVIy hVYyOgXrjtOYPLhaIcpcXQaLMq6i8MGr+ERtoPlUF6kjPbGcOgXxx+/pcnsYMSI Message-ID: <49A9E92B.6080602@protected-networks.net> Date: Sat, 28 Feb 2009 20:47:23 -0500 From: Michael Butler User-Agent: Thunderbird 2.0.0.19 (X11/20090217) MIME-Version: 1.0 To: Hans Petter Selasky References: <20090228001701.f18fcd6b.ota@j.email.ne.jp> <200902281006.52328.hselasky@c2i.net> In-Reply-To: <200902281006.52328.hselasky@c2i.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=0442D492 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Cc: Yoshihiro Ota , freebsd-current@freebsd.org Subject: Re: MITSUMI USB FDD with USB4BSD does not work, neither X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 01:47:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Petter Selasky wrote: > On Saturday 28 February 2009, Yoshihiro Ota wrote: >> I have a MITSUMI USB fdd and pluged in to 8-CURRENT. >> FreeBSD 8.0-CURRENT #5 r189058M: Thu Feb 26 11:29:13 EST 2009 >> >> It printed as following but nothing happened there after. >> >> ugen0.3: at usbus0 >> umass0: on >> usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0100 > ^^^ your device is listed with quirks. > Maybe the quirks are incorrect. Please check the quirk table in > /sys/dev/usb/storage/umass.c This is a similar symptom to that which I observed .. the "standard" USB2 code and quirks do this with my external USB drive: ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 xptioctl: pass driver is not in the kernel xptioctl: put "device pass" in your kernel config file umass0: at ushub4, port 3, addr 2 (disconnected) If I add a quirk entry in umass.c, I get this (once): ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 95396MB (195371568 512 byte sectors: 255H 63S/T 12161C) .. but I am still unable to see da0s1 on the device. However, if I detach the device and reattach, it fails as in the first example. This leads me to believe that, while it saw and created "da0", it got hung up somewhere before being able to present the slice :-( As another data-point, a Nikon camera attaches and just works, once I added a quirk to stop the cache-synchronization and test-unit ready issues in response to: ugen1.2: at usbus1 umass0: on usbus1 umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 982MB (2012160 512 byte sectors: 64H 32S/T 982C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary. (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 last message repeated 2 times GEOM_LABEL: Label for provider da0s1 is msdosfs/NO_NAME. (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 toshi last message repeated 3 times umass0: at ushub1, port 1, addr 2 (disconnected) (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmp6SsACgkQQv9rrgRC1JKB4ACgjs4pomPKpjpGHTU1+rh86ZRK JecAn1eYWMyfR2Z68PN5rEbdXTLdRNDg =dDbk -----END PGP SIGNATURE-----