Better OpenWRT support

,

Hi.

I’m trying to improve OpenWRT support. If others have modems working successfully (I have two RM520N-GL’s that don’t yet work), I’m trying to collect:

  1. the .config section necessary to support QMI mode
  2. the .config section necessary to support MBIM mode
  3. tweaks to use USB or mPCI-e modes in that .config
  4. the /etc/config/network section to use a 5G or 4G/LTE carrier for the ISP in QMI mode
  5. same but for MBIM mode
  6. any useful tips/tricks that could be thrown into expect scripts to gather debugging/troubleshooting information

Please reply here or send them to me via email. I’m pprindeville on GitHub.

I have a card with the 302 firmware and a T-Mobile Business 5G SIM and see:

Jul 11 23:15:57 OpenWrt-r4 netifd: qmi0 (29600): Waiting for network registration
Jul 11 23:16:02 OpenWrt-r4 netifd: qmi0 (29600): Device stopped network registration. Restart network registration
Jul 11 23:16:13 OpenWrt-r4 netifd: qmi0 (29600): Network registration failed, registration timeout reached
Jul 11 23:16:13 OpenWrt-r4 netifd: qmi0 (31380): Stopping network qmi0
Jul 11 23:16:13 OpenWrt-r4 netifd: qmi0 (31380): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "qmi0" } (Permission denied)
Jul 11 23:16:13 OpenWrt-r4 netifd: Interface 'qmi0' is now down
Jul 11 23:16:13 OpenWrt-r4 netifd: Interface 'qmi0' is setting up now
Jul 11 23:16:13 OpenWrt-r4 netifd: qmi0 (31388): Waiting for SIM initialization
Jul 11 23:16:14 OpenWrt-r4 netifd: qmi0 (31388): Failed to parse message data
Jul 11 23:16:14 OpenWrt-r4 netifd: qmi0 (31388): PIN verification is disabled
Jul 11 23:16:14 OpenWrt-r4 netifd: qmi0 (31388): Setting PLMN to 310260
Jul 11 23:16:14 OpenWrt-r4 netifd: qmi0 (31388): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
Jul 11 23:16:48 OpenWrt-r4 netifd: qmi0 (31388): Waiting for network registration
Jul 11 23:16:53 OpenWrt-r4 netifd: qmi0 (31388): Device stopped network registration. Restart network registration
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31388): Network registration failed, registration timeout reached
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31688): Stopping network qmi0
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31688): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "qmi0" } (Permission denied)
Jul 11 23:17:04 OpenWrt-r4 netifd: Interface 'qmi0' is now down
Jul 11 23:17:04 OpenWrt-r4 netifd: Interface 'qmi0' is setting up now
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31696): Waiting for SIM initialization
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31696): Failed to parse message data
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31696): PIN verification is disabled
Jul 11 23:17:04 OpenWrt-r4 netifd: qmi0 (31696): Setting PLMN to 310260
Jul 11 23:17:05 OpenWrt-r4 netifd: qmi0 (31696): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..

and it just loops with the following network config:

config interface 'qmi0'
        option proto 'qmi'
        option device '/dev/cdc-wdm0'
        option apn 'fast.t-mobile.com'
        option auth 'none'
        option pdptype 'ipv4v6'
        option plmn '310260'
        option modes '5gnr,lte,umts'
        option dhcp '1'
        option autoconnect '1'
        option debug '1'

Thanks

Once again, forget about OpenWrt, QMI, MBIM, etc. for a while. Use a dumb terminal to troubleshoot your registration issue.

Follow the old topic: