From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 00:15:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B923437B401; Wed, 6 Aug 2003 00:15:48 -0700 (PDT) Received: from ns0.binep.ac.ru (serv2.binep.ac.ru [193.233.44.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF1F843F85; Wed, 6 Aug 2003 00:15:46 -0700 (PDT) (envelope-from goshik@binep.ac.ru) Received: from byfi (byfi.binep.ac.ru [193.233.44.234]) by ns0.binep.ac.ru (8.11.6/8.11.6) with SMTP id h767JUi11934; Wed, 6 Aug 2003 11:19:30 +0400 (MSD) (envelope-from goshik@binep.ac.ru) Message-ID: <01dd01c35bea$8d2fc9a0$ea2ce9c1@binep.ac.ru> From: "Igor B. Bykhalo" To: "FreeBSD Questions" References: <20030805143125.49DD45D07@ptavv.es.net> Date: Wed, 6 Aug 2003 11:15:40 +0400 Organization: BINEPCP RAS MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-stable@freebsd.org cc: Kevin Oberman Subject: Re: A-DATA flash drive: "Attempt to query device size failed" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2003 07:15:49 -0000 From: "Kevin Oberman" To: "Igor B. Bykhalo" Cc: "FreeBSD Questions" ; Sent: Tuesday, August 05, 2003 6:31 PM Subject: Re: A-DATA flash drive: "Attempt to query device size failed" > > From: "Igor B. Bykhalo" > > Date: Tue, 5 Aug 2003 14:18:50 +0400 > > Sender: owner-freebsd-stable@freebsd.org > > > > I purchased the 256 MB A-DATA flash drive (USB 2.0 SpeedDrive), > > but the system can't query its size. Here is corresponding parts > > of system messages (boot -v): > > > > Aug 5 12:53:57 goshik /kernel: uhub1: A-DATA Technology Inc. USB Embedded Hub, class 9/0, rev 2.00/0.01, addr 2 > > Aug 5 12:53:58 goshik /kernel: uhub1: 1 port with 0 removable, self powered > > Hmm. Looks like a hub as well as a storage device. I'm not too sure > what impact that might have. > Well, yes, it looks so... another braindead hardware? :-( > > goshik# camcontrol inquiry da0 > > pass0: Removable Direct Access SCSI-0 device > > pass0: Serial Number  > > pass0: 650KB/s transfers > > goshik# exit > > exit [...] > I don't think the quirk is right. I'd try: > > { > > /* > > * 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 > > } I tried this variant... no go. Damn... > > Also, you either need to append a comma to the close brace (if this is > inserted in the list of quirks) or append a comma to the prior entry > if you are placing this at the end of the quirks. (I suspect that you > did this, but it is not clear.) Yes, i added quirk to the end of list and and put a comma to the prior entry. Anyway, i double checked comiliation logs - no errors. > > I'm not too sure how many of the fixes in 5.0 have been MFC'ed to > STABLE. The 5.0 USB code has had a lot of work of late and most flash The last commit to scsi_da.c was a week ago by njl, and looking to it via cvsweb i don't see difference in quirks (well, by my untrained eyes). May be i should ask another list/developer? Was there similar devices, i.e. USB hub+storage in one piece? TIA, Igor [...] > -- > R. Kevin Oberman, Network Engineer > Energy Sciences Network (ESnet) > Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) > E-mail: oberman@es.net Phone: +1 510 486-8634 >