From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 03:49:45 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B25116A4CE for ; Tue, 11 Jan 2005 03:49:45 +0000 (GMT) Received: from cenn.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03C6F43D5C for ; Tue, 11 Jan 2005 03:49:45 +0000 (GMT) (envelope-from danolson@visi.com) Received: from [192.168.240.220] (danolson.dsl.visi.com [209.98.225.50]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id 2E6E381B9; Mon, 10 Jan 2005 21:49:44 -0600 (CST) Message-ID: <41E34CCE.7080808@visi.com> Date: Mon, 10 Jan 2005 21:49:34 -0600 From: Dan Olson User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Wilkinson, Alex" References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> In-Reply-To: <20050111013925.GD32601@squash.dsto.defence.gov.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 03:49:45 -0000 Wilkinson, Alex wrote: > 0n Tue, Jan 11, 2005 at 10:39:56AM +1030, Wilkinson, Alex wrote: > > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > > >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > > >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have > > >> changed > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > Okay, I'm trying to make sense of the aforementioned debug output. > > 1. (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > I'm suspecting that this means that the READ CAPACITY command > failed, therefore we are unable to determine the device's > physical parameters. > > 2. (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > Looks like we are waiting to for the device to become ready to be > accessed. > > 3. (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > > This 'Additional Sense Code' seems to be where it fails. Looking at > the RBC specs we should see an ASC/ASCQ of 'NEW MEDIA READY FOR > ACCESS'. However, we don't. > > This is as far as I can go without having my hand held. I would dearly > like to get this UMASS device working. > > Can any USB wizards please suggest quirks etc that could result in a > solution. > > Thanks > > - Alex I too am having this problem but with a Kingston DataTraveler Elite 1GB usb drive. In the dmesg of 6.0 CURRENT from Dec 22 I get: FreeBSD 6.0-CURRENT #0: Wed Dec 22 17:10:48 CST 2004 umass0: Kingston DT Elite HS 2.0, rev 2.00/2.00, addr 4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retries Exhausted Which is a little different from the OP. But in a stock NetBSD 2.0 it works as shown below. NetBSD 2.0 (GENERIC) #0: Wed Dec 1 10:58:25 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj... /big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC umass0 at uhub3 port 5 configuration 1 interface 0 umass0: Kingston DT Elite HS 2.0, rev 2.00/2.00, addr 4 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, 1 lun per target sd0 at scsibus0 target 0 lun 0: disk removable sd0: 1002 MB, 844 cyl, 128 head, 19 sec, 512 bytes/sect x 2052607 sectors umass0: at uhub3 port 5 (addr 4) disconnected sd0 detached scsibus0 detached umass0 detached If it is any help, it may work in NetBSD 2.0 which might provide a basis of code to be ported over to FreeBSD. To get mine to work, I will have to wait for the port over as I am a newbie. Thanks Dan Olson