Setting up a Quectel RM520GL-N on a Banana Pi R4-Pro
Philip Prindeville
philipp_subx at redfish-solutions.com
Sun Mar 15 14:37:10 PDT 2026
Seeing:
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --network-register --apn fast.t-mobile.com
"UIM uninitialized"
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
"type": "lte",
"rssi": -71,
"rsrq": -9,
"rsrp": -102,
"snr": 15.200000
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-system-info
{
"wcdma": {
"service_status": "none",
"true_service_status": "none",
"preferred_data_path": false
},
"lte": {
"service_status": "limited",
"true_service_status": "none",
"preferred_data_path": false,
"domain": "none",
"service": "cs-ps",
"roaming_status": "on",
"forbidden": false,
"mcc": "310",
"mnc": "410",
"tracking_area_code": 38656,
"enodeb_id": 431085,
"cell_id": 17,
"cell_access_status": "all calls",
"registration_restriction": 0,
"registration_domain": 0,
"5g_nsa_available": false,
"dcnr_restriction": false
},
"5gnr": {
"service_status": "none",
"true_service_status": "none",
"preferred_data_path": false
}
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --list-messages
"Device not ready"
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --set-network-modes 5gnr
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
"type": "5gnr",
"rsrp": -102,
"snr": 15.000000,
"rsrq": -11
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
{
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
{
"network_info": [
{
"mcc": 311,
"mnc": 480,
"description": "Verizon",
"status": [
"available",
"roaming",
"not_forbidden",
"not_preferred"
]
},
{
"mcc": 313,
"mnc": 100,
"description": "FirstNet",
"status": [
"available",
"roaming",
"not_forbidden",
"not_preferred"
]
},
{
"mcc": 310,
"mnc": 260,
"description": "T-Mobile",
"status": [
"available",
"roaming",
"not_forbidden",
"not_preferred"
]
},
{
"mcc": 310,
"mnc": 410,
"description": "AT&T",
"status": [
"available",
"roaming",
"not_forbidden",
"not_preferred"
]
}
],
"radio_access_technology": [
{
"mcc": 311,
"mnc": 480,
"radio": "lte"
},
{
"mcc": 313,
"mnc": 100,
"radio": "lte"
},
{
"mcc": 310,
"mnc": 260,
"radio": "lte"
},
{
"mcc": 310,
"mnc": 410,
"radio": "lte"
}
]
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-cell-location-info
{
"nr5g_cell_information": {
"enodeb_id": 29957745,
"cell_id": 56,
"physical_cell_id": 133,
"rsrq": -11.000000,
"rsrp": -104.000000,
"snr": 12.500000
},
"nr5g_arfcn": {
"arfcn": 521310
}
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-tx-rx-info 5gnr
"Not supported"
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
"registration": "not_registered",
"radio_interface": [
"5gnr"
],
"plmn_mcc": 310,
"plmn_mnc": 260,
"plmn_description": "",
"roaming": true
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"online"
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
{
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-pin-status
"Not supported"
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-current-settings
"Out of call"
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-capabilities
{
"max_tx_channel_rate": 0,
"max_rx_channel_rate": 0,
"data_service": "non_simultaneous_cs_ps",
"sim": "supported",
"networks": [
"umts",
"lte",
"5gnr"
]
}
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-device-operating-mode
"online"
root at OpenWrt:~#
root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-data-status
"disconnected"
root at OpenWrt:~#
root at OpenWrt:~# cat /etc/config/network
...
config interface 'qmi'
option proto 'qmi'
option device '/dev/cdc-wdm0'
option apn 'fast.t-mobile.com'
option auth 'none'
option pdptype 'ipv4v6'
##option apntype 'default,supl'
##option apntype 'internet+mms'
##option plmn '310260'
option modes '5gnr,lte'
option dhcp '1'
option autoconnect '1'
...
Why am I getting "UIM uninitialized"?
> On Mar 15, 2026, at 2:37 PM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
>
> I'm seeing network carriers at least:
>
> root at OpenWrt:~# uqmi -d /dev/cdc-wdm0 --network-scan
> {
> "network_info": [
> {
> "mcc": 313,
> "mnc": 100,
> "description": "FirstNet",
> "status": [
> "available",
> "roaming",
> "not_forbidden",
> "not_preferred"
> ]
> },
> {
> "mcc": 311,
> "mnc": 480,
> "description": "Verizon",
> "status": [
> "available",
> "roaming",
> "not_forbidden",
> "not_preferred"
> ]
> },
> {
> "mcc": 310,
> "mnc": 410,
> "description": "AT&T",
> "status": [
> "current_serving",
> "roaming",
> "not_forbidden",
> "not_preferred"
> ]
> },
> {
> "mcc": 310,
> "mnc": 260,
> "description": "T-Mobile",
> "status": [
> "available",
> "roaming",
> "not_forbidden",
> "not_preferred"
> ]
> }
> ],
> "radio_access_technology": [
> {
> "mcc": 313,
> "mnc": 100,
> "radio": "lte"
> },
> {
> "mcc": 311,
> "mnc": 480,
> "radio": "lte"
> },
> {
> "mcc": 310,
> "mnc": 410,
> "radio": "lte"
> },
> {
> "mcc": 310,
> "mnc": 260,
> "radio": "lte"
> }
> ]
> }
> root at OpenWrt:~#
>
>
> Not sure why it's all LTE and not 5G UWB...
>
> Probably need to put my modem into the correct mode.
>
>
>
>> On Mar 15, 2026, at 1:58 PM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
>>
>> Hi,
>>
>> I brought up the default image burned into my BPi-R4 Pro (which seems to be missing a bunch of modules to support modemmanager, as well as modemmanager itself). I installed these per:
>>
>> https://openwrt.org/docs/guide-user/network/wan/wwan/modemmanager
>>
>> But can't figure out how to populate the new 'interface' section in /etc/config/network per the instructions. Like the 'device' specifically. Or 'lowpower'.
>>
>> Also that page doesn't mention anything about ECM modems.
>>
>> I'm using T-Mobile 5G Home Internet in the US.
>>
>> root at OpenWrt:~# lsusb
>> Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.93 xhci-hcd xHCI Host Controller
>> Bus 001 Device 002: ID 1a86:8091 USB HUB
>> Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.93 xhci-hcd xHCI Host Controller
>> Bus 003 Device 001: ID 1d6b:0002 Linux 6.6.93 xhci-hcd xHCI Host Controller
>> Bus 003 Device 002: ID 2109:2822 VIA Labs, Inc. USB2.0 Hub
>> Bus 004 Device 001: ID 1d6b:0003 Linux 6.6.93 xhci-hcd xHCI Host Controller
>> Bus 004 Device 002: ID 2109:0822 VIA Labs, Inc. USB3.1 Hub
>> Bus 004 Device 003: ID 2c7c:0801 Quectel RM520N-GL
>> root at OpenWrt:~# lspci
>> root at OpenWrt:~#
>>
>> Some of the documentation says to use the ECM mode drivers, as well.
>>
>> Any help appreciated. My current network connection is going away in a few days and I need to get this working.
>>
>> Thanks
>>
>
More information about the openwrt-devel
mailing list