76

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

~# find /sys -name wwan0mbim0
/sys/class/wwan/wwan0mbim0
/sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0/mhi0/wwan/wwan0/wwan0mbim0
~# find /sys -name net
/sys/class/net
/sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net
/sys/devices/platform/soc/15100000.ethernet/net
/sys/devices/platform/soc/15020000.switch/net
/sys/devices/virtual/net

77

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Dalej: pokaż

readlink -f /sys/class/usbmisc/wwan0mbim0
ls /sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/net

Której wersji openwrt używasz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

78 (edytowany przez MADRAFi 2025-06-14 21:10:03)

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

:~# readlink -f /sys/class/usbmisc/wwan0mbim0
/sys/class/usbmisc/wwan0mbim0
:~# ls /sys/devices/platform/soc/11300000.pcie/pci0000:00/0000:0
0:00.0/0000:01:00.0/net
phy0.1-ap0  phy0.2-ap0

skonfigurowane mam 3 sieci Wifi

phy0.0-ap0 - Wifi AP 2.4GHz
phy0.1-ap0 - Wifi AP 5Ghz
phy0.2-ap0 - Wifi AP 6Ghz


Openwrt oficjalny 24.10.1 stable


Model    Bananapi BPI-R4
Architecture    ARMv8 Processor rev 0
Target Platform    mediatek/filogic
Firmware Version    OpenWrt 24.10.1 r28597-0425664679 / LuCI openwrt-24.10 branch 25.161.59576~cb94dcc

79

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Niedobrze. Pokaż

cat /proc/net/dev
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

80

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

~# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:  257178    3045    0    0    0     0          0         0   257178    3045    0    0    0     0       0          0
  eth0: 71759220  462365    0 41050    0     0          0         0 11219516   56334    0    0    0     0       0          0
  eth1: 178324181  749417    0   18    0     1          0         0 1951508677 2129622    0    0    0     0       0          0
  eth2: 1961174250 2223170    0   57    0     0          0         0 231935776 1095053    0    0    0     0       0          0
   wan: 63700088  418794    0    0    0     0          0         0  9608968   48023    0    0    0     0       0          0
  lan1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  lan2:       0       0    0    0    0     0          0         0   538335    2901    0    0    0     0       0          0
  lan3:  215609    2521    0    0    0     0          0         0   803612    5393    0    0    0     0       0          0
br-lan: 226072468 1106831    0    0    0     0          0      3571 1962942658 2175330    0    0    0     0       0          0
br-wan: 1900131420 1162368    0    0    0     0          0         2 231935776 1095053    0    0    0     0       0          0
phy0.1-ap0:  818665    5565    0    0    0     0          0         0  1764810   10385    0    0    0     0       0          0
phy0.2-ap0: 2288398    8547    0    0    0     0          0         0  3767603   13745    0    0    0     0       0          0

81

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Nic z tego nie będzie. Nie tworzy się interfejs sieciowy, więc skrypty nie mają na czym uruchomić transmisji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

82

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

port wan jest przeniesiony do lan ( juz nie jest na zewnatrz)
eth2 jest teraz na zewnatrz do internetu ( sfp gpon 10gb)
eth1 lan sfp 10gb innego producenta

83

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Cezary napisał/a:

Nic z tego nie będzie. Nie tworzy się interfejs sieciowy, więc skrypty nie mają na czym uruchomić transmisji.

tez to widze. Tylko pytanie czy karta/ modem jest fakeowa czy to kwestia kernela ?

84

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Ehhh, masz za starą wersję systemu smile

Zobacz:

https://github.com/openwrt/openwrt/pull/18794

oraz

https://github.com/openwrt/openwrt/pull/18932

Czyli zainstaluj wersję rozwojową openwrt i powinien ruszyć.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

85 (edytowany przez MADRAFi 2025-06-15 01:23:31)

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Troche to trwalo ale w koncu udalo mi sie wrzucic najnowszy snapshot.

OpenWrt SNAPSHOT r30093-53b213b99b / LuCI Master 25.164.50141~85fde70

Wynik bez zmian.
Zauwazylem 1 rzecz w podlinkowanych przez ciebie requestach na githubie.

 0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device [17cb:0308]
    Subsystem: Qualcomm Technologies, Inc Device [17cb:5201]

Tam lspci zwraca subsystem z id 5201, ktory zostal dodany do openwrt.
U mnie nie ma tego subsystemu wypisanego, id tez jest krotsze.

0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308

Nadal nie ma interface'u sieciowego

~# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packe                                     ts errs drop fifo colls carrier compressed
    lo:   99898    1165    0    0    0     0          0         0    99898    11                                     65    0    0    0     0       0          0
  eth0:   17229     107    0    0    0     0          0         0   387515     8                                     96    0    0    0     0       0          0
sfp-lan: 1122468    5285    0    3    0     1          0         0  3811172    7                                     224    0    0    0     0       0          0
sfp-wan: 1398537    5125    0    0    0     0          0         0   953123    4                                     105    0    0    0     0       0          0
   wan:       0       0    0    0    0     0          0         0   123522     2                                     70    0    0    0     0       0          0
  lan1:       0       0    0    0    0     0          0         0        0                                            0    0    0    0     0       0          0
  lan2:       0       0    0    0    0     0          0         0   123522     2                                     70    0    0    0     0       0          0
  lan3:   16801     107    0    0    0     0          0         0   133731     3                                     40    0    0    0     0       0          0
br-lan: 1296403    6042    0    0    0     0          0       233  3875427    68                                     28    0    0    0     0       0          0
br-wan: 1318871    4976    0    0    0     0          0         1   953123    41                                     05    0    0    0     0       0          0
phy0.0-ap0:   88971     126    0    0    0     0          0         0   120669                                          270    0    0    0     0       0          0
phy0.2-ap0:  194859     892    0    0    0     0          0         0   283911                                          827    0    0    0     0       0          0
phy0.1-ap0:       0       0    0    0    0     0          0         0    18558                                           58    0    0    0     0       0          0

86

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Pokaż lspci -vv

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

87

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

o faktycznie teraz widac subsystem smile


0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc Device 0308
        Subsystem: Qualcomm Technologies, Inc Device 5201
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin ? routed to IRQ 137
        Region 0: Memory at 20200000 (64-bit, non-prefetchable) [size=4K]
        Region 2: Memory at 20201000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable+ Count=8/32 Maskable+ 64bit+
                Address: 0000000011280c00  Data: 0008
                Masking: ffffff80  Pending: 00000000
        Capabilities: [70] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 256 bytes, MaxReadReq 256 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 16GT/s, Width x2, ASPM L0s L1, Exit Latency L0s <1us, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 8GT/s (downgraded), Width x1 (downgraded)
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt- EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp+ ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR+ EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCap2: Supported Link Speeds: 2.5-16GT/s, Crosslink- Retimer+ 2Retimers+ DRS-
                LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1+
                         EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: Upstream Port
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [148 v1] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn- PerformEqu-
                LaneErrStat: 0
        Capabilities: [168 v1] Physical Layer 16.0 GT/s <?>
        Capabilities: [18c v1] Lane Margining at the Receiver
                PortCap: Uses Driver-
                PortSta: MargReady- MargSoftReady-
        Capabilities: [19c v1] Transaction Processing Hints
                No steering table available
        Capabilities: [228 v1] Latency Tolerance Reporting
                Max snoop latency: 0ns
                Max no snoop latency: 0ns
        Capabilities: [230 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=70us PortTPowerOnTime=0us
                L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=0us LTR1.2_Threshold=104448ns
                L1SubCtl2: T_PwrOn=28us
        Capabilities: [240 v1] Data Link Feature <?>
        Kernel driver in use: mhi-pci-generic

88

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Tej łatki nie dodali jeszcze do źródeł.  Albo czekasz albo kompilujesz sam caly system.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

89

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

spoko, jest gdzies opis jak zrobic kompilacje? Skad zrodla wziac?

90

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Z repozytorium openwrt... https://eko.one.pl/?p=openwrt-kompilacja tyle że nie robisz git checkout ... tylko zostajesz na gałęzi main. No i przed kompilacją musisz wrzucić w/w łatkę w źródła.

Pamiętaj że wersja rozwojowa się zmienia z godziny na godzinę. Może się kompilować, może się nie kompilować, za chwilę już może być inaczej, mogą zmienić źródła i nawet nie musi się to dać uruchomić. Naprawią za chwilę, jutro lub za miesiąc.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

91

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

madrafi napisał/a:

spoko, jest gdzies opis jak zrobic kompilacje? Skad zrodla wziac?

Przeportowałem to do sobie, dla 24.10. Będziesz sam kompilował czy chcesz sprawdzić mój obraz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

92 (edytowany przez MADRAFi 2025-06-15 16:12:52)

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Wlasnie mecze 2 kompilacje. sprawdze swoja oraz Twoja. Dam znac. Troche mi zajelo, nie kompilowalem kernela z 25 lat smile
Mozesz podac link do Twojej wersji z updatem? Na stronie widze obrazy z 31 maja

93

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

https://dl.eko.one.pl/test/bpi-r4/

Wszystko co trzeba jest już w obrazie. A już na pewno nie instaluj modułów z repo, co trzeba jest już w środku.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

94 (edytowany przez MADRAFi 2025-06-15 19:07:12)

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Ok na moim obrazie pojawily sie dodatkowe interfacey. Niestety cos pomieszalem i wkladki spf cos nie do konca dzialaly. niby byly widoczne ale nei bylo polaczenia.
Twoj testowy obraz ruszyl od kopa. Widze wwan0 i dostalem nawet odpowiedz ze pin nieprawidlowy.
DZieki wielki za pomoc. Teraz wgryzam sie dalej w konfiguracje.

Sprawdzilem pin w innym urzadzeniu dziala. Po wprowadzeniu tego samego pinu w openwrt wyskakuje pincode rejected.

Sun Jun 15 19:10:44 2025 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Jun 15 19:10:44 2025 daemon.notice netifd: wwan (13025): mbim[13025] Reading capabilities
Sun Jun 15 19:10:44 2025 kern.debug kernel: [ 2680.880476] mhi-pci-generic 0003:01:00.0: PME# disabled
Sun Jun 15 19:10:44 2025 kern.debug kernel: [ 2680.885804] mhi-pci-generic 0003:01:00.0: enabling bus mastering
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   devicetype: 0001 - embedded
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   cellularclass: 0001
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   voiceclass: 0001 - no-voice
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   simclass: 0002
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   dataclass: 8000003C
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   smscaps: 0003
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   controlcaps: 0001
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   maxsessions: 000F
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   deviceid: 868371050046883
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   firmwareinfo: RM520NGLAAR03A04M4G
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025):   hardwareinfo: RM520N-GL
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025): mbim[13025] Sending pin
Sun Jun 15 19:10:45 2025 daemon.notice netifd: wwan (13025): mbim[13025] Unable to verify PIN
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.741050] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.747614] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.754148] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.760681] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.767211] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.773737] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.780263] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.786789] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.793306] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.799837] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.806358] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.812874] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.819394] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.825921] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.832436] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.838955] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
Sun Jun 15 19:10:47 2025 kern.debug kernel: [ 2683.845535] mhi-pci-generic 0003:01:00.0: PME# enabled
Sun Jun 15 19:11:00 2025 daemon.notice netifd: wwan (13025): ERROR: mbim message timeout
Sun Jun 15 19:11:00 2025 kern.debug kernel: [ 2696.278412] mhi-pci-generic 0003:01:00.0: PME# disabled
Sun Jun 15 19:11:00 2025 kern.debug kernel: [ 2696.283653] mhi-pci-generic 0003:01:00.0: enabling bus mastering
Sun Jun 15 19:11:00 2025 user.notice root: mbim bringup failed, retry in 15s
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.829919] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x030817cb
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.836485] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.843022] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.849560] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.856086] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.862603] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.869127] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.875642] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.882161] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.888681] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.895196] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
Sun Jun 15 19:11:02 2025 kern.debug kernel: [ 2698.901714] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x520117cb
Sun Jun 15 19:11:03 2025 kern.debug kernel: [ 2698.908235] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
Sun Jun 15 19:11:03 2025 kern.debug kernel: [ 2698.914750] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
Sun Jun 15 19:11:03 2025 kern.debug kernel: [ 2698.921268] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
Sun Jun 15 19:11:03 2025 kern.debug kernel: [ 2698.927789] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
Sun Jun 15 19:11:03 2025 kern.debug kernel: [ 2698.934377] mhi-pci-generic 0003:01:00.0: PME# enabled
Sun Jun 15 19:11:15 2025 daemon.notice netifd: wwan (13044): mbim[13044] Stopping network
Sun Jun 15 19:11:15 2025 daemon.notice netifd: wwan (13044): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Jun 15 19:11:15 2025 daemon.notice netifd: Interface 'wwan' is now down

Czy to mozliwe ze karta ma problem z antena? Zle podlaczenie ? Chcialem uzyc 2 anten zamiast 4.

https://forums.quectel.com/uploads/default/original/2X/6/6e5014a137650754efaa9faf25282de423a46b2e.jpeg
Mam podlaczone 2 zaznaczone na czerwono

95

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Możesz zdjąć pin z karty sim i zobaczyć czy działa?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

96

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Jeżeli nie to usuń pin z /etc/config/network, zrób ifdown wwan i zobacz czy działa jedno z

uqmi -m -d /dev/wwan0mbim0 --uim-verify-pin1 <tutaj pin>
uqmi -m -d /dev/wwan0mbim0 --verify-pin1  <tutaj pin>
umbim -d /dev/wwan0mbim0  pinstate
umbim -d /dev/wwan0mbim0  unlock  <tutaj pin>
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

97

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

wlasnie zaczalem testowac komendy i jest znaczaca zmiana. Teraz bez pinu widze np to

~# umbim -d /dev/wwan0mbim0 home
  provider_id: 26003
  provider_name: nju
  cellularclass: 0001 - gsm
  rssi: 0063
  errorrate: 0063

98

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Jak zdjąłeś pin to wywal go z konfiga i po prostu zrestartuj router.
Nie wykonuj ręcznie poleceń umbim to potrafi to "zawiesić" interfejs, zwłaszcza jak w tle próbuje się połączyć.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

99

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

Nie rejestruje sie do sieci sad

Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7985): mbim[7985] Stopping network
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7985): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: Interface 'wwan' is now down
Sun Jun 15 21:42:53 2025 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): mbim[7993] Reading capabilities
Sun Jun 15 21:42:53 2025 kern.debug kernel: [  163.991691] mhi-pci-generic 0003:01:00.0: PME# disabled
Sun Jun 15 21:42:53 2025 kern.debug kernel: [  163.996980] mhi-pci-generic 0003:01:00.0: enabling bus mastering
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   devicetype: 0001 - embedded
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   cellularclass: 0001
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   voiceclass: 0001 - no-voice
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   simclass: 0002
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   dataclass: 8000003C
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   smscaps: 0003
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   controlcaps: 0001
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   maxsessions: 000F
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   deviceid: 868371050046883
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   firmwareinfo: RM520NGLAAR03A04M4G
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   hardwareinfo: RM520N-GL
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): mbim[7993] Checking pin
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): required pin: 3 - pin2
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): remaining attempts: 3
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): mbim[7993] Checking subscriber
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   readystate: 0001 - initialized
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   simiccid: 8948032122131271443F
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   subscriberid: 260032113127144
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): mbim[7993] Register with network
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   nwerror: 0000 - unknown
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   registerstate: 0001 - deregistered
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   registermode: 0001 - automatic
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   availabledataclasses: 0000 - (null)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   currentcellularclass: 0001 - gsm
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   provider_id: (null)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   provider_name: (null)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   roamingtext: (null)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993): mbim[7993] Subscriber registration failed (code 1)
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   sessionid: 0
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   activationstate: 0003 - deactivated
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   voicecallstate: 0000 - none
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   nwerror: 0000 - unknown
Sun Jun 15 21:42:53 2025 daemon.notice netifd: wwan (7993):   iptype: 0000 - default
Sun Jun 15 21:42:53 2025 user.notice root: mbim bringup failed, retry in 15s

100

Odp: Modem 5G RM520N-GL (M.2) na USB pod OpenWrt

ok, teraz to już nie problem ze skryptami tylko faktem żeby chciał się zarejestrować u operatora. Skrypty dalej nie pójdą jak z odczytu nie okaże się że modem jest zarejestrowany.

Nie wiem czy wiesz, ale wiele osób na Ciebie liczy - masz modem na PCI, wiec oczekujemy że po uruchomieniu sprawdzisz speedtesty i powiesz jaką ma wydajność po PCI. No po USB to już znamy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.