Setting up a Quectel RM520GL-N on a Banana Pi R4-Pro
Philip Prindeville
philipp_subx at redfish-solutions.com
Mon Mar 16 13:54:12 PDT 2026
> [snip]
>
>
> Let me change the device and reboot....
>
>
> [ 46.982089] PPTP driver version 0.8.5
> [ 46.987858] qmi_wwan 4-1.1:1.4: cdc-wdm0: USB WDM device
> [ 46.994152] qmi_wwan 4-1.1:1.4 wwan0: register 'qmi_wwan' at usb-11200000.usb-1.1, WWAN/QMI device, 72:5a:bf:78:69:5b
> [ 47.004849] usbcore: registered new interface driver qmi_wwan
> [ 47.011635] l2tp_ppp: PPPoL2TP kernel driver, V2.0
> [ 47.017573] kmodloader: done loading kernel modules from /etc/modules.d/*
> [ 51.977557] mtk_soc_eth 15100000.ethernet eth0: Link is Down
> [ 52.435647] mtk_ppe: roaming work has been deactivated
> [ 52.450949] mtk_ppe: roaming work has been activated
> [ 52.455956] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
> [ 52.464157] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
> [ 52.466554] mt7530-mmio 15020000.switch lan0: configuring for phy/internal link mode
> [ 52.482544] br-lan: port 1(lan0) entered blocking state
> [ 52.487820] br-lan: port 1(lan0) entered disabled state
> [ 52.493076] mt7530-mmio 15020000.switch lan0: entered allmulticast mode
> [ 52.499732] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
> [ 52.506718] mt7530-mmio 15020000.switch lan0: entered promiscuous mode
> [ 52.517930] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
> [ 52.526486] br-lan: port 2(lan3) entered blocking state
> [ 52.531711] br-lan: port 2(lan3) entered disabled state
> [ 52.536973] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
> [ 52.543731] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
> [ 52.552389] mtk_soc_eth 15100000.ethernet eth2: configuring for fixed/10gbase-r link mode
> [ 52.604584] mtk_soc_eth 15100000.ethernet eth2: Link is Up - 10Gbps/Full - flow control rx/tx
> [ 52.631143] mxl862xx mdio-bus:10 mxl_lan0: configuring for phy/internal link mode
> [ 52.639680] br-lan: port 3(mxl_lan0) entered blocking state
> [ 52.645286] br-lan: port 3(mxl_lan0) entered disabled state
> [ 52.650965] mxl862xx mdio-bus:10 mxl_lan0: entered allmulticast mode
> [ 52.657365] mtk_soc_eth 15100000.ethernet eth2: entered allmulticast mode
> [ 52.896975] mxl862xx mdio-bus:10 mxl_lan0: entered promiscuous mode
> [ 52.928770] mxl862xx mdio-bus:10: mxl862xx_port_vlan_add: port:0 setting VLAN:1 with vlan_filtering disabled
> [ 53.052526] mxl862xx mdio-bus:10 mxl_lan1: configuring for phy/internal link mode
> [ 53.078205] br-lan: port 4(mxl_lan1) entered blocking state
> [ 53.083784] br-lan: port 4(mxl_lan1) entered disabled state
> [ 53.089413] mxl862xx mdio-bus:10 mxl_lan1: entered allmulticast mode
> [ 53.312378] mxl862xx mdio-bus:10 mxl_lan1: entered promiscuous mode
> [ 53.337908] mxl862xx mdio-bus:10: mxl862xx_port_vlan_add: port:1 setting VLAN:1 with vlan_filtering disabled
> [ 53.456005] mxl862xx mdio-bus:10 mxl_lan2: configuring for phy/internal link mode
> [ 53.481722] br-lan: port 5(mxl_lan2) entered blocking state
> [ 53.487362] br-lan: port 5(mxl_lan2) entered disabled state
> [ 53.492976] mxl862xx mdio-bus:10 mxl_lan2: entered allmulticast mode
> [ 53.736843] mxl862xx mdio-bus:10 mxl_lan2: entered promiscuous mode
> [ 53.762396] mxl862xx mdio-bus:10: mxl862xx_port_vlan_add: port:2 setting VLAN:1 with vlan_filtering disabled
> [ 53.879507] mxl862xx mdio-bus:10 mxl_lan3: configuring for phy/internal link mode
> [ 53.905220] br-lan: port 6(mxl_lan3) entered blocking state
> [ 53.910814] br-lan: port 6(mxl_lan3) entered disabled state
> [ 53.916421] mxl862xx mdio-bus:10 mxl_lan3: entered allmulticast mode
> [ 54.177612] mxl862xx mdio-bus:10 mxl_lan3: entered promiscuous mode
> [ 54.203204] mxl862xx mdio-bus:10: mxl862xx_port_vlan_add: port:3 setting VLAN:1 with vlan_filtering disabled
> [ 54.280501] mxl862xx mdio-bus:10 mxl_lan5: configuring for fixed/usxgmii link mode
> [ 54.288591] mxl862xx mdio-bus:10 mxl_lan5: Link is Up - 10Gbps/Full - flow control off
> [ 54.288841] br-lan: port 7(mxl_lan5) entered blocking state
> [ 54.302078] br-lan: port 7(mxl_lan5) entered disabled state
> [ 54.307664] mxl862xx mdio-bus:10 mxl_lan5: entered allmulticast mode
> [ 54.587274] mxl862xx mdio-bus:10 mxl_lan5: entered promiscuous mode
> [ 54.612802] mxl862xx mdio-bus:10: mxl862xx_port_vlan_add: port:12 setting VLAN:1 with vlan_filtering disabled
> [ 54.678196] br-lan: port 7(mxl_lan5) entered blocking state
> [ 54.683761] br-lan: port 7(mxl_lan5) entered forwarding state
> [ 54.694311] mxl862xx mdio-bus:10 mxl_lan5: Link is Down
> [ 55.081162] Aeonsemi AS21xxx mdio-bus:18: Firmware Version: 1.9.1
> [ 55.087573] mxl862xx mdio-bus:10 mxl_lan5: PHY [mdio-bus:18] driver [Aeonsemi AS21xxx] (irq=POLL)
> [ 55.096443] mxl862xx mdio-bus:10 mxl_lan5: configuring for phy/10gbase-r link mode
> [ 55.104478] mxl862xx mdio-bus:10: dsa mux: switch to channel1
> [ 55.110486] br-lan: port 7(mxl_lan5) entered disabled state
> [ 55.501175] Aeonsemi AS21xxx mdio-bus:1c: Firmware Version: 1.9.1
> [ 55.507523] mtk_soc_eth 15100000.ethernet eth1: PHY [mdio-bus:1c] driver [Aeonsemi AS21xxx] (irq=POLL)
> [ 55.516827] mtk_soc_eth 15100000.ethernet eth1: configuring for phy/10gbase-r link mode
> [ 55.536892] br-wan: port 1(eth1) entered blocking state
> [ 55.542129] br-wan: port 1(eth1) entered disabled state
> [ 55.547378] mtk_soc_eth 15100000.ethernet eth1: entered allmulticast mode
> [ 55.554246] mtk_soc_eth 15100000.ethernet eth1: entered promiscuous mode
> [ 56.122214] mt7530-mmio 15020000.switch lan0: Link is Up - 1Gbps/Full - flow control rx/tx
> [ 56.122242] br-lan: port 1(lan0) entered blocking state
> [ 56.135727] br-lan: port 1(lan0) entered forwarding state
> [ 58.692257] Per-port-per-queue mode is going to be enabled !
> [ 58.698000] PPPQ use qid 3~14 (scheduler 0).
>
>
> And what's not on the console:
>
>
> Mon Mar 16 14:37:10 2026 daemon.notice [2851]: <msg> [device /sys/devices/platform/soc/11200000.usb/usb4/4-1/4-1.1] creating modem with plugin 'quectel' and '2' ports
> Mon Mar 16 14:37:10 2026 daemon.warn [2851]: <wrn> [plugin/quectel] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
> Mon Mar 16 14:37:10 2026 daemon.warn [2851]: <wrn> [base-manager] couldn't create modem for device '/sys/devices/platform/soc/11200000.usb/usb4/4-1/4-1.1': Failed to find primary AT port
> Mon Mar 16 14:37:11 2026 daemon.notice netifd: qmi (3842): "No effect"
> Mon Mar 16 14:37:13 2026 daemon.info wsdd2: samba36/4 or ksmbd is not running
> Mon Mar 16 14:37:13 2026 daemon.info procd: - init complete -
> Mon Mar 16 14:37:16 2026 daemon.notice netifd: qmi (3842): Failed to parse message data
> Mon Mar 16 14:37:16 2026 daemon.notice netifd: qmi (3842): SIM in illegal state - Power-cycling SIM
> Mon Mar 16 14:37:22 2026 daemon.warn odhcpd[2467]: No default route present, overriding ra_lifetime to 0!
> Mon Mar 16 14:37:25 2026 daemon.notice netifd: qmi (3842): Failed to parse message data
> Mon Mar 16 14:37:25 2026 daemon.notice netifd: qmi (3842): PIN verification is disabled
> Mon Mar 16 14:37:25 2026 daemon.notice netifd: qmi (3842): Setting PLMN to 310260
> Mon Mar 16 14:37:25 2026 daemon.notice netifd: qmi (3842): Device does not support 802.3 mode. Informing driver of raw-ip only for wwan0 ..
>
>
> root at OpenWrt:~# ip -0 -o link show
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\ link/ether e6:3d:2a:46:fc:e6 brd ff:ff:ff:ff:ff:ff
> 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br-wan state DOWN mode DEFAULT group default qlen 1000\ link/ether c6:74:75:69:41:29 brd ff:ff:ff:ff:ff:ff
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 5: lan0 at eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP mode DEFAULT group default qlen 1000\ link/ether e6:3d:2a:46:fc:e6 brd ff:ff:ff:ff:ff:ff
> 6: lan3 at eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether e6:3d:2a:46:fc:e6 brd ff:ff:ff:ff:ff:ff
> 7: mxl_lan0 at eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 8: mxl_lan1 at eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 9: mxl_lan2 at eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 10: mxl_lan3 at eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 11: mxl_lan5 at eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state DOWN mode DEFAULT group default qlen 1000\ link/ether a6:76:5b:7e:81:d9 brd ff:ff:ff:ff:ff:ff
> 12: gre0 at NONE: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/gre 0.0.0.0 brd 0.0.0.0
> 13: gretap0 at NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
> 14: erspan0 at NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
> 15: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/none
> 16: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000\ link/ether e6:3d:2a:46:fc:e6 brd ff:ff:ff:ff:ff:ff
> 17: br-wan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000\ link/ether c6:74:75:69:41:29 brd ff:ff:ff:ff:ff:ff
>
>
> Looks like the documentation here:
>
> https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle
>
> Isn't exactly right. And this part of my /etc/config/network mismatches:
>
> config device
> option name 'br-wan'
> option type 'bridge'
> list ports 'eth1'
>
> config interface 'wan'
> option device 'br-wan'
> option proto 'dhcp'
>
> config interface 'wan6'
> option device 'br-wan'
> option proto 'dhcpv6'
>
> config interface 'WWAN'
> option proto 'dhcp'
> option device 'usb0'
>
> config interface 'WWAN6'
> option proto 'dhcpv6'
> option device 'usb0'
> option reqaddress 'try'
> option reqprefix 'auto'
>
> config interface 'WWAN_Q'
> option proto 'dhcp'
> option device 'wwan0_1'
>
> config interface 'WWAN6_Q'
> option proto 'dhcpv6'
> option device 'wwan0_1'
> option reqaddress 'try'
> option reqprefix 'auto'
>
> config interface 'qmi'
> option proto 'qmi'
> option device '/dev/cdc-wdm0'
> ##option device '/sys/devices/platform/soc/11200000.usb/usb4/4-1/4-1.1'
> option apn 'fast.t-mobile.com'
> option auth 'none'
> option pdptype 'ipv4v6'
> ##option pdptype 'ipv4'
> ##option apntype 'default,supl,mms'
> option plmn '310260'
> option modes '5gnr,lte,umts'
> option dhcp '1'
> option autoconnect '1'
>
>
> Guessing I need to add "list ports wwan0" to "config device/option name br-wan".
>
> Where is all of this other stuff being generated by? What don't I need?
>
> Thanks
>
Ah... Didn't pay enough attention:
15: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000\ link/none
That's a raw-ip interface. So... how do I get DHCP to work on it?
More information about the openwrt-devel
mailing list