Setting up a Quectel RM520GL-N on a Banana Pi R4-Pro
Luca Olivetti
luca at ventoso.org
Mon Mar 16 14:54:39 PDT 2026
El 16/3/26 a les 21:46, Philip Prindeville via openwrt-devel ha escrit:
> 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'
>
I cannot be of much more help (I remember that getting everything
working was a pain) but the wiki says not to use ipv4v6 unless you're
absolutely sure the carrier provides both.
This is my configuration (I did it through luci)
config interface 'wwan'
option proto 'qmi'
option device '/dev/cdc-wdm0'
option apn 'movistar.es'
option auth 'pap'
option pdptype 'ipv4'
option username 'MOVISTAR'
option password 'MOVISTAR'
option metric '2'
(dhcp is the default, metric is because at home I used a lan port to
simulate the wan).
Regarding your question about wwan0 being POINTOPOINT and dhcp, I can
confirm that it's POINTOPOINT here too, but it gets an address (in luci
I see both a wwan interface with no address and a virtual wwan_4 with an
ipv4 public address, both using the wwan0 device).
root at van:~# 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 b4:1c:30:c1:43:4e
brd ff:ff:ff:ff:ff:ff
3: lan4 at eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\
link/ether b4:1c:30:c1:43:4e brd ff:ff:ff:ff:ff:ff
4: 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 b4:1c:30:c1:43:4e brd ff:ff:ff:ff:ff:ff
5: lan2 at eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
master br-lan state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\
link/ether b4:1c:30:c1:43:4e brd ff:ff:ff:ff:ff:ff
6: wan at eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
state LOWERLAYERDOWN mode DEFAULT group default qlen 1000\ link/ether
b4:1c:30:c1:43:4f brd ff:ff:ff:ff:ff:ff
7: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
fq_codel state UNKNOWN mode DEFAULT group default qlen 1000\ link/none
8: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode
DEFAULT group default qlen 1000\ link/ether ba:c6:74:43:40:e3 brd
ff:ff:ff:ff:ff:ff
9: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP mode DEFAULT group default qlen 1000\ link/ether
b4:1c:30:c1:43:4e brd ff:ff:ff:ff:ff:ff
11: phy0-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
master br-lan state UP mode DEFAULT group default qlen 1000\
link/ether b4:1c:30:c1:43:50 brd ff:ff:ff:ff:ff:ff
12: phy1-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
master br-lan state UP mode DEFAULT group default qlen 1000\
link/ether b4:1c:30:c1:43:51 brd ff:ff:ff:ff:ff:ff
13: phy1-ap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
master br-lan state UP mode DEFAULT group default qlen 1000\
link/ether b6:1c:30:c1:43:51 brd ff:ff:ff:ff:ff:ff permaddr
b4:1c:30:c1:43:51
23: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state
UNKNOWN mode DEFAULT group default qlen 1000\ link/none
Bye
--
Luca
More information about the openwrt-devel
mailing list