Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
aaa37
Posts: 23
Joined: 08 Oct 2009, 07:59

E220 crash

Post by aaa37 » 16 Oct 2009, 04:43

Hi, I run E220 on arm platform, and run in few days without shutdown, now E220 was crashed,
and I cant' control E220 anymore,
here is message.

Code: Select all


# cat /proc/bus/usb/devices 

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.14 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:00:09.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1003 Rev= 0.00
S:  Manufacturer=HUAWEI Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=usbserial_generic
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 3
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.14 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:09.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

# rmmod usbserial 
rmmod: usbserial: Resource temporarily unavailable
# modprobe usbserial vendor=0x12d1 product=0x1003
# /usr/local/bin/usb_modeswitch -c /etc/huawei_e220.conf
usb_os_init: Found USB VFS at /proc/bus/usb
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 006 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 001

Looking for default devices ...
 Found default devices (1)
Accessing device 006 on bus 002 ...
Using endpoints 0x02 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry
[color=red]USB error: error sending control message: Connection timed out
Error: could not get description string "manufacturer"
USB error: error sending control message: Connection timed out
Error: could not get description string "product"[/color]

Device description data (identification)
-------------------------
Manufacturer: 
     Product: 
  Serial No.: not provided
-------------------------
Sending Huawei control message ...
USB error: error sending control message: Connection timed out
Error: sending Huawei control message failed (error -110). Aborting.


# dmesg 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
WDIOC_SETTIMEOUT to eb703780
Geo TW2815 ch0: Set I2C Command(0x50) OK!
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
usbcore: deregistering driver usbserial_generic
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
drivers/usb/serial/usb-serial.c: USB Serial deregistering driver Generic
usbcore: deregistering driver usbserial
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
usbcore: deregistering driver usbserial_generic
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
drivers/usb/serial/usb-serial.c: USB Serial deregistering driver Generic
usbcore: deregistering driver usbserial
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
usb 2-2: USB disconnect, address 2
usbserial_generic 2-2:1.0: device disconnected
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usb 2-2: new full speed USB device using ohci_hcd and address 3
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: deregistering driver usbserial_generic
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
drivers/usb/serial/usb-serial.c: USB Serial deregistering driver Generic
usbcore: deregistering driver usbserial
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
usb-storage: device scan complete
usb 2-2: USB disconnect, address 3
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
usb 2-2: new full speed USB device using ohci_hcd and address 4
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi: Device offlined - not ready after error recovery: host 2 channel 0 id 0 lun 0
usb-storage: device scan complete
usb 2-2: USB disconnect, address 4
usbserial_generic 2-2:1.0: device disconnected
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbcore: deregistering driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial deregistering driver Generic
usbcore: deregistering driver usbserial
usb 2-2: new full speed USB device using ohci_hcd and address 5
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
scsi: Device offlined - not ready after error recovery: host 3 channel 0 id 0 lun 0
usb-storage: device scan complete
usb 2-2: USB disconnect, address 5
generic ttyUSB0: Generic converter now disconnected from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
generic ttyUSB1: Generic converter now disconnected from ttyUSB1
usbserial_generic 2-2:1.1: device disconnected
usb 2-2: new full speed USB device using ohci_hcd and address 6
usbserial_generic 2-2:1.0: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB0
usbserial_generic 2-2:1.1: Generic converter detected
usb 2-2: Generic converter now attached to ttyUSB1
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi: Device offlined - not ready after error recovery: host 4 channel 0 id 0 lun 0
usb-storage: device scan complete
What happen to E220?
This problem had been occured before, and the solution is re-plug and restart, this time I want to keep machine in this state, and try to figure out the root cause.

I think the problem is in libusb's function usb_control_msg(),
it imply usb driver borken?


If there are any suggestion to solve this , please help me, thanks a lot.

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

Post by Josh » 16 Oct 2009, 08:38

Your device is still in modem state, no point in trying it to switch.

It might be a hardware related problem, which is outside my range of knowledge.
The only recommendation I have left to give is to use the "option" driver instead of "generic serial" - if it is available in your kernel version.

aaa37
Posts: 23
Joined: 08 Oct 2009, 07:59

Post by aaa37 » 16 Oct 2009, 08:59

Josh wrote:Your device is still in modem state, no point in trying it to switch.

It might be a hardware related problem, which is outside my range of knowledge.
The only recommendation I have left to give is to use the "option" driver instead of "generic serial" - if it is available in your kernel version.
Sorry, is this use Huawei offical driver to instrad of usb serial? (forgive my ignorance):oops:

So in this crash state, it is hard to do anything to switch, the easy way is to replug and restart. Thanks~

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

Post by Josh » 17 Oct 2009, 18:03

The "option" driver is a serial driver that is optimized for wireless modems. Kernel developers lately are strongly suggesting to avoid usbserial - the generic driver - for these devices.

If your device is working - at least for a while - with usbserial, then it will work with the "option" driver too. Probably even without crashing ...

Post Reply