[BPI-R4] FM350 / Asiarf MT7915

I’m replacing my 5G router from my provider with R4 , do I need to compile my own openwrt firmware and load kernel module needed for FM350 and mt7915 to work or snapshots will work out of the box for these cards ?

If you have answer please write your knowledge into the wiki:

It is important to know which slot do you want to use. I think you want to use the M.2 on the top side?

For this topic, I may found an answer for your question using the search “right top corner”:

grafik

today I received my R4 , asiarf 7915NP1 and it is working well , sfp tested with old Cisco SFP

[ 344.885313] sfp sfp1: module CISCO FTLF8519P3BNL-CS rev A sn FNS19140R5L dc 150331 [ 344.894738] mtk_soc_eth 15100000.ethernet eth2: switched to inband/1000base-x link mode

1 Like

FM350 arrived today , using latest snapshot

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-mtk-t7xx:
  •  kernel (= 6.6.47~2fcfcca39c110f2e13a201fe126d6c72-r1)
    
  • opkg_install_cmd: Cannot install package kmod-mtk-t7xx.

Better update your snapshot image since snapshot kernel updates very frequently, and if it is updated this would happen. Also you can try to compile the kernel by yourself.

sorry but compiling is out of my league…

> root@OpenWrt:/dev# dmesg | grep -i "mtk_t7xx"
> [   10.715737] mtk_t7xx 0003:01:00.0: assign IRQ: got 112
> [   10.720905] mtk_t7xx 0003:01:00.0: enabling device (0000 -> 0002)
> [   10.727047] mtk_t7xx 0003:01:00.0: enabling bus mastering
> [   74.711266] mtk_t7xx 0003:01:00.0: MD handshake timeout
> [   74.716500] mtk_t7xx 0003:01:00.0: Boot Handshake failure

got my fm350 today and i cant get it to work with latest snapshot.hope someone can guide me.

need to power off first then the modem get detected…

root@OpenWrt:~# mmcli -m 0
  ---------------------------------
  General   |                 path: /org/freedesktop/ModemManager1/Modem/0
            |            device id: 8553bb39e35e1c9c170443698f6cca5a310e50de
  ---------------------------------
  Hardware  |         manufacturer: generic
            |                model: MBIM [14C3:4D75]
            |    firmware revision: 81600.0000.00.29.18.16_GC
            |                       C28
            |         h/w revision: V1.0.6
            |            supported: gsm-umts, lte, 5gnr
            |              current: gsm-umts, lte, 5gnr
            |         equipment id: 354174400131202
  ---------------------------------
  System    |               device: /sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0
            |              physdev: /sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0
            |              drivers: mtk_t7xx
            |               plugin: generic
            |         primary port: wwan0mbim0
            |                ports: wwan0 (net), wwan0at0 (at), wwan0mbim0 (mbim)
  ---------------------------------
  Status    |                 lock: sim-pin2
            |       unlock retries: sim-pin2 (3)
            |                state: connected
            |          power state: on
            |          access tech: lte, 5gnr
            |       signal quality: 58% (cached)

after few minutes of using with 5G mode , r4 constantly rebooting edit : kernel panic

root@OpenWrt:/# [  204.463846] NOHZ tick-stop error: local softirq work is pendi                                                                                                                                                             ng, handler #08!!!
[  204.498342] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.505749] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.522842] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.532842] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.562857] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.582842] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.595340] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.625342] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  204.630345] NOHZ tick-stop error: local softirq work is pending, handler #08!                                                                                                                                                             !!
[  287.861909] skbuff: skb_under_panic: text:ffffffc080767730 len:-65292 put:149                                                                                                                                                              head:ffffff80c810b000 data:ffffff7fc811afff tail:0xc9 end:0xec0 dev:wwan0
[  287.875519] ------------[ cut here ]------------
[  287.880137] Kernel BUG at skb_panic+0x48/0x4c [verbose debug info unavailable                                                                                                                                                             ]
[  287.887359] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP
[  287.893442] Modules linked in: rt2800usb(O) rt2800lib(O) pppoe ppp_async nft_                                                                                                                                                             fib_inet nf_flow_table_inet rt2x00usb(O) rt2x00lib(O) pppox ppp_generic nft_reje                                                                                                                                                             ct_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numge                                                                                                                                                             n nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_                                                                                                                                                             fib_ipv4 nft_fib nft_ct nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrac                                                                                                                                                             k mtk_t7xx mt7996e(O) mt7915e(O) mt76_connac_lib(O) mt76(O) mac80211(O) cfg80211                                                                                                                                                             (O) wwan usbserial slhc sfp rtc_pcf8563 nfnetlink nf_reject_ipv6 nf_reject_ipv4                                                                                                                                                              nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 mdio_i2c libcrc32c compat(O) at24 cr                                                                                                                                                             ypto_safexcel pwm_fan i2c_mux_pca954x i2c_mux sha512_arm64 sha1_ce sha1_generic                                                                                                                                                              seqiv md5 geniv des_generic libdes authencesn authenc leds_gpio xhci_plat_hcd xh                                                                                                                                                             ci_pci xhci_mtk_hcd xhci_hcd gpio_button_hotplug(O) usbcore usb_common aquantia
[  287.970030] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G           O       6.6.45

hope someone could help me here , so i tried new snapshots today , sometimes it takes 10-20 minutes before r4 will experience kernel panic will doing speedtesting on my 3 devices conneted to r4

[   22.894881] mtk_t7xx 0003:01:00.0: Packet drop on channel 0x100a, port not found
[   27.698024] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   28.856590] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   28.894956] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   28.894962] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.267697] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.407202] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.407208] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.493214] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.603202] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   29.688209] NOHZ tick-stop error: local softirq work is pending, handler #08!!!
[   88.920730] wwan wwan0 wwan0: TX queue 0 is full
[   88.925360] wwan wwan0 wwan0: TX queue 0 is full
[   88.929969] wwan wwan0 wwan0: TX queue 0 is full
[   88.934591] wwan wwan0 wwan0: TX queue 0 is full
[   88.939199] wwan wwan0 wwan0: TX queue 0 is full
[   88.943824] wwan wwan0 wwan0: TX queue 0 is full
[   88.948432] wwan wwan0 wwan0: TX queue 0 is full
[   88.953046] wwan wwan0 wwan0: TX queue 0 is full
[   88.957654] wwan wwan0 wwan0: TX queue 0 is full
[   89.990457] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 1070 ms
[   91.030488] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 2110 ms
[   91.990518] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 3070 ms
[   93.030549] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 4110 ms
[   93.990577] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 5070 ms
[   95.030610] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 6110 ms
[   95.990636] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 7070 ms
[   97.030666] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 8110 ms
[   97.990694] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 9070 ms
[   99.030721] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 10110 ms
[   99.990750] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 11070 ms
[  101.030779] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 12110 ms
[  101.990807] wwan wwan0 wwan0: NETDEV WATCHDOG: CPU: 2: transmit queue 0 timed out 13070 ms
[  102.303752] mtk_t7xx 0003:01:00.0: Could not unmask the UL interrupt. DPMAIF_AO_UL_AP_L2TIMR0 is 0xfffe1
[  102.313258] wwan wwan0 wwan0: TX queue 0 is full
[  102.492744] skbuff: skb_under_panic: text:ffffffc08077c45c len:-65269 put:149 head:ffffff80c805b000 data:ffffff7fc806afff tail:0xd3 end:0xec0 dev:wwan0

I’ve heard that fm350’s pcie mode has some issue, but I don’t have one to test… Maybe try usb mode?

fm350 doesnt show up in lspci both on openwrt and ubuntu , but its detected by modemmanager

root@BPI-R4:~# lspci
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0000:01:00.0 Unclassified device [0002]: MEDIATEK Corp. MT7915E 802.11ax PCI Exp               ress Wireless Network Adapter
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0003:01:00.0 Wireless controller [0d40]: MEDIATEK Corp. Device 4d75 (rev 01)

i want to to convert it to usbmode but it gives me error