Please Add A Quectel EC25-E Device To A Proper Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good afternoon,

I am seeing a message in my syslog that instructs me to "Tell
Linux-usb@xxxxxxxxxxxxxxx to add your device to a proper driver.".  This
is me delivering the message as instructed. 

I have just plugged in a Quectel EC25-E LTE Module, mounted on a
Micro-PCIe to USB adaptor board.  Broadly speaking this is very similar
to the Quectel UC20 module, that I think is already supported. 

The full section of the syslog is as follows:

> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332593] usbcore:
> registered new interface driver usbserial
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332615] usbcore:
> registered new interface driver usbserial_generic
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332631] usbserial: USB
> Serial support registered for generic
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332646] usbserial_generic
> 3-2.4.1:1.0: The "generic" usb-serial driver is only for testing and
> one-off prototypes.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332648] usbserial_generic
> 3-2.4.1:1.0: Tell linux-usb@xxxxxxxxxxxxxxx to add your device to a
> proper driver.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332649] usbserial_generic
> 3-2.4.1:1.0: generic converter detected
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332732] usb 3-2.4.1:
> generic converter now attached to ttyUSB0
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332744] usbserial_generic
> 3-2.4.1:1.1: The "generic" usb-serial driver is only for testing and
> one-off prototypes.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332746] usbserial_generic
> 3-2.4.1:1.1: Tell linux-usb@xxxxxxxxxxxxxxx to add your device to a
> proper driver.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332747] usbserial_generic
> 3-2.4.1:1.1: generic converter detected
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332805] usb 3-2.4.1:
> generic converter now attached to ttyUSB1
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332815] usbserial_generic
> 3-2.4.1:1.2: The "generic" usb-serial driver is only for testing and
> one-off prototypes.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332817] usbserial_generic
> 3-2.4.1:1.2: Tell linux-usb@xxxxxxxxxxxxxxx to add your device to a
> proper driver.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332818] usbserial_generic
> 3-2.4.1:1.2: generic converter detected
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332884] usb 3-2.4.1:
> generic converter now attached to ttyUSB2
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332892] usbserial_generic
> 3-2.4.1:1.3: The "generic" usb-serial driver is only for testing and
> one-off prototypes.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332893] usbserial_generic
> 3-2.4.1:1.3: Tell linux-usb@xxxxxxxxxxxxxxx to add your device to a
> proper driver.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332895] usbserial_generic
> 3-2.4.1:1.3: generic converter deteccted
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332950] usb 3-2.4.1:
> generic converter now attached to ttyUSB3
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332958] usbserial_generic
> 3-2.4.1:1.4: The "generic" usb-serial driver is only for testing and
> one-off prototypes.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332960] usbserial_generic
> 3-2.4.1:1.4: Tell linux-usb@xxxxxxxxxxxxxxx to add your device to a
> proper driver.
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.332961] usbserial_generic
> 3-2.4.1:1.4: generic converter detected
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.333017] usb 3-2.4.1:
> generic converter now attached to ttyUSB4
> Jun  6 10:14:53 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB0):
> port attributes not fully set
> Jun  6 10:14:53 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB4):
> port attributes not fully set
> Jun  6 10:14:53 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB2):
> port attributes not fully set
> Jun  6 10:14:53 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB3):
> port attributes not fully set
> Jun  6 10:14:53 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB1):
> port attributes not fully set

Previously I thought I had got the driver to come up after creating a
modified options module that added details of the modules vendor and
device IDs, then run `modprobe option vendor=0x2c7c product=0x0125`.  
However this now seems to fail, possibly because I do not have the
modified kernel and module installed right now.  Error from that step is
as follows:

> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.387374] option: unknown
> parameter 'vendor' ignored
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.387376] option: unknown
> parameter 'product' ignored
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.387474] usbcore:
> registered new interface driver option
> Jun  6 10:14:53 thorne-ul-dt kernel: [ 2662.387495] usbserial: USB
> Serial support registered for GSM modem (1-port)
> Jun  6 10:14:55 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB2):
> port attributes not fully set
> Jun  6 10:14:55 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB3):
> port attributes not fully set
> Jun  6 10:15:01 thorne-ul-dt CRON[29989]: (munin) CMD (if [ -x
> /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
> Jun  6 10:15:01 thorne-ul-dt CRON[29991]: (root) CMD (if [ -x
> /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update
> 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then
> /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)
> Jun  6 10:15:04 thorne-ul-dt systemd[1]: Started CUPS Scheduler.
> Jun  6 10:15:04 thorne-ul-dt colord[1172]: (colord:1172): Cd-WARNING
> **: failed to get session [pid 30202]: No such device or address
> Jun  6 10:15:04 thorne-ul-dt colord[1172]: message repeated 3 times: [
> (colord:1172): Cd-WARNING **: failed to get session [pid 30202]: No
> such device or address]
> Jun  6 10:15:33 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB4):
> close blocked by driver for more than 7 seconds!
> Jun  6 10:15:33 thorne-ul-dt ModemManager[1110]: <warn>  (tty/ttyUSB0)
> failed to parse QCDM version info command result: -7
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB4):
> close blocked by driver for more than 7 seconds!
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <info>  Creating
> modem with plugin 'Generic' and '5' ports
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  Could not
> grab port (tty/ttyUSB1): 'Cannot add port 'tty/ttyUSB1', unhandled
> serial type'
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  Could not
> grab port (tty/ttyUSB4): 'Cannot add port 'tty/ttyUSB4', unhandled
> serial type'
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB2):
> port attributes not fully set
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <info>  Modem for
> device at
> '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.4/3-2.4.1'
> successfully created
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <info>  Modem: state
> changed (unknown -> disabled)
> Jun  6 10:16:09 thorne-ul-dt NetworkManager[1124]: <info> 
> [1496740569.8654] manager: (ttyUSB2): new Broadband device
> (/org/freedesktop/NetworkManager/Devices/6)
> Jun  6 10:16:09 thorne-ul-dt NetworkManager[1124]: <info> 
> [1496740569.8656] device (ttyUSB2): state change: unmanaged ->
> unavailable (reason 'managed') [10 20 2]
> Jun  6 10:16:09 thorne-ul-dt NetworkManager[1124]: <info> 
> [1496740569.8657] device (ttyUSB2): modem state 'enabling'
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <info>  Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (disabled ->
> enabling)
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB2):
> port attributes not fully set
> Jun  6 10:16:09 thorne-ul-dt ModemManager[1110]: <warn>  (ttyUSB3):
> port attributes not fully set
> Jun  6 10:16:10 thorne-ul-dt ModemManager[1110]: <info>  Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (unknown -> registering)
> Jun  6 10:16:10 thorne-ul-dt ModemManager[1110]: <info>  Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state
> changed (registering -> home)
> Jun  6 10:16:10 thorne-ul-dt ModemManager[1110]: <info>  Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (enabling ->
> registered)
> Jun  6 10:16:10 thorne-ul-dt NetworkManager[1124]: <info> 
> [1496740570.4375] device (ttyUSB2): state change: unavailable ->
> disconnected (reason 'modem-available') [20 30 58]
>
I had successfully added support for the module to a Yocto build, the
diff for which can be found at
https://github.com/Quectel-Community/meta-quectel-community/blob/master/recipes-kernel/linux/linux-yocto/0001-Add-Quectel-EC25-USB-Serial-Driver-Support.patch


It probably needs some work before being ready for adding to the Linux
Kernel but it might form a helpful reference point. 

Currently I am running an Ubuntu 16.04 distribution with the kernel
details being:

$ uname -a
Linux thorne-ul-dt 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


If there are any further details I can provide that may be of use,
please get in touch and I will do what I can to be of help. 


Regards, Thomas Thorne 

-- 
TafT


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux