Modify

Opened 6 years ago

Last modified 4 years ago

#11543 new defect

option: Unknown symbol usb_wwan_write, usb_wwan_close, usb_wwan_relese, Kernel 3.3.7

Reported by: 0omat@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Hi,

after upgrading to
Firmware Version r31858, Kernel 3.3.7 my Vodafone K5005 4G USB-Stick isn't recognized any longer at bootup (with the previous Kernel / Image everything was fine).
When I plug the stick into my TP-Link MR3020 while it is up and running, there's no problem with the recognition.

Dmesg:

[   10.240000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.240000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   10.250000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   10.290000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[   10.310000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   10.310000] hub 1-0:1.0: USB hub found
[   10.310000] hub 1-0:1.0: 1 port detected
[   10.340000] nf_conntrack version 0.5.0 (456 buckets, 1824 max)
[   10.580000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   10.700000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   10.760000] usbcore: registered new interface driver usbserial
[   10.760000] USB Serial support registered for generic
[   10.870000] usbcore: registered new interface driver usbserial_generic
[   10.880000] usbserial: USB Serial Driver core
[   10.910000] option: Unknown symbol usb_wwan_write (err 0)
[   10.910000] option: Unknown symbol usb_wwan_close (err 0)
[   10.920000] option: Unknown symbol usb_wwan_release (err 0)
[   10.930000] option: Unknown symbol usb_wwan_tiocmget (err 0)
[   10.930000] option: Unknown symbol usb_wwan_chars_in_buffer (err 0)
[   10.940000] option: Unknown symbol usb_wwan_write_room (err 0)
[   10.940000] option: Unknown symbol usb_wwan_disconnect (err 0)
[   10.950000] option: Unknown symbol usb_wwan_startup (err 0)
[   10.950000] option: Unknown symbol usb_wwan_set_termios (err 0)
[   10.960000] option: Unknown symbol usb_wwan_dtr_rts (err 0)
[   10.960000] option: Unknown symbol usb_wwan_open (err 0)
[   10.970000] option: Unknown symbol usb_wwan_ioctl (err 0)
[   10.970000] option: Unknown symbol usb_wwan_tiocmset (err 0)
[   11.020000] USB Serial support registered for GSM modem (1-port)
[   11.020000] usbcore: registered new interface driver option
[   11.030000] option: v0.7.2:USB Driver for GSM modems
[   14.900000] device eth0 entered promiscuous mode

I'm loading the modules through
/etc/modules.d/60-usb-serial:

usbserial vendor=0x12d1 product=0x14c8
option

Attachments (0)

Change History (7)

comment:1 Changed 6 years ago by jow

You need to load the wwan module in between.

comment:2 in reply to: ↑ description Changed 6 years ago by anonymous

Replying to 0omat@…:

Fixed it:

Loading option module in 65-usb-serial-option instead of 60-usb-serial

Insert the following patch:
<http://luci.subsignal.org/~jow/usb-coldplug.patch>

comment:3 Changed 6 years ago by 0omat@…

*hmpf*
The patch itseld does its job, but not when included in /etc/init.d/boot.
Why I execute it later on by hand (without unplugging the stick) it ist running through.

comment:4 Changed 6 years ago by raver@…

Hi
Shouldn't 'option' module recognize the device? I looked into its source code and it's missing the required definitions.
I suggest the following patch but I didn't have the chance to test it yet.

~/trunk/target/linux/generic/patches-3.3/822-usb_serial_option_add_more_devices.patch

--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -150,6 +150,7 @@
 #define HUAWEI_PRODUCT_E14AC                   0x14AC
 #define HUAWEI_PRODUCT_K3806                   0x14AE
 #define HUAWEI_PRODUCT_K4605                   0x14C6
+#define HUAWEI_PRODUCT_K5005                   0x14C8
 #define HUAWEI_PRODUCT_K3770                   0x14C9
 #define HUAWEI_PRODUCT_K3771                   0x14CA
 #define HUAWEI_PRODUCT_K4510                   0x14CB
@@ -666,6 +667,9 @@
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3806, 0xff, 0xff, 0xff) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K4605, 0xff, 0xff, 0xff),
                .driver_info = (kernel_ulong_t) &huawei_cdc12_blacklist },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K5005, 0xff, 0x01, 0x31) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K5005, 0xff, 0x01, 0x32) },
+       { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K5005, 0xff, 0x01, 0x33) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3770, 0xff, 0x02, 0x31) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3770, 0xff, 0x02, 0x32) },
        { USB_DEVICE_AND_INTERFACE_INFO(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_K3771, 0xff, 0x02, 0x31) },

comment:5 Changed 6 years ago by anonymous

just add this to your config file

CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL=y

comment:6 Changed 6 years ago by fpga_dsp@…

add this to your config file(config-3.3)
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL=y

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.