From owner-freebsd-stable@FreeBSD.ORG Sun Sep 27 14:47:37 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF2BF106568B for ; Sun, 27 Sep 2009 14:47:37 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 8557F8FC24 for ; Sun, 27 Sep 2009 14:47:37 +0000 (UTC) Received: from [192.168.1.4] (adsl-241-169-177.bna.bellsouth.net [74.241.169.177]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n8RElWX4047350 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 27 Sep 2009 10:47:35 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "Daniel O'Connor" In-Reply-To: <200909280009.28658.doconnor@gsoft.com.au> References: <200909280009.28658.doconnor@gsoft.com.au> Content-Type: text/plain Organization: FreeBSD Date: Sun, 27 Sep 2009 09:47:22 -0500 Message-Id: <1254062842.2048.1467.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-stable@freebsd.org Subject: Re: Excessivly cheap USB device issue X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2009 14:47:37 -0000 On Mon, 2009-09-28 at 00:09 +0930, Daniel O'Connor wrote: > I have a very cheap USB CF/SD/SM/MS connected to an 8.0-RC1 system and > it is detected, ie.. > Sep 27 14:29:18 midget kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Sep 27 14:29:18 midget kernel: da0: Removable Direct Access SCSI-0 device > Sep 27 14:29:18 midget kernel: da0: 40.000MB/s transfers > Sep 27 14:29:18 midget kernel: da0: Attempt to query device size failed: NOT READY, Medium not present > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): CAM Status: SCSI Status Error > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): SCSI Status: Check Condition > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): Medium not present > Sep 27 14:29:18 midget kernel: (probe7:umass-sim0:0:0:1): Unretryable error > Sep 27 14:29:18 midget kernel: da1 at umass-sim0 bus 0 target 0 lun 1 > Sep 27 14:29:18 midget kernel: da1: Removable Direct Access SCSI-0 device > Sep 27 14:29:18 midget kernel: da1: 40.000MB/s transfers > Sep 27 14:29:18 midget kernel: da1: Attempt to query device size failed: NOT READY, Medium not present > > If I connect a CF card to da1 and run 'fdisk da1' I get.. > [midget 0:06] ~ >fdisk da1 > load: 0.29 cmd: fdisk 69630 [cgticb] 1.50r 0.00u 0.00s 0% 1160k > load: 0.19 cmd: fdisk 69630 [cbwait] 24.42r 0.00u 0.00s 0% 1160k > load: 0.19 cmd: fdisk 69630 [cbwait] 27.01r 0.00u 0.00s 0% 1160k > fdisk: unable to get correct path for da1: Input/output error > > [midget 0:05] ~ >sudo usbconfig -u 5 -a 2 dump_device_desc > ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x058f > idProduct = 0x6362 > bcdDevice = 0x0129 > load: 0.21 cmd: usbconfig 69643 [WCTRL] 1.73r 0.00u 0.00s 0% 1080k > iManufacturer = 0x0001 > load: 0.19 cmd: usbconfig 69643 [WCTRL] 8.56r 0.00u 0.00s 0% 1104k > iProduct = 0x0002 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > Perhaps some quirk would help but I'm not sure which one :) I also have a similar device, which I've been messing with a bit the last couple of days. In your case, it isn't seeing the media, just the "drive". I've had to try various combinations of unplugging the adapter from usb, inserting the media then plugging it back in. It does seem to work fairly reliably if you boot with the media already inserted, but it doesn't seem to detect media change at all. robert. -- Robert Noland FreeBSD