Setting up a Quectel RM520GL-N on a Banana Pi R4-Pro

Philip Prindeville philipp_subx at redfish-solutions.com
Sun Mar 15 15:50:43 PDT 2026


Reseated the SIM card.

Sun Mar 15 16:46:33 2026 daemon.notice netifd: Interface 'qmi' is setting up now
Sun Mar 15 16:46:33 2026 daemon.notice netifd: qmi (6753): Waiting for SIM initialization
Sun Mar 15 16:46:33 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:46:41 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:46:50 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:46:58 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:06 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:14 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:23 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:31 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:39 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:48 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:56 2026 daemon.notice netifd: qmi (6753): SIM in illegal state - Power-cycling SIM
Sun Mar 15 16:47:59 2026 daemon.notice netifd: qmi (6839): Stopping network qmi
Sun Mar 15 16:47:59 2026 daemon.notice netifd: qmi (6839): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "qmi" } (Permission denied)
Sun Mar 15 16:47:59 2026 daemon.notice netifd: Interface 'qmi' is now down

> On Mar 15, 2026, at 3:51 PM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
> 
> Didn't notice these before:
> 
> Sun Mar 15 15:49:20 2026 daemon.notice netifd: qmi (7922): SIM in illegal state - Power-cycling SIM
> 
> 
> 
>> On Mar 15, 2026, at 3:37 PM, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
>> 
>> 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'
>> ...
> 




More information about the openwrt-devel mailing list