Quectel RM530N Linux Kernel/firmware

Hi,

My organisation is considering buying the newer RM530N modules from one of our suppliers. However, how compatible is the RM530N with the current linux kernel (6.0.5)? The only compatibility I can find is with the RM520N. Are there any kernel patches specific to RM530N? Can you provide any Linux driver/kernel support?

Regards,
C

@Isaac.Wang-Q can send you the qmi_wwan_q kernel module source and instructions to add support for the RM530N. In the past, I’ve opted to modify the linux qmi_wwan driver, because libqmi tools do not recognize qmi_wwan_q. That means you’ll also probably have to use the quectel-cm connection manager if you use the quectel version of the driver.

Hi,

My organisation bought the newer 5G RM530N-GL modules from one of our suppliers.
We have Ubuntu 22 with 5.15.103 kernel. Modem is not detected.
Are there any kernel patches specific to RM530N? Can you provide any Linux driver/kernel support?

Thanks
Venugopal

Please show the output of cat /sys/kernel/debug/usb/devices

root@VENUBPI-UBU22:~/zwan-cpe/common/schliersee/bin# cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.103-bpi-r64-main xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1a0c0000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.103-bpi-r64-main xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1a0c0000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
root@VENUBPI-UBU22:~/zwan-cpe/common/schliersee/bin#

How the modem is connected to the host system?

Its connected standard M.2 port

Then check with lspci.
It looks like you do not have USB lines present on M.2 connector.

Nope, it didn’t list in “lspci” also.
But we have openWRT , with that in lsusb command it listed the Modem.
In Ubuntu 22 it is not getting detected

Your modem is not connected, no driver will help. I will be interested to see cat /sys/kernel/debug/usb/devices from OpenWrt.
Not sure how you connected the modem to the OpenWrt router, but If you have an M2-to-USB adapter you can try it with your Linux host.

If you see the first 2 messages in this post, some one said with Kernel 6.0.5 itself it is not detected and someone from Quectel responded saying they send “qmi_wwan_q kernel module source and instructions to add support for the RM530N”

We have kernel 5.15, and it may be missing the same source right.

You have no interface to bind the driver to.

Same board booted with openWRT.

root@OpenWrt:/# cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 4.19
S: Manufacturer=Linux 4.19.81 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1a0c0000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 4.19
S: Manufacturer=Linux 4.19.81 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1a0c0000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=2c7c ProdID=0801 Rev= 5.04
S: Manufacturer=Quectel
S: Product=RM530N-GL
S: SerialNumber=cd901945
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=896mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 4.19
S: Manufacturer=Linux 4.19.81 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:01:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 4.19
S: Manufacturer=Linux 4.19.81 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:01:00.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
root@OpenWrt:/#

root@OpenWrt:/# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 2c7c:0801 Quectel Wireless Solutions Co., Ltd.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:/#

root@OpenWrt:/# dmesg | grep wwan
[ 0.664874] usbcore: registered new interface driver qmi_wwan
[ 0.670823] usbcore: registered new interface driver qmi_wwan_q
root@OpenWrt:/#
root@OpenWrt:/# uname -a
Linux OpenWrt 4.19.81 #0 SMP Wed Jul 27 07:09:09 2022 aarch64 GNU/Linux

In Ubuntu 22 Image we are missing “qmi_wwan_q” driver.
If you have any , please send to us.

In Ubuntu you have no interface to bind the driver to.
When you will see the output similar to OpenWrt “Driver=(none)” then you will need a driver.

Vendor=2c7c ProdID=0801 is supported by native Linux drivers since approx. 5.10

Did you check if power is present on the slot while running Linux? Not sure if it is GPIO controlled on your board.
There is also a possibility that PCIe RESET pin state can prevent the card from starting properly, that is normally GPIO controlled.

Modem RM530N-QL is detected now after addressing some driver in Ubuntu22 Image.
But now it is not detecting the SIM card. With other Modem RM502Q SIM is detected properly.
Would like to know do we have any new Firmware for RM530N-GL.
Is the following Firmware is for use the device in US or not?

Hardware | manufacturer: Quectel
| model: RM530N-GL
| firmware revision: RM530NGLAAR01A02M4G

RM530NGLAAR01A02M4G_01.001.01.001