I installed the newest release candidate for OpenWRT 24.10 on my BPI-R3 mini. Everything works well so far except that I have the Quectel RM520N-GL modem installed but it is not detected. I can’t see it in lsusb or in any of the dmesg entries.
In the stock firmware version 21.02 (2023-11-15 BPI-R3 Mini OpenWRT image with Opensource MAC80211 wifi Driver BSP) it was properly detected.
I have the following relevant kernel modules installed:
Bus 001 Device 002: ID 13fe:4300 Wilk USB DISK 2.0
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.171 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 2c7c:0801 Quectel RM520N-GL
Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.171 xhci-hcd xHCI Host Controller
I barely had to do any setup to get the RM520N-GL working with the latest OpenWRT build as of 2025-03-22. Keep in mind that this configuration does NOT involve modem manager.
These are the steps I went through to get it working:
Install OpenWRT 24.10.0 on the eMMC.
Download qmi-utils and luci-proto-qmi via System -> Software (or you could include it in a custom build of the firmware).
Reboot the BPi-R3 Mini
Add new interface, select QMI Cellular as the protocol for the new interface and select the modem as the Modem device and add the APN manually. Also make sure to select the wan/wan6 as the firewall zone from the Firewall settings tab.
This was enough to get the connection up and running for me. To manage the bands and to keep track of the signal strength etc. I also added some packages from 4IceG (Rafał Wabik) · GitHub.
You should also make sure that the RM520N-GL is configured correctly if you are having trouble finding it under cat /sys/kernel/debug/usb/devices.
If I’m not mistaken you should make sure that it’s running in QMI mode by executing the following AT command:
AT+QCFG=“usbnet”,0 - Configures the modem to use QMI mode.
Unlock the modem to enable the radio for communication (+ reboot the module):
It looks like you have the RM520NGLAP-M20-SGASA which probably won’t work in the BPi R3 Mini since the RM520NGLAP-M20-SGASA variant should only support communication via PCIe and the BPi R3 Mini’s M2 key B slot only supports communication via USB. The RM520NGLAA-M20-SGASA variant supports communication via USB.
Not really sure why it works via the USB adapter though…
I have version AA. The best thing is that on the stock R3 mini firmware, this modem 520 is visible… And now it suddenly disappeared in 24.10 openwrt. And only the adapter is visible via USB, can anyone explain this? Damaged M.2 socket?