Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

opensuse 13.2 usb_modeswitch update problem 1.2.5 2.2.0

Post by thomasschaefer » 09 Nov 2014, 01:16

This week I upgraded my systems from Suse 13.1 to 13.2. So far so good.

But, none of my huawei-modems works anymore.

The switch from version 1.2.5 to 2.1.1 and your decision to make only one rule for all huawei-modems ends for me in a catastrophe.

From where should I start again?

Reconstructing the old rules?

Testing everything again? What would it change?

zte and alcatel devices switch, so I think usb_modeswitch works in general.

Can somebody confirm the problems, at least with the E398 (Telekom / Vodafone)?
Maybe I have I very bad day, for the case it is a nightmare, please wake me up.

Thomas Schäfer

PS:

Version 2.1.1 of the binary

and the hint in data

Works with usb_modeswitch versions >= 2.2.0 (introduction of HuaweiNewMode)

could be the problem,

I will clarify it, sorry for panic.
Last edited by thomasschaefer on 09 Nov 2014, 15:15, edited 1 time in total.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Josh, what have you done? - probably good work

Post by Josh » 09 Nov 2014, 09:21

Does the Huawei rule trigger? Do you get a log?

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: usb_modeswitch - probably data/bin mismatch in opensuse

Post by thomasschaefer » 09 Nov 2014, 12:09

Josh wrote:Does the Huawei rule trigger? Do you get a log?
It triggers now, at least for three modems.

I have to test the other again. This takes a while.
But please leave the message here - for opensuse 13.2 users, they should update the packages. Packages are already available, but not in update-repository.

http://download.opensuse.org/repositori ... SUSE_13.2/

I will present the results here:

4g-devices
Telekom Speedstick I (E398) works
Vodafone k5005 works
Telekom Speedstick III works
Huawei E3276 HL works
Vodafone K5150 works, switches to mbim, but segfaults usb_modeswitch
Vodafone W5101 works
Vodafone R215 works
Telekom/Huawei 5776 works
Huawei 5372 works

3g-devices
web nwalk IV, E176 works (ID stays)
Huawei 1820 works


segfault info:

[ 2591.474208] usb 1-2: new high-speed USB device number 15 using ehci-pci
[ 2591.707075] usb 1-2: New USB device found, idVendor=12d1, idProduct=1f16
[ 2591.707095] usb 1-2: New USB device strings: Mfr=5, Product=4, SerialNumber=7
[ 2591.707108] usb 1-2: Product: K5150
[ 2591.707117] usb 1-2: Manufacturer: Vodafone (Huawei)
[ 2591.707126] usb 1-2: SerialNumber: FFFFFFFFFFFFFFFF
[ 2591.756352] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 2591.756875] scsi23 : usb-storage 1-2:1.0
[ 2592.482462] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb_modeswitch' sets config #2
[ 2592.660101] cdc_mbim 1-2:2.0: setting rx_max = 16384
[ 2592.673684] cdc_mbim 1-2:2.0: setting tx_max = 16384
[ 2592.675397] cdc_mbim 1-2:2.0: cdc-wdm0: USB WDM device
[ 2592.678404] cdc_mbim 1-2:2.0 wwan0: register 'cdc_mbim' at usb-0000:00:1d.7-2, CDC MBIM, 4e:11:21:d3:1a:ae
[ 2592.680766] usb-storage 1-2:2.2: USB Mass Storage device detected
[ 2592.689099] scsi24 : usb-storage 1-2:2.2
[ 2592.695224] usb_modeswitch[3965]: segfault at 100000002 ip 00007fe091cc05b4 sp 00007fffb928a128 error 4 in libc-2.19.so[7fe091c44000+19e000]
[ 2593.704742] scsi 24:0:0:0: Direct-Access Vodafone Storage(Huawei) 2.31 PQ: 0 ANSI: 2
[ 2593.706334] sd 24:0:0:0: Attached scsi generic sg1 type 0
[ 2593.764452] sd 24:0:0:0: [sdb] Attached SCSI removable disk



hpmini:~ # usb_modeswitch --version

* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.0 (C) Josua Dietze 2014
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

hpmini:~ #



log

USB_ModeSwitch log from Sun Nov 09 12:16:55 CET 2014

Use global config file: /etc/usb_modeswitch.conf
Raw args from udev: /1-2:1.0

Use top device dir /sys/bus/usb/devices/1-2

----------------
USB values from sysfs:
manufacturer Vodafone (Huawei)
product K5150
serial FFFFFFFFFFFFFFFF
----------------
ConfigList: /usr/share/usb_modeswitch/12d1:1f16 /usr/share/usb_modeswitch/12d1:#linux
SCSI attributes not needed, move on
Check config: /usr/share/usb_modeswitch/12d1:1f16
! matched. Read config data
config: TargetVendor set to 12d1
config: TargetProductList set to 14f8,1575
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Device may have an MBIM configuration, check driver ...
driver for MBIM devices is available
Find MBIM configuration number ...
Command to be run:
usb_modeswitch -W -D -s 20 -b 1 -g 16 -v 12d1 -p 1f16 -f $configBuffer

Post Reply