• Check it out - we have a chatbot! Go ask TuxBot a question in the Ask Tuxbot section!

No DEVTYPE=wwan for Gemalto modem

UglyBob

New Member
Joined
Oct 4, 2017
Messages
4
Reaction score
0
Credits
0
Hi!

I'm developing a ofono driver for a new Gemalto modem with 2G/3G/4G. It is a wwan device with 2 ethernet ports. I'm using ofono with connman as the network manager. Everything works fine, except a small detail, the ethernet device is treated exactly as a cable device. That means I can not set prio between my ethernet and my cellular. I google a lot and found out that the reason connman treats this device as a normal ethernet cable is that there is no DEVTYPE=wwan in /sys/class/net/<device>/uevent.

As I understand this, it is the kernel that sets this type? With the help of hints from the modem? If so, is it possible to hint this yourself using udev rules? Or this needs a kernel patch or a patch from Gemalto?

Below you can see the info from dmesg:

[ 4779.052646] usb 1-7.4.4: new high-speed USB device number 11 using xhci_hcd
[ 4779.194103] cdc_acm 1-7.4.4:1.0: ttyACM0: USB ACM device
[ 4779.195263] cdc_acm 1-7.4.4:1.2: ttyACM1: USB ACM device
[ 4779.198608] cdc_acm 1-7.4.4:1.4: ttyACM2: USB ACM device
[ 4779.200072] cdc_acm 1-7.4.4:1.6: ttyACM3: USB ACM device
[ 4779.200729] cdc_acm 1-7.4.4:1.8: ttyACM4: USB ACM device
[ 4779.201320] usbcore: registered new interface driver cdc_acm
[ 4779.201324] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 4779.216335] cdc_ether 1-7.4.4:1.10 eth0: register 'cdc_ether' at usb-0000:00:14.0-7.4.4, CDC Ethernet Device, 00:00:11:12:13:14
[ 4779.216935] cdc_ether 1-7.4.4:1.10 eth0: kevent 12 may have been dropped
[ 4779.218250] cdc_ether 1-7.4.4:1.10 eth0: kevent 12 may have been dropped
[ 4779.221494] cdc_ether 1-7.4.4:1.12 eth1: register 'cdc_ether' at usb-0000:00:14.0-7.4.4, CDC Ethernet Device, 00:00:11:12:13:16
[ 4779.221528] usbcore: registered new interface driver cdc_ether
[ 4779.228403] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 4779.228478] cdc_ether 1-7.4.4:1.12 eth1: kevent 12 may have been dropped
[ 4779.228484] cdc_ether 1-7.4.4:1.12 eth1: kevent 12 may have been dropped
[ 4779.228715] cdc_ether 1-7.4.4:1.12 eth1: kevent 11 may have been dropped
[ 4779.234803] cdc_ether 1-7.4.4:1.10 eth0: kevent 12 may have been dropped
[ 4779.234816] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4779.234844] cdc_ether 1-7.4.4:1.10 eth0: kevent 12 may have been dropped
[ 4779.237297] cdc_ether 1-7.4.4:1.12 eth1: kevent 12 may have been dropped
[ 4779.286685] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready​

And here is some udev info:

$ udevadm info /sys/class/net/eth0
P: /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.4/1-7.4.4/1-7.4.4:1.10/net/eth0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.4/1-7.4.4/1-7.4.4:1.10/net/eth0
E: ID_BUS=usb
E: ID_MM_CANDIDATE=1
E: ID_MODEL=PLSx
E: ID_MODEL_ENC=PLSx
E: ID_MODEL_ID=005b
E: ID_NET_DRIVER=cdc_ether
E: ID_NET_LINK_FILE=/usr/lib/systemd/network/99-default.link
E: ID_NET_NAME_MAC=enx000011121314
E: ID_OUI_FROM_DATABASE=NORMEREL SYSTEMES
E: ID_PATH=pci-0000:00:14.0-usb-0:7.4.4:1.10
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_7_4_4_1_10
E: ID_REVISION=1730
E: ID_SERIAL=Cinterion_Wireless_Modules_PLSx
E: ID_TYPE=generic
E: ID_USB_CLASS_FROM_DATABASE=Miscellaneous Device
E: ID_USB_DRIVER=cdc_ether
E: ID_USB_INTERFACES=:020201:0a0000:020200:020600:
E: ID_USB_INTERFACE_NUM=0a
E: ID_USB_PROTOCOL_FROM_DATABASE=Interface Association
E: ID_VENDOR=Cinterion_Wireless_Modules
E: ID_VENDOR_ENC=Cinterion\x20Wireless\x20Modules
E: ID_VENDOR_ID=1e2d
E: IFINDEX=3
E: INTERFACE=eth0
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth0
E: TAGS=:systemd:
E: USEC_INITIALIZED=4779270983​
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top