Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2018 17:28:54 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        freebsd-usb@freebsd.org
Subject:   Re: USB problems on PC Engines APU2C4
Message-ID:  <8125973A-0F6E-4D52-882F-9FC1DA9F7A0F@lassitu.de>
In-Reply-To: <CF83933C-DECF-4B93-A4F3-3B4C5271F6BB@lassitu.de>
References:  <CF83933C-DECF-4B93-A4F3-3B4C5271F6BB@lassitu.de>

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


> Am 12.07.2018 um 09:27 schrieb Stefan Bethke <stb@lassitu.de>:
>=20
> The other device I=E2=80=99m having trouble with is a Huawei E3272 LTE =
stick. In it=E2=80=99s default mode, it shows up as a umass device; =
using usb_modeswitch, it can be configured as a serial modem or an CDC =
ethernet device.
> [root@apu2 ~]# lsusb
> Bus /dev/usb Device /dev/ugen0.2: ID 12d1:1f01 Huawei Technologies =
Co., Ltd. E353/E3131 (Mass storage mode)
> Bus /dev/usb Device /dev/ugen1.2: ID 0438:7900 Advanced Micro Devices, =
Inc.=20
> Bus /dev/usb Device /dev/ugen0.1: ID 0000:0000 =20
> Bus /dev/usb Device /dev/ugen1.1: ID 0000:0000 =20
>=20
Going through a bus-powered USB2 hub does not improve the situation:

ugen0.2: <vendor 0x05e3 USB2.0 Hub> at usbus0
uhub3 on uhub1
uhub3: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/9.01, addr 1> on =
usbus0
uhub3: 4 ports with 4 removable, self powered
ugen0.3: <HUAWEI Technology HUAWEI Mobile> at usbus0
umass0 on uhub3
umass0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr =
2> on u
umass0:  SCSI over Bulk-Only; quirks =3D 0x0100
umass0:2:0: Attached to scbus2

(about 10 seconds delay here)

(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an =
error
(probe0:umass-sim0:0:0:0): Retrying command
cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
cd0: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-2 device
cd0: 40.000MB/s transfers
cd0: 128MB (65536 2048 byte sectors)
cd0: quirks=3D0x10<10_BYTE_ONLY>
(cd0:umass-sim0:0:0:0): READ(10). CDB: 28 00 00 00 ff ff 00 00 01 00=20
(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered =
read erro
(cd0:umass-sim0:0:0:0): Info: 0xffff
(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back
=E2=80=A6
(cd0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(cd0:umass-sim0:0:0:0): SCSI status: Check Condition
(cd0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered =
read erro
(cd0:umass-sim0:0:0:0): Info: 0xffff
(cd0:umass-sim0:0:0:0): Error 5, Unretryable error
(cd0:umass-sim0:0:0:0): cddone: got error 0x5 back

/usr/local/sbin/usb_modeswitch -v 12d1 -p 1f01 -V 12d1 -P 1001 -M =
55534243000000000000000000000011060000000000000000000000000000

umass0: at uhub3, port 4, addr 2 (disconnected)
cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
cd0: <HUAWEI Mass Storage 2.31> detached
(cd0:umass-sim0:0:0:0): Periph destroyed
umass0: detached

usb_modeswitch continues to be not happy:
Look for target devices ...
 No devices in target mode or class found
Look for default devices ...
 Found devices in default mode (1)
Access device 002 on bus 000
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x01 (out) and 0x81 (in)
Looking for active drivers ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 Sending the message returned error -7. Try to continue
Read the response to message 1 (CSW) ...
 Response reading failed (error -7)
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!


Stefan

--=20
Stefan Bethke <stb@lassitu.de>   Fon +49 151 14070811





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8125973A-0F6E-4D52-882F-9FC1DA9F7A0F>