From owner-freebsd-usb@FreeBSD.ORG Sat Jul 14 11:28:21 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2BD316A403 for ; Sat, 14 Jul 2007 11:28:21 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 3D33813C461 for ; Sat, 14 Jul 2007 11:28:21 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so800055uge for ; Sat, 14 Jul 2007 04:28:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=TT+wKQ7iB/UUN0RN5c2Nu+hKS/noejygchs8FIin0dcKIqOYR/NoPcARdpGt4U4ecuL1p3plZRf6s3OPtGKjSh96UnZGJP/70sCVJcH21uqpYhio8Q1aQRXKVkefUhycLQojsu3qrttizZ0MZL1S0H/8zovicsGkFKP9kaHeOH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=oC54A/U9OeAaO0RyiiFB+bOGw8EdFYMe7E2k5qDys7vZGmEvyIHTgfV2J3jUhmtdqKL1CDjhR13vyiGlapdOnk0cNRQLQVMZG6TxiydbaMMuSCQMV8SPcLwGidfb7c/QuJ/DMtS8tn1T+8cP6eT9Flw9jZktAPD/IY9uS4TBVD0= Received: by 10.86.93.17 with SMTP id q17mr2037667fgb.1184412500009; Sat, 14 Jul 2007 04:28:20 -0700 (PDT) Received: from roadrunner.q.local ( [85.180.166.85]) by mx.google.com with ESMTP id i5sm66591530mue.2007.07.14.04.28.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 Jul 2007 04:28:18 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.14.1/8.14.1) with ESMTP id l6EBSDmO004723; Sat, 14 Jul 2007 13:28:13 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.14.1/8.14.1/Submit) id l6EBSDmU004722; Sat, 14 Jul 2007 13:28:13 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sat, 14 Jul 2007 13:28:12 +0200 From: Ulrich Spoerlein To: "M. Warner Losh" , usb@FreeBSD.org, sos@FreeBSD.org Message-ID: <20070714112812.GC1542@roadrunner.q.local> Mail-Followup-To: "M. Warner Losh" , usb@FreeBSD.org, sos@FreeBSD.org References: <20070705184309.GD2749@roadrunner.q.local> <20070705.211431.-233673940.imp@bsdimp.com> <20070706164202.GA1426@roadrunner.q.local> <20070706.164455.-1962671190.imp@bsdimp.com> <20070714092838.GB1542@roadrunner.q.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070714092838.GB1542@roadrunner.q.local> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Re: umass/cam headaches X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2007 11:28:21 -0000 I further played with lots of USB quirks and found something bizarr. When adding the NO_INQUIRY quirk to this device, da(4) will attach instead of cd(4), and believe it or not, geom_label and diskinfo(1) suddenly start working: kernel: umass0 on uhub3 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0400 kernel: umass0:1:0:-1: Attached to scbus1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: < > Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 4482MB (2294912 2048 byte sectors: 255H 63S/T 142C) kernel: GEOM_LABEL: Label for provider da0 is iso9660/DVD_VIDEO. root@roadrunner: /data# diskinfo -v /dev/da0 /dev/da0 2048 # sectorsize 4699979776 # mediasize in bytes (4.4G) 2294912 # mediasize in sectors 142 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. I can even switch media and it's still working: root@roadrunner: /data# diskinfo -v /dev/da0 /dev/da0 2048 # sectorsize 7403274240 # mediasize in bytes (6.9G) 3614880 # mediasize in sectors 225 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. Heck, even reading from the media works. Why won't cd(4) just work? Cheers, Ulrich Spoerlein -- "The trouble with the dictionary is you have to know how the word is spelled before you can look it up to see how it is spelled." -- Will Cuppy