Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2009 10:59:12 +0300
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        current <current@freebsd.org>
Cc:        usb@freebsd.org
Subject:   USB2 - umass problem
Message-ID:  <1233734352.1767.55.camel@localhost>

next in thread | raw e-mail | index | archive | help
 Hi

USB2 team, thank you for really big effort on improving FreeBSD usb
stack.

I've tried it and found that ums, ubt, ukbd just work.

u3g card was detected
ohci0: <NEC uPD 9210 USB controller> mem 0x88000000-0x88000fff irq 16 at
device 0.0 on cardbus0
ohci0: [ITHREAD]
usbus5: <NEC uPD 9210 USB controller> on ohci0
usbus5: 12Mbps Full Speed USB v1.0
ohci1: <NEC uPD 9210 USB controller> mem 0x88001000-0x88001fff irq 16 at
device 0.1 on cardbus0
ohci1: [ITHREAD]
ugen5.1: <NEC> at usbus5
ushub6: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
usbus6: <NEC uPD 9210 USB controller> on ohci1
usbus6: 12Mbps Full Speed USB v1.0
ugen6.1: <NEC> at usbus6
ushub7: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
ushub6: 1 port with 1 removable, self powered
ushub7: 1 port with 1 removable, self powered
ugen5.2: <Huawei Technologies> at usbus5
u3g0: <Data Interface> on usbus5
u3g1: <Data Interface> on usbus5
u3g2: <Data Interface> on usbus5

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]) ?

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. 

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
(probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 
(probe0:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:1): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:1): NOT READY asc:3a,0
(probe0:umass-sim0:0:0:1): Medium not present
(probe0:umass-sim0:0:0:1): Unretryable error
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

Second time - a bit better, second device read correct card label, but
still failed on mount:

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): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have
changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
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: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)
(probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 
(probe0:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:1): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:1): NOT READY asc:3a,0
(probe0:umass-sim0:0:0:1): Medium not present
(probe0:umass-sim0:0:0:1): Unretryable error
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
GEOM_LABEL: Label for provider da0s1 is label/e60mmc.

# /sbin/mount -t msdosfs /dev/da0s1 /mnt
mount_msdosfs: /dev/da0s1: Input/output error
#

and dmesg has lots of:
(da0:umass-sim0:0:0:0): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 8 80 0 0 10 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): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 8 80 0 0 10 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): MEDIUM ERROR asc:11,0
(da0:umass-sim0:0:0:0): Unrecovered read error
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 8 80 0 0 10 0 
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition


# 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) ?

# 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

-- 
Vladimir B. Grebenschikov
vova@fbsd.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1233734352.1767.55.camel>