Raw_ip not created in sysfs with qmi_wwan driver from Quectel for RM500Q-GL

Hello,
motivated by my problem here:

I wanted to try using the latest driver from Quectel for my modem. I managed to integrate it and futher altered some source files (option.c, usb_wwan.c) as per recommendation. Everything compiled smoothly and OpenWRT runs.

However, even everything looked fine to me, the modem is not connecting as there is no /sys/class/net/wwan0/qmi/raw_ip created.

dev:
/dev/cdc-wdm0
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
all there.

dmesg:
[ 0.885563] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 0.990588] usb 2-1: New USB device found, idVendor=2c7c, idProduct=0800, bcdDevice= 4.14
[ 1.001888] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.001891] usb 2-1: Product: RM500Q-GL
[ 1.014924] usb 2-1: Manufacturer: Quectel
[ 1.014927] usb 2-1: SerialNumber:
[ 1.214172] usb 2-1: Enable of device-initiated U1 failed.
[ 1.243727] usb 2-1: Enable of device-initiated U2 failed.
[ 7.366479] qmi_wwan 2-1:1.4: cdc-wdm0: USB WDM device
[ 7.372723] qmi_wwan 2-1:1.4: Quectel RM500Q-GL work on RawIP mode
[ 7.379874] qmi_wwan 2-1:1.4: rx_urb_size = 31744
[ 7.385143] qmi_wwan 2-1:1.4 wwan0: register ‘qmi_wwan’ at usb-0000:01:00.0-1, RMNET/USB device, 22:a5:0f:50:ec:b5
[ 7.401716] usb 2-1: Enable of device-initiated U1 failed.
[ 7.407967] usb 2-1: Enable of device-initiated U2 failed.
[ 7.738655] option 2-1:1.0: GSM modem (1-port) converter detected
[ 7.744894] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 7.751795] option 2-1:1.1: GSM modem (1-port) converter detected
[ 7.758040] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 7.764952] option 2-1:1.2: GSM modem (1-port) converter detected
[ 7.771255] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 7.778178] option 2-1:1.3: GSM modem (1-port) converter detected
[ 7.784418] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3

lsusb -t:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=option, 5000M
|__ Port 1: Dev 2, If 1, Class=, Driver=option, 5000M
|__ Port 1: Dev 2, If 2, Class=, Driver=option, 5000M
|__ Port 1: Dev 2, If 3, Class=, Driver=option, 5000M
|__ Port 1: Dev 2, If 4, Class=, Driver=qmi_wwan, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M

Error message in OpenWRT:
daemon.notice netifd: modem (7884): Device only supports raw-ip mode but is missing this required driver attribute: /sys/class/net/wwan0/qmi/raw_ip

Any ideas where else to look at, or what to try?

Best regards
Mike

I don't think the Quectel driver supports this sysfs attribute. You have to use Quectel tools with Quectel drivers. And Quectel support. I assume that's why you use “their“ driver? Can't see any other reason.

OpenWrt supports this modem without any vendor hacks.

For the record: I have nothing to do with the Quectel driver. They just left my Copyright there when modifying the original. Which of course is the right thing to do.

Hi Bjørn, thanks for your reply.

I don't think the Quectel driver supports this sysfs attribute. You have to use Quectel tools with Quectel drivers. And Quectel support. I assume that's why you use “their“ driver? Can't see any other reason.

No, I would love to use the OpenWRT implementation. However, as you can see in my other post (see link at the top), I have some kind of downlink speed limitation with the OpenWRT implementation, which I cannot explain or solve. Maybe you'll find the time to look at this post.

It's a private project and the Quectel support is relative :slight_smile: . First response is always, use the latest driver. That's been the only reason, why I was playing with it, to be ahead. If I get the downlink issue solved with the OpenWRT driver I am completely fine.

Best regards,
Mike

I did look at it. But those speeds are so ridiculously low that I don't really have any suggestions. It's way below any driver imposed issues. Maybe an antenna problem? Are you sure all the antennas are properly connected?