/sys/class/net/wwan0/qmi/raw_ip not created --> error message in OpenWRT with RM500Q-GL

Modem: RM500Q-GL
Driver: V1.2.0.23
OpenWRT: 21.02.3

Hello all,
I have managed to integrate the driver into OpenWRT on a Raspberry Pi 4B. To me everyhing looked fine, but in the logs I am getting an error message and indeed I do not have the /sys/class/net/wwan0/qmi/raw_ip directory. Not “qmi” dir and also not “raw_ip” dir in the wwan0 folder.

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_q 2-1:1.4: cdc-wdm0: USB WDM device
[ 7.372723] qmi_wwan_q 2-1:1.4: Quectel RM500Q-GL work on RawIP mode
[ 7.379874] qmi_wwan_q 2-1:1.4: rx_urb_size = 31744
[ 7.385143] qmi_wwan_q 2-1:1.4 wwan0: register ‘qmi_wwan_q’ 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_q, 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

First use of uqmi e. g. with uqmi -d /dev/cdc-wdm0 --get-data-status I do get a response. All further use I do net get a response anymore.

With AT-commands I can see, that modem is registered, connected and has IP address.

Any ideas?

Best regards
Mike

If you would like to use the qmi_wwan_q, there would no /sys/class/net/wwan0/qmi/raw_ip. By default, it is raw_ip mode.