Thanks for this useful software!
As per topic, when I use usb_modeswitch (2.3.0-1) on my Pi with arch linux, I get frequent kernel oops. This does not happen on my PC (also arch).
When I downgrade to version 2.2.6-1 on the Pi, I get no oops.
Your assistance with this issue will be appreciated.
Here are some log files. Hopefully this will also assist.
USB_ModeSwitch log from Fri Mar 11 14:38:45 SAST 2016
Use global config file: /etc/usb_modeswitch.conf
Raw args from udev: /1-1.2
Use top device dir /sys/bus/usb/devices/1-1.2
Check class of first interface ...
Interface 0 class is 08.
----------------
USB values from sysfs:
manufacturer USBModem
product Mobile Broad Band
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
ConfigList: /usr/share/usb_modeswitch/1bbb:f000
SCSI attributes not needed, move on
Check config: /usr/share/usb_modeswitch/1bbb:f000
! matched. Read config data
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Unbinding driver
Command to be run:
usb_modeswitch -W -D -u -1 -b 1 -g 10 -v 1bbb -p f000 -f $flags(config)
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Read long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.5 (C) Josua Dietze 2015
* Based on libusb1/libusbx
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x1bbb
DefaultProduct= 0xf000
TargetVendor= 0x1bbb
TargetProductList="0000,0017,00b7,011e,0191,0195"
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
NeedResponse=0
System integration mode enabled
Use given bus/device number: 001/010 ...
Look for default devices ...
bus/device number matched
found USB ID 1bbb:f000
vendor ID matched
product ID matched
Found devices in default mode (1)
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: USBModem
Product: Mobile Broad Band
Serial No.: not provided
-------------------------
Looking for active driver ...
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reset response endpoint 0x81
Reset message endpoint 0x01
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Check success of mode switch for max. 20 seconds ...
Wait for device file system (1 sec.) ...
Wait for device file system (2 sec.) ...
Wait for device file system (3 sec.) ...
Read attributes ...
All attributes matched
Mode switching was successful, found 1bbb:011e (USBModem: Mobile Broad Band)
Logger is /usr/bin/logger
Now check for bound driver ...
driver has bound, device is known
Check for AVOID_RESET_QUIRK kernel attribute
AVOID_RESET_QUIRK activated
All done, exit
USB_ModeSwitch log from Fri Mar 11 14:38:54 SAST 2016
Use global config file: /etc/usb_modeswitch.conf
usb_modeswitch called with --symlink-name
parameter: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0
My name is ttyUSB0
Check my endpoints ...
in /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0
check ep_01 ...
check ep_81 ...
--> I am not an interrupt port
Return empty name and exit
USB_ModeSwitch log from Fri Mar 11 14:38:53 SAST 2016
Use global config file: /etc/usb_modeswitch.conf
usb_modeswitch called with --symlink-name
parameter: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/ttyUSB1/tty/ttyUSB1
My name is ttyUSB1
Check my endpoints ...
in /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1
check ep_02 ...
check ep_82 ...
--> I am not an interrupt port
Return empty name and exit
USB_ModeSwitch log from Fri Mar 11 14:38:53 SAST 2016
Use global config file: /etc/usb_modeswitch.conf
usb_modeswitch called with --symlink-name
parameter: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.3/ttyUSB2/tty/ttyUSB2
My name is ttyUSB2
Check my endpoints ...
in /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.3
check ep_04 ...
check ep_84 ...
ep_84 has interrupt transfer type
--> I am an interrupt port
Look for lower ports with interrupt endpoints
in ifDir /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0 ...
check ep_01 ...
check ep_81 ...
in ifDir /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1 ...
check ep_02 ...
check ep_82 ...
in ifDir /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2 ...
no ttyUSB interface - skip endpoint check
--> No interrupt interface below me
Return symlink name "gsmmodem" and exit