Re: USB2 - umass problem

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Wed, 4 Feb 2009 10:44:26 +0100
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: <SMSC> at usbus4
> umass0: <SMSC 2228, class 0/0, rev 2.00/3.95, addr 4> 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: <SMSC 2228  HS-COMBO 3.95> 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: <SMSC 2228  HS-CF 3.95> 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: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=ON ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST
> spd=FULL (12Mbps) pwr=ON ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0
> md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: <EHCI root HUB Intel> at usbus4,
> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: <product 0x4486 IBM> at
> usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.3: <Microsoft
> 5-Button Mouse with IntelliEye(TM) Microsoft> at usbus4, cfg=0 md=HOST
> spd=LOW (1.5Mbps) pwr=ON ugen3.2: <BCM2045B Broadcom Corp> at usbus3, cfg=0
> md=HOST spd=FULL (12Mbps) pwr=ON ugen3.3: <Biometric Coprocessor
> 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: <OHCI root HUB NEC> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON ugen6.1: <OHCI root HUB NEC> at usbus6, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=ON ugen5.2: <Huawei Mobile Huawei Technologies> 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_at_vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK  i386

--HPS
Received on Wed Feb 04 2009 - 08:42:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:41 UTC