From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 09:42:08 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 EECED106564A; Wed, 4 Feb 2009 09:42:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 318208FC1A; Wed, 4 Feb 2009 09:42:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=6vKQvfzm4CT-oQKQhbsA:9 a=vSCs3hrj37iq592yjgcA:7 a=SdSZzkw8vcR7DPN-Xpxw1ZmdxiwA:4 a=50e4U0PicR4A:10 Received: from [85.19.218.115] (account mc467741@c2i.net HELO [10.37.1.92]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1190336426; Wed, 04 Feb 2009 10:42:06 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org, vova@fbsd.ru Date: Wed, 4 Feb 2009 10:44:26 +0100 User-Agent: KMail/1.9.7 References: <1233734352.1767.55.camel@localhost> In-Reply-To: <1233734352.1767.55.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902041044.27663.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: USB2 - umass problem 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: Wed, 04 Feb 2009 09:42:09 -0000 Hi, On Wednesday 04 February 2009, Vladimir Grebenschikov wrote: > Hi > > > By some reason devfs semantic was changed: > Instead of /dev/cuaU0.[0-2] and /dev/ttyU0.[0-2], I've get > /dev/cuaU[0-2] /dev/ttyU[0-2] and! /dev/cuau1 /dev/ttyu1 > What is reason for such change (additional port with lowercase 'u' and > U[0-2] instead of more logical U0.[0-2]) ? It is because we are attaching drivers per interface instead of per device. A new modem unit is allocated every time we find a modem, simply put. If the modem has multiple instances in an interface, /dev/cuaU0.[0...] will be created. Else /dev/cuaU... . > > Excellent news is that I've successfully removed PCMCI card with u3g USB > controller from notebook and have no panic as it was with old USB > stack. Great! > > By some reason connection was failed but chat with modem was ok. Will > try again. > > Simple umass device (WD external disk) works fine, but > integrated to doc-station card-reader failed: > > First time card insertion, two umass devices appeared, both just do not > work: > > ugen4.4: at usbus4 > umass0: on usbus4 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:5:0:-1: Attached to scbus5 > (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): NOT READY asc:3a,0 > (probe0:umass-sim0:0:0:0): Medium not present > (probe0:umass-sim0:0:0:0): Unretryable error > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present Have you tried "cat /dev/null > /dev/da0", to refresh the label on the disk? NOTE: /dev/null is not /dev/zero > da1 at umass-sim0 bus 0 target 0 lun 1 > da1: Removable Direct Access SCSI-0 device > da1: 40.000MB/s transfers > da1: Attempt to query device size failed: NOT READY, Medium not present Same with "da1" > > Second time - a bit better, second device read correct card label, but > still failed on mount: Maybe your device needs a quirk, because it hangs on one of the issues SCSI commands. Have you looked at: http://wiki.freebsd.org/USB > > # usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, > cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: at > usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.3: 5-Button Mouse with IntelliEye(TM) Microsoft> at usbus4, cfg=0 md=HOST > spd=LOW (1.5Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON ugen3.3: STMicroelectronics> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen4.4: <2228 SMSC> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON # > > With u3gcard: > ... > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen5.2: at usbus5, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > > Any hints regarding issues above ? > > Side question, is there any way to ask usbconfig driver that attached to > every device (as it was with usbdevs -d) ? No, but you can try the following command which gives a nice overview: devinfo > > # uname -a > FreeBSD vbook.fbsd.ru 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Mon Feb 2 > 16:46:22 MSK 2009 root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK i386 --HPS