Arch-linux + Huawei E353

Started by bbuic, March 05, 2013, 11:39:29 pm

Previous topic - Next topic

bbuic

Hello,

can't connect USB 3G (Huawei E353) with imx232-Olinuxino-MICRO(Archlinux).

What can i do ?

Here is usb_modeswitch log  :

USB_ModeSwitch log from Wed Dec 31 18:01:24 CST 1969

Raw args from udev: /1-1.3

Using global config file: /etc/usb_modeswitch.conf
Called by new rules file - remember to check class of first interface ...
Using top device dir /sys/bus/usb/devices/1-1.3
Check class of first interface ...
Device is in install mode.
Using interface 1.0
----------------
USB values from sysfs:
  manufacturer   HUAWEI
  product   HUAWEI Mobile
  serial   
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:14fe
! matched. Reading config data
config: TargetVendor set to 12d1
config: TargetProduct set to 1506
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -W -D -s 20 -u -1 -b 1 -g 6 -v 12d1 -p 14fe -f $configBuffer

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from command line

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.5 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x14fe
TargetVendor=   0x12d1
TargetProduct=  0x1506
TargetClass=    not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 001/006 ...
Looking for default devices ...
bus/device number matched
  searching devices, found USB ID 12d1:14fe
   found matching vendor ID
   found matching product ID
   adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using interface number 0
Using endpoints 0x0f (out) and 0x8f (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x0f for message sending ...
Trying to send message 1 to endpoint 0x0f ...
libusbx: error [op_clear_halt] clear_halt failed error -1 errno 71
libusbx: error [op_clear_halt] clear_halt failed error -1 errno 71
OK, message successfully sent
Resetting response endpoint 0x8f
Could not reset endpoint (probably harmless): -34
Resetting message endpoint 0x0f
Could not reset endpoint (probably harmless): -34
Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
Waiting for device file system (1 sec.) ...
Waiting for device file system (2 sec.) ...
Waiting for device file system (3 sec.) ...
Waiting for device file system (4 sec.) ...
Waiting for device file system (5 sec.) ...
Waiting for device file system (6 sec.) ...
Waiting for device file system (7 sec.) ...
Reading attributes ...
All attributes matched
Mode switching was successful, found 12d1:1506 (HUAWEI: HUAWEI Mobile)
Logger is /usr/bin/logger
Now checking for bound driver ...
no driver has bound to interface 0 yet
Device is not in "bind_list" yet, bind it now
Module loader is /sbin/modprobe

Trying to load module "option"
Running "/sbin/modprobe option" gave an error:
  FATAL: Module option not found.
"/sys/bus/usb-serial/drivers/option1/new_id" not found, check if kernel version is at least 2.6.27
Falling back to "usbserial"

Trying to unload driver "usbserial"

Trying to load driver "usbserial" with device IDs
Running "/sbin/modprobe usbserial" gave an error:
  insmod /usr/lib/modules/2.6.35-8-ARCH+/kernel/drivers/usb/serial/usbserial.ko vendor=0x12d1 product=0x1506
ERROR: could not insert 'usbserial': Unknown symbol in module, or unknown parameter (see dmesg)
driver binding failed
Checking for AVOID_RESET_QUIRK kernel attribute
AVOID_RESET_QUIRK activated

All done, exiting

verrochio

March 08, 2013, 01:48:16 pm #1 Last Edit: March 08, 2013, 01:53:13 pm by verrochio
I made the modem run on olinuxino micro but using a different kernel. The kernel you have does not have ppp or usb serial support.
The one that Janni uses will auto usb_modswitch your modem without any input from you, during boot.
I use "huawei k3772" 3g modem but i think yours is also supported.

Jani has a nice tutorial on compiling the kernel with 3g modem support:
http://www.jann.cc/2012/08/23/building_a_kernel_3_x_for_the_olinuxino_from_sources.html

But if you do not want to do that just download it from here(i use "3.8"):
http://sourceforge.net/projects/janncc/files/olinuxino/kernel/

Then, I would suggest you use PPP and not wdialer as PPP is more stable and more automated, i used this tutorial:

https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd