tty7
Posts: 3
Joined: Sun Mar 03, 2019 12:59 pm

Alcatel IK40 4G usb modem kernel panic

Sun Mar 03, 2019 3:14 pm

Hi, I am trying to make the mentioned 2/3/4G usb-stick modem work on my Rpi, as part of a DIY router project.

The modem works correctly on my laptops with Ubuntu Mate x86-64.
Unfortunately, when I try using it on my Raspberry PI 1 B+, it causes a kernel panic. It doens't happen instantly, but after 5-10 seconds of being connected.
The kernel panic happens after usb_modeswitch switches the usb-stick's state from storage to modem.
I know this because I tried disabling the automatic switch, and the Rpi does not go into kernel panic.

I have tried also with Arch Linux ARM, same story.

At first I suspected it was a power-related issue, but an AC-powered usb hub did not help.
Testing the pins shows a voltage above 5V, anyway. Or a little lower than that, but definitely not close to 4.7V.

Ids of the device:
1bbb:f000 in storage mode
1bbb:0195 in modem mode

Several people have asked for support with this specific device, but the threads are dead and unanswered.

I bought an usb-to-ttl serial adapter, so that I can get all the output from my Rpi to a laptop and provide you with more information about the kernel panic.
At the moment I could provide only pictures of the screen. As you know it's impossible to scrollup the kernel panic message. So the information I can provide today is limited.
Would the usb-to-ttl adapter be enough to debug this issue? Or would I need also a JTAG programmer? I have checked for one and the price is around 300 euro. At that point it'd be more cost-effective to use one of my x86 laptops as a router.

I'll provide info about both the laptop and the raspberry pi with the modem connected.

LAPTOP

Code: Select all

$ uname -a
Linux laptopHostname 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

$ dmesg
[  470.056122] usb 2-1.2: new high-speed USB device number 6 using ehci-pci
[  470.183995] usb 2-1.2: New USB device found, idVendor=1bbb, idProduct=f000
[  470.184001] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  470.184006] usb 2-1.2: Product: Mobilebroadband
[  470.184009] usb 2-1.2: Manufacturer: Alcatel
[  470.184013] usb 2-1.2: SerialNumber: 1234567890ABCDE
[  470.198609] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[  470.198803] scsi host0: usb-storage 2-1.2:1.0
[  471.243590] scsi 0:0:0:0: Direct-Access     ONETOUCH KEY40            2.31 PQ: 0 ANSI: 2
[  471.253948] scsi 0:0:0:1: CD-ROM            ONETOUCH KEY40            2.31 PQ: 0 ANSI: 2
[  471.254703] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  471.271854] sd 0:0:0:0: Power-on or device reset occurred
[  471.274971] sr 0:0:0:1: Power-on or device reset occurred
[  471.285051] sr 0:0:0:1: [sr0] scsi-1 drive
[  471.285313] sr 0:0:0:1: Attached scsi CD-ROM sr0
[  471.285405] sr 0:0:0:1: Attached scsi generic sg1 type 5
[  471.305028] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  471.412063] usb 2-1.2: reset high-speed USB device number 6 using ehci-pci
[  471.549257] sd 0:0:0:0: Power-on or device reset occurred
[  478.028040] usb 2-1.2: USB disconnect, device number 6
[  479.020104] usb 2-1.2: new high-speed USB device number 7 using ehci-pci
[  479.145136] usb 2-1.2: New USB device found, idVendor=1bbb, idProduct=0195
[  479.145141] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  479.145146] usb 2-1.2: Product: Mobilebroadband
[  479.145149] usb 2-1.2: Manufacturer: Alcatel
[  479.145153] usb 2-1.2: SerialNumber: 1234567890ABCDE
[  479.164108] usb-storage 2-1.2:1.2: USB Mass Storage device detected
[  479.164291] scsi host0: usb-storage 2-1.2:1.2
[  479.793803] usbcore: registered new interface driver cdc_ether
[  479.830871] rndis_host 2-1.2:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.0-1.2, RNDIS device, XX:XX:XX:XX:XX:XX # redacted mac address
[  479.831029] usbcore: registered new interface driver rndis_host
[  479.852984] rndis_host 2-1.2:1.0 enp0s29u1u2: renamed from usb0
[  479.889399] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2: link is not ready
[  480.190477] scsi 0:0:0:0: Direct-Access     ONETOUCH KEY40            2.31 PQ: 0 ANSI: 2
[  480.191174] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  480.193492] sd 0:0:0:0: Power-on or device reset occurred
[  480.199510] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  480.756619] usbcore: registered new interface driver usbserial_generic
[  480.756632] usbserial: USB Serial support registered for generic
[  480.796930] usbcore: registered new interface driver option
[  480.796946] usbserial: USB Serial support registered for GSM modem (1-port)

Code: Select all

$ sudo lsusb -v # I have filtered the output
Bus 002 Device 007: ID 1bbb:0195 T & A Mobile Phones 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1bbb T & A Mobile Phones
  idProduct          0x0195 
  bcdDevice            2.42
  iManufacturer           1 Alcatel
  iProduct                2 Mobilebroadband
  iSerial                 3 1234567890ABCDE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           98
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass        224 Wireless
      bFunctionSubClass       1 Radio Frequency
      bFunctionProtocol       3 RNDIS
      iFunction               8 RNDIS
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       224 Wireless
      bInterfaceSubClass      1 Radio Frequency
      bInterfaceProtocol      3 RNDIS
      iInterface              6 RNDIS Communications Control
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 01 00 01
      ** UNRECOGNIZED:  04 24 02 00
      ** UNRECOGNIZED:  05 24 06 00 01
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 
      iInterface              7 RNDIS Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)


Raspberry PI 1 B+
This is all with the following options for /etc/usb_modeswitch.conf:

Code: Select all

DisableSwitching=1
DisableMBIMGlobal=0
EnableLogging=1
#SetStorageDelay=4

Code: Select all

$ uname -a
Linux piHostname 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux

Code: Select all

$ dmesg
[  112.563052] Under-voltage detected! (0x00050005) # feel free to avoid this under-voltage. I was using a less-performant charger.
[  116.723047] Voltage normalised (0x00000000)
[  120.062925] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[  120.210874] usb 1-1.4: New USB device found, idVendor=1bbb, idProduct=f000
[  120.210903] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  120.210917] usb 1-1.4: Product: Mobilebroadband
[  120.210929] usb 1-1.4: Manufacturer: Alcatel
[  120.210938] usb 1-1.4: SerialNumber: 1234567890ABCDE
[  120.241066] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[  120.251765] scsi host0: usb-storage 1-1.4:1.0
[  121.285325] scsi 0:0:0:0: Direct-Access     ONETOUCH KEY40            2.31 PQ: 0 ANSI: 2
[  121.300635] scsi 0:0:0:1: CD-ROM            ONETOUCH KEY40            2.31 PQ: 0 ANSI: 2
[  121.304111] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  121.397437] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  121.398608] scsi 0:0:0:1: Attached scsi generic sg1 type 5
[  121.474173] sr 0:0:0:1: [sr0] scsi-1 drive
[  121.474195] cdrom: Uniform CD-ROM driver Revision: 3.20
[  121.475377] sr 0:0:0:1: Attached scsi CD-ROM sr0
[  121.634222] dwc_otg: DEVICE:004 : update_urb_state_xfer_comp:747:trimming xfer length

Code: Select all

$ sudo lsusb -v # I have filtered the output. Notice the different product id, here being f000 instead of 0195, because usb mode has not been switched to modem.
Bus 001 Device 004: ID 1bbb:f000 T & A Mobile Phones 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1bbb T & A Mobile Phones
  idProduct          0xf000 
  bcdDevice            2.42
  iManufacturer           1 Alcatel
  iProduct                2 Mobilebroadband
  iSerial                 3 1234567890ABCDE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)
EDIT
Got a USB-to-TTL adapter and hence had a chance to extract the text of a kernel dump.
This happened after I booted up the Raspberry PI, logged in through the serial connection and then connected the USB modem to the USB port.
The led starts blinking, searching for a connection. The kernel panic happens, and then it seems like the connection is actually established (the led does not blink anymore, and instead stays on all the time). The system is gone, at that point.

Code: Select all

[  179.123024] Under-voltage detected! (0x00050005)
[  191.395038] Unable to handle kernel paging request at virtual address 55555555
[  191.410251] Unable to handle kernel paging request at virtual address 55555555
[  191.410268] pgd = d90b8000
[  191.410276] [55555555] *pgd=00000000
[  191.410298] Internal error: Oops: 5 [#1] ARM
[  191.410306] Modules linked in: sr_mod cdrom sg cfg80211 rfkill snd_bcm2835(C) snd_pcm snd_timer snd fixed uio_pdrv_genirq uio ip_tables x_tables ip
v6
[  191.410383] CPU: 0 PID: 98 Comm: systemd-udevd Tainted: G         C      4.14.79+ #1159
[  191.410387] Hardware name: BCM2835
[  191.410397] task: da601bc0 task.stack: d90b2000
[  191.410427] PC is at __kmalloc+0x80/0x1f8
[  191.410434] LR is at 0x9108
[  191.410442] pc : [<c0147e14>]    lr : [<00009108>]    psr: 20000193
[  191.410449] sp : d90b3888  ip : d90b3888  fp : d90b38b4
[  191.410456] r10: da413c00  r9 : dac01e40  r8 : c049e61c
[  191.410463] r7 : 01088020  r6 : 0000000c  r5 : 55555555  r4 : dac01e40
[  191.410470] r3 : 00000000  r2 : da492240  r1 : 01088020  r0 : dac01e40
[  191.410479] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  191.410486] Control: 00c5387d  Table: 190b8008  DAC: 00000055
[  191.410493] Process systemd-udevd (pid: 98, stack limit = 0xd90b2188)
[  191.410504] Stack: (0xd90b3888 to 0xd90b4000)
[  191.410518] 3880:                   c0072420 c00c523c d936d180 daffb780 f09805e0 da492240
[  191.410533] 38a0: 00000000 da492240 d90b38c4 d90b38b8 c049e61c c0147da0 d90b38f4 d90b38c8
[  191.410548] 38c0: c0493fb8 c049e608 00000000 da492200 daffb780 f09805e0 da413c00 00000002
[  191.410562] 38e0: da492240 00000002 d90b3934 d90b38f8 c0495e40 c0493f94 00000001 000000c0
[  191.410576] 3900: c048f83c daffb6c0 00000000 00000000 da413c00 00000002 f09805e0 da492200
[  191.410590] 3920: daffb780 00000002 d90b3984 d90b3938 c049744c c0495b68 d90b3984 d90b3948
[  191.410604] 3940: c0491d88 c048fac8 00000001 f09805ec 00000023 00000002 c094a578 00000007
[  191.410618] 3960: 00000080 da413c00 00000000 c09a98f8 f301080e 00000008 d90b39a4 d90b3988
[  191.410635] 3980: c0497814 c0497038 da413c00 da413800 00000001 00000002 d90b39d4 d90b39a8
[  191.410649] 39a0: c0497ac8 c0497768 c0493d6c dac2a240 daff9480 00000038 00000000 00000000
[  191.410664] 39c0: d90b3a34 dac2a240 d90b39e4 d90b39d8 c0493d88 c0497860 d90b39f4 d90b39e8
[  191.410678] 39e0: c04639d8 c0493d78 d90b3a2c d90b39f8 c006210c c04639b0 d90b3a3c d90b3a08
[  191.410693] 3a00: c00700e0 dac2a240 dac2a240 d90b3bb8 00000001 dac28000 d90b2000 c09d9708
[  191.410707] 3a20: d90b3a4c d90b3a30 c006226c c0062084 d90b3a54 00000000 dac2a240 c09c5234
[  191.410722] 3a40: d90b3a64 d90b3a50 c00622e0 c006224c 0000dd8e dac2a240 d90b3a7c d90b3a68
[  191.410736] 3a60: c0065be8 c00622b4 c0065b48 00000038 d90b3a8c d90b3a80 c0061390 c0065b54
[  191.410751] 3a80: d90b3ab4 d90b3a90 c00618f0 c006136c d90b3ad0 d90b3ad0 c0941910 ffffffff
[  191.410769] 3aa0: d90b3b04 dac28000 d90b3acc d90b3ab8 c0009418 c00618a4 c0009554 60000113
[  191.410783] 3ac0: d90b3b64 d90b3ad0 c064eb3c c00093fc 00000000 0000000a c09d7080 c0941414
[  191.410797] 3ae0: 00000000 c09c5234 00000002 00000001 dac28000 d90b2000 c09d9708 d90b3b64
[  191.410811] 3b00: d90b3b20 d90b3b20 c0009550 c0009554 60000113 ffffffff c0009550 bf000000
[  191.410825] 3b20: dac25c00 c0065430 00000001 00400100 ffffd595 0000000a 00000000 00000000
[  191.410839] 3b40: c09c5234 00000000 00000001 dac28000 d90b2000 c09d9708 d90b3b74 d90b3b68
[  191.410854] 3b60: c0026664 c00094ac d90b3b9c d90b3b78 c00618f8 c0026580 d90b3bb8 d90b3bb8
[  191.410869] 3b80: c0941910 ffffffff d90b3bec 00000000 d90b3bb4 d90b3ba0 c0009418 c00618a4
[  191.410884] 3ba0: c005fab4 60000113 d90b3c5c d90b3bb8 c064eb3c c00093fc 00000000 c0950640
[  191.410898] 3bc0: 60000113 60000113 00000000 00000000 00000052 00000000 00000000 000047cc
[  191.410913] 3be0: c09d9708 d90b3c5c d90b3c08 d90b3c08 c005fa9c c005fab4 60000113 ffffffff
[  191.410928] 3c00: c005fa9c bf000000 c0059e68 c00c523c 60000113 00000000 c005fcd0 00000001
[  191.410942] 3c20: 60000113 00000000 000000f2 00000000 00000042 00000042 00000000 00000000
[  191.410957] 3c40: 00000000 60000113 dac08b98 00000000 d90b3c9c d90b3c60 c005fcd0 c005f72c
[  191.410972] 3c60: c0799b94 d90b3cf4 dac2a240 c0065430 d90b3c94 55555555 00000005 d90b3e40
[  191.410987] 3c80: dac08b60 dac08b60 dac08b98 00000014 d90b3cb4 d90b3ca0 c005ff88 c005fb88
[  191.411002] 3ca0: c0799b94 d90b3cf4 d90b3cd4 d90b3cb8 c0061270 c005ff48 c014402c da601bc0
[  191.411020] 3cc0: d90b3ce4 55555555 d90b3cec d90b3cd8 c0060c0c c006122c d90b3cfc d90b3cf4
[  191.411035] 3ce0: d90b3d14 d90b3d00 c0018f74 c0060bec c0799b94 c0799b84 55555555 c0799b84
[  191.411049] 3d00: d90b3e40 55555555 d90b3d6c d90b3d18 c064f3c0 c0018f38 d90b3e58 c01658f4
[  191.411064] 3d20: c0657f9c d90b3d6c 00000004 c0148290 d90b3d6c 00000000 00000000 00010000
[  191.411078] 3d40: d90b3d5c 00000005 00000005 c064f53c 55555555 d90b3e40 d90b2000 00000080
[  191.411093] 3d60: d90b3d8c d90b3d70 c064f5e8 c064f190 c0941414 c0945f5c 00000005 c064f53c
[  191.411107] 3d80: d90b3e3c d90b3d90 c0009200 c064f548 7fff0000 d90b3e58 d90b3ecc 00000119
[  191.411122] 3da0: 40000028 00000010 d90b3e3c d90b3db8 c00e11f8 c00df524 c0658e80 c015708c
[  191.411139] 3dc0: d911d1c8 d9094460 d90b3dfc c017ab0c 00000000 d90b3ea8 7fff0000 00000000
[  191.411153] 3de0: d90b3e58 00000000 c017ab0c c0176e90 5beade4d 245bdc80 c0164744 00020070
[  191.411167] 3e00: d911d1c8 d90b3ed8 d90b3e58 00000000 00000000 00000000 5beade4d c014402c
[  191.411183] 3e20: 20000013 ffffffff d90b3e74 dac01e40 d90b3e9c d90b3e40 c064eab4 c00091c8
[  191.411198] 3e40: dac01e40 55555555 a0000013 00000000 dac01e40 d93d5a40 014000c0 c05236bc
[  191.411212] 3e60: dac01e40 00000018 00000080 d90b3e9c d90b3ea0 d90b3e90 c0148038 c014402c
[  191.411227] 3e80: 20000013 ffffffff 0067bb98 bf000000 d90b3ecc d90b3ea0 c0148038 c0144018
[  191.411241] 3ea0: 00000119 00000000 d89b7000 dace1800 c0941b50 00000119 0000000f c09bc5a8
[  191.411258] 3ec0: d90b3eec d90b3ed0 c05236bc c0147f98 c052367c 00000010 dace1800 00000001
[  191.411272] 3ee0: d90b3f04 d90b3ef0 c0174e20 c0523688 00000010 00000003 d90b3f14 d90b3f08
[  191.411287] 3f00: c0176ad8 c0174e00 d90b3f2c d90b3f18 c0522a28 c0176acc 0000000f 00000010
[  191.411300] 3f20: d90b3f54 d90b3f30 c05230cc c0522a10 00000003 00000000 00000001 00000119
[  191.411315] 3f40: c000ff24 d90b2000 d90b3f74 d90b3f58 c0523270 c0523094 d90b3f84 00000000
[  191.411330] 3f60: 00000119 00080803 d90b3fa4 d90b3f78 c0524104 c052322c d90b3fa4 d90b3f88
[  191.411344] 3f80: c0012284 c00a650c 0067bb98 0066e080 00000001 00000119 00000000 d90b3fa8
[  191.411357] 3fa0: c000ff00 c05240d8 0067bb98 0066e080 00000010 00080803 0000000f 00000000
[  191.411372] 3fc0: 0067bb98 0066e080 00000001 00000119 00000000 00676748 0066e014 00676748
[  191.411387] 3fe0: 004d6e4c befaefdc 00494a64 b6d76e7c a0000010 00000010 00000000 00000000
[  191.411436] [<c0147e14>] (__kmalloc) from [<c049e61c>] (__DWC_ALLOC_ATOMIC+0x20/0x28)
[  191.411482] [<c049e61c>] (__DWC_ALLOC_ATOMIC) from [<c0493fb8>] (_complete+0x30/0x308)
[  191.411515] [<c0493fb8>] (_complete) from [<c0495e40>] (handle_hc_xfercomp_intr+0x2e4/0x46c)
[  191.411542] [<c0495e40>] (handle_hc_xfercomp_intr) from [<c049744c>] (dwc_otg_hcd_handle_hc_n_intr+0x420/0x730)
[  191.411566] [<c049744c>] (dwc_otg_hcd_handle_hc_n_intr) from [<c0497814>] (dwc_otg_hcd_handle_hc_intr+0xb8/0xf8)
[  191.411587] [<c0497814>] (dwc_otg_hcd_handle_hc_intr) from [<c0497ac8>] (dwc_otg_hcd_handle_intr+0x274/0x370)
[  191.411606] [<c0497ac8>] (dwc_otg_hcd_handle_intr) from [<c0493d88>] (dwc_otg_hcd_irq+0x1c/0x28)
[  191.411648] [<c0493d88>] (dwc_otg_hcd_irq) from [<c04639d8>] (usb_hcd_irq+0x34/0x48)
[  191.411675] [<c04639d8>] (usb_hcd_irq) from [<c006210c>] (__handle_irq_event_percpu+0x94/0x1c8)
[  191.411695] [<c006210c>] (__handle_irq_event_percpu) from [<c006226c>] (handle_irq_event_percpu+0x2c/0x68)
[  191.411714] [<c006226c>] (handle_irq_event_percpu) from [<c00622e0>] (handle_irq_event+0x38/0x4c)
[  191.411736] [<c00622e0>] (handle_irq_event) from [<c0065be8>] (handle_level_irq+0xa0/0x114)
[  191.411779] [<c0065be8>] (handle_level_irq) from [<c0061390>] (generic_handle_irq+0x30/0x44)
[  191.411806] [<c0061390>] (generic_handle_irq) from [<c00618f0>] (__handle_domain_irq+0x58/0xb8)
[  191.411832] [<c00618f0>] (__handle_domain_irq) from [<c0009418>] (bcm2835_handle_irq+0x28/0x48)
[  191.411857] [<c0009418>] (bcm2835_handle_irq) from [<c064eb3c>] (__irq_svc+0x5c/0x7c)
[  191.411867] Exception stack(0xd90b3ad0 to 0xd90b3b18)
[  191.411879] 3ac0:                                     00000000 0000000a c09d7080 c0941414
[  191.411894] 3ae0: 00000000 c09c5234 00000002 00000001 dac28000 d90b2000 c09d9708 d90b3b64
[  191.411906] 3b00: d90b3b20 d90b3b20 c0009550 c0009554 60000113 ffffffff
[  191.411927] [<c064eb3c>] (__irq_svc) from [<c0009554>] (__do_softirq+0xb4/0x328)
[  191.411960] [<c0009554>] (__do_softirq) from [<c0026664>] (irq_exit+0xf0/0x140)
[  191.411987] [<c0026664>] (irq_exit) from [<c00618f8>] (__handle_domain_irq+0x60/0xb8)
[  191.412013] [<c00618f8>] (__handle_domain_irq) from [<c0009418>] (bcm2835_handle_irq+0x28/0x48)
[  191.412030] [<c0009418>] (bcm2835_handle_irq) from [<c064eb3c>] (__irq_svc+0x5c/0x7c)
[  191.412039] Exception stack(0xd90b3bb8 to 0xd90b3c00)
[  191.412046] 3ba0:                                                       00000000 c0950640
[  191.412060] 3bc0: 60000113 60000113 00000000 00000000 00000052 00000000 00000000 000047cc
[  191.412075] 3be0: c09d9708 d90b3c5c d90b3c08 d90b3c08 c005fa9c c005fab4 60000113 ffffffff
[  191.412095] [<c064eb3c>] (__irq_svc) from [<c005fab4>] (console_unlock+0x394/0x45c)
[  191.412117] [<c005fab4>] (console_unlock) from [<c005fcd0>] (vprintk_emit+0x154/0x244)
[  191.412139] [<c005fcd0>] (vprintk_emit) from [<c005ff88>] (vprintk_default+0x4c/0x7c)
[  191.412162] [<c005ff88>] (vprintk_default) from [<c0061270>] (vprintk_func+0x50/0xb8)
[  191.412181] [<c0061270>] (vprintk_func) from [<c0060c0c>] (printk+0x30/0x38)
[  191.412213] [<c0060c0c>] (printk) from [<c0018f74>] (__do_kernel_fault.part.0+0x48/0x84)
[  191.412238] [<c0018f74>] (__do_kernel_fault.part.0) from [<c064f3c0>] (do_page_fault+0x23c/0x3b8)
[  191.412262] [<c064f3c0>] (do_page_fault) from [<c064f5e8>] (do_translation_fault+0xac/0xb4)
[  191.412281] [<c064f5e8>] (do_translation_fault) from [<c0009200>] (do_DataAbort+0x44/0xc4)
[  191.412299] [<c0009200>] (do_DataAbort) from [<c064eab4>] (__dabt_svc+0x54/0x80)
[  191.412306] Exception stack(0xd90b3e40 to 0xd90b3e88)
[  191.412321] 3e40: dac01e40 55555555 a0000013 00000000 dac01e40 d93d5a40 014000c0 c05236bc
[  191.412335] 3e60: dac01e40 00000018 00000080 d90b3e9c d90b3ea0 d90b3e90 c0148038 c014402c
[  191.412342] 3e80: 20000013 ffffffff
[  191.412362] [<c064eab4>] (__dabt_svc) from [<c014402c>] (prefetch_freepointer+0x20/0x2c)
[  191.412389] [<c014402c>] (prefetch_freepointer) from [<c0148038>] (kmem_cache_alloc_trace+0xac/0x1bc)
[  191.412416] [<c0148038>] (kmem_cache_alloc_trace) from [<c05236bc>] (sock_alloc_inode+0x40/0xb4)
[  191.412451] [<c05236bc>] (sock_alloc_inode) from [<c0174e20>] (alloc_inode+0x2c/0xb0)
[  191.412478] [<c0174e20>] (alloc_inode) from [<c0176ad8>] (new_inode_pseudo+0x18/0x38)
[  191.412500] [<c0176ad8>] (new_inode_pseudo) from [<c0522a28>] (sock_alloc+0x24/0xbc)
[  191.412518] [<c0522a28>] (sock_alloc) from [<c05230cc>] (__sock_create+0x44/0x198)
[  191.412535] [<c05230cc>] (__sock_create) from [<c0523270>] (sock_create+0x50/0x58)
[  191.412554] [<c0523270>] (sock_create) from [<c0524104>] (SyS_socket+0x38/0xd0)
[  191.412584] [<c0524104>] (SyS_socket) from [<c000ff00>] (__sys_trace_return+0x0/0x10)
[  191.412604] Code: e5935000 e3550000 0a00004b e5943014 (e7951003)
[  191.412617] ---[ end trace c5ff5062dcb4d017 ]---
[  191.412624] Kernel panic - not syncing: Fatal exception in interrupt
[  193.776687] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
What do you think would be the next step to debug / solve the problem?

Thank you for your time
Attachments
pic_.jpg
kernel panic message
pic_.jpg (216.3 KiB) Viewed 3571 times
Last edited by tty7 on Tue Mar 12, 2019 11:25 pm, edited 1 time in total.

tty7
Posts: 3
Joined: Sun Mar 03, 2019 12:59 pm

Re: Alcatel IK40 4G usb modem kernel panic

Tue Mar 12, 2019 11:24 pm

Updated the first post. I added the text from a kernel dump, using an USB-to-TTL adapter.

gswly
Posts: 1
Joined: Sat Mar 30, 2019 4:35 pm

Re: Alcatel IK40 4G usb modem kernel panic

Sat Mar 30, 2019 4:41 pm

Hello, i had the same problem with the same exact USB model (Alcatel IK40) and after a lot of searching i've managed to solve it.

1) make sure packages usb-modeswitch and usb-modeswitch-data are installed
2) create the file "/etc/usb_modeswitch.d/1bbb:f000" (use the quotes, since there's a : in the file name)
3) put into the file this content:

TargetVendor=0x1bbb
TargetProductList="0000,0017,00b7,011e,0191,0195"
StandardEject=1

Explanation: it seems like there are multiple methods for performing mode switching (ie the switching from the disk mode to the modem mode), and the default one makes the RPI panics. The configuration forces the StandardEject mode.

CREDITS: http://www.draisberghof.de/usb_modeswit ... 834#p16834

tty7
Posts: 3
Joined: Sun Mar 03, 2019 12:59 pm

Re: Alcatel IK40 4G usb modem kernel panic

Thu Apr 04, 2019 9:20 pm

gswly wrote:
Sat Mar 30, 2019 4:41 pm
Hello, i had the same problem with the same exact USB model (Alcatel IK40) and after a lot of searching i've managed to solve it.

1) make sure packages usb-modeswitch and usb-modeswitch-data are installed
2) create the file "/etc/usb_modeswitch.d/1bbb:f000" (use the quotes, since there's a : in the file name)
3) put into the file this content:

TargetVendor=0x1bbb
TargetProductList="0000,0017,00b7,011e,0191,0195"
StandardEject=1

Explanation: it seems like there are multiple methods for performing mode switching (ie the switching from the disk mode to the modem mode), and the default one makes the RPI panics. The configuration forces the StandardEject mode.

CREDITS: http://www.draisberghof.de/usb_modeswit ... 834#p16834
Thanks for your reply.

I solved the issue in a similar way and I believe the solutions are related.

What I have done:
- disable the automatic mode switch at boot (DisableSwitching=1 in /etc/usb_modeswitch.conf)
- create a script to be executed at boot, for manual usb mode switching

Script content:

Code: Select all

$ cat ~/switch_to_modem.sh 
#!/bin/sh
usb_modeswitch -v 0x1bbb -p 0xf000 -V 0x1bbb -P 0x0195 -K

Line to add in /etc/rc.local (note: before exit 0):

Code: Select all

sudo /home/pi/switch_to_modem.sh
Of course one could also avoid creating the script file, and just add its content directly into /etc/rc.local. I prefer to have the script at hand.

MrGorG
Posts: 1
Joined: Tue Feb 18, 2020 11:01 pm

Re: Alcatel IK40 4G usb modem kernel panic

Mon Jun 29, 2020 6:16 am

gswly wrote:
Sat Mar 30, 2019 4:41 pm
Hello, i had the same problem with the same exact USB model (Alcatel IK40) and after a lot of searching i've managed to solve it.

1) make sure packages usb-modeswitch and usb-modeswitch-data are installed
2) create the file "/etc/usb_modeswitch.d/1bbb:f000" (use the quotes, since there's a : in the file name)
3) put into the file this content:

TargetVendor=0x1bbb
TargetProductList="0000,0017,00b7,011e,0191,0195"
StandardEject=1

Explanation: it seems like there are multiple methods for performing mode switching (ie the switching from the disk mode to the modem mode), and the default one makes the RPI panics. The configuration forces the StandardEject mode.

CREDITS: http://www.draisberghof.de/usb_modeswit ... 834#p16834
It work for me (RP 3B+ Raspberrypi OS), thanks you so much ... Love u :v

Return to “Troubleshooting”