Banana Pi BPI-R4 Wifi 7 router board with MediaTek MT7988A (Filogic 880),4G RAM and 8G eMMC

Are you sure key-b slot is working before you’ve done clk_summary? The pcie p2 clocks are unused in your output

Installed the card into the slot this time…

root@OpenWrt:~# cat /sys/kernel/debug/clk/clk_summary
                                 enable  prepare  protect                                duty
   clock                          count    count    count        rate   accuracy phase  cycle
---------------------------------------------------------------------------------------------
 pcf8563-clkout                       0        0        0       32768          0     0  50000
 clkxtal                             25       25        0    40000000          0     0  50000
    msdcpll                           0        0        0   400000000          0     0  50000
       cb_msdc_400m                   0        0        0   400000000          0     0  50000
          emmc_400m_sel               0        0        0   400000000          0     0  50000
             emmc_400m                0        0        0   400000000          0     0  50000
                infra_fmsdc400_o       0        0        0   400000000          0     0  50000
                   infra_f_fmsdc400       0        0        0   400000000          0     0  50000
    usxgmiipll                        0        0        0   644531250          0     0  50000
    ccipll2_b                         1        1        0   900000000          0     0  50000
       mcu_bus_div_sel                1        1        0   900000000          0     0  50000
    arm_b                             1        1        0  1500000000          0     0  50000
       mcu_arm_div_sel                1        1        0  1500000000          0     0  50000
    sgmpll                            1        1        0   325000000          0     0  50000
       cb_sgm_325m                    2        2        0   325000000          0     0  50000
          macsec_sel                  0        0        0   325000000          0     0  50000
          sgm_1_sel                   1        1        0   325000000          0     0  50000
          sgm_0_sel                   1        1        0   325000000          0     0  50000
    wedmcupll                         0        0        0   208000000          0     0  50000
       cb_wedmcu_208m                 0        0        0   208000000          0     0  50000
    net2pll                           7        7        0   800000000          0     0  50000
       cb_net2_800m                   2        2        0   800000000          0     0  50000
          ck_npu_sel_cm_tops_sel       0        0        0   800000000          0     0  50000
          npu_tops_sel                0        0        0   800000000          0     0  50000
          netsys_mcu_sel              1        1        0   800000000          0     0  50000
             netsys_wed_mcu           3        3        0   800000000          0     0  50000
                ethwarp_wocpu2_en       1        1        0   800000000          0     0  50000
                ethwarp_wocpu1_en       1        1        0   800000000          0     0  50000
                ethwarp_wocpu0_en       1        1        0   800000000          0     0  50000
          netsys_2x_sel               1        1        0   800000000          0     0  50000
             netsys_2x                1        1        0   800000000          0     0  50000
                ethdma_fe_en          1        1        0   800000000          0     0  50000
       cb_net2_d2                     2        2        0   400000000          0     0  50000
          netsys_warp_sel             1        1        0   400000000          0     0  50000
          netsys_tops_400m_sel        0        0        0   400000000          0     0  50000
          netsys_sel                  1        1        0   400000000          0     0  50000
       cb_net2_d4                     1        1        0   200000000          0     0  50000
          eth_sys_200m_sel            1        1        0   200000000          0     0  50000
       net2_d4_d4                     1        1        0    50000000          0     0  50000
          eth_refck_50m_sel           1        1        0    50000000          0     0  50000
       net2_d4_d8                     1        1        0    25000000          0     0  50000
          eth_mii_sel                 1        1        0    25000000          0     0  50000
       cb_net2_d6                     4        4        0   133333333          0     0  50000
          pextp_tl_ck_p3_sel          1        1        0   133333333          0     0  50000
             infra_pcie_ck_occ_p3       1        1        0   133333333          0     0  50000
                infra_pcie_gfmux_tl_o_p3_sel       1        1        0   133333333          0     0  50000
                   infra_pcie_gfmux_tl_ck_p3       1        1        0   133333333          0     0  50000
          pextp_tl_ck_p2_sel          1        1        0   133333333          0     0  50000
             infra_pcie_ck_occ_p2       1        1        0   133333333          0     0  50000
                infra_pcie_gfmux_tl_o_p2_sel       1        1        0   133333333          0     0  50000
                   infra_pcie_gfmux_tl_ck_p2       1        1        0   133333333          0     0  50000
          pextp_tl_ck_p1_sel          1        1        0   133333333          0     0  50000
             infra_pcie_ck_occ_p1       1        1        0   133333333          0     0  50000
                infra_pcie_gfmux_tl_o_p1_sel       1        1        0   133333333          0     0  50000
                   infra_pcie_gfmux_tl_ck_p1       1        1        0   133333333          0     0  50000
          pextp_tl_ck_sel             1        1        0   133333333          0     0  50000
             infra_pcie_ck_occ_p0       1        1        0   133333333          0     0  50000
                infra_pcie_gfmux_tl_o_p0_sel       1        1        0   133333333          0     0  50000
                   infra_pcie_gfmux_tl_ck_p0       1        1        0   133333333          0     0  50000
       cb_net2_d8                     0        0        0   100000000          0     0  50000
          da_xtp_glb_p3_sel           0        0        0   100000000          0     0  50000
          da_xtp_glb_p2_sel           0        0        0   100000000          0     0  50000
          da_xtp_glb_p1_sel           0        0        0   100000000          0     0  50000
          da_xtp_glb_p0_sel           0        0        0   100000000          0     0  50000
    net1pll                           7        7        0  2500000000          0     0  50000
       cb_net1_d4                     2        2        0   625000000          0     0  50000
          mcusys_backup_625m_sel       1        1        0   625000000          0     0  50000
          netsys_gsw_sel              1        1        0   625000000          0     0  50000
             netsys_gsw               1        1        0   625000000          0     0  50000
                ethdma_esw_en         1        1        0   625000000          0     0  50000
       cb_net1_d5                     1        1        0   500000000          0     0  50000
          bus_tops_sel                0        0        0   500000000          0     0  50000
          netsys_500m_sel             1        1        0   500000000          0     0  50000
       net1_d5_d2                     3        3        0   250000000          0     0  50000
          netsys_ppefb_250m_sel       1        1        0   250000000          0     0  50000
          netsys_sync_250m_sel        1        1        0   250000000          0     0  50000
          eth_sys_sel                 1        1        0   250000000          0     0  50000
          pcie_mbist_250m_sel         0        0        0   250000000          0     0  50000
          emmc_250m_sel               0        0        0   250000000          0     0  50000
             emmc_250m                0        0        0   250000000          0     0  50000
                infra_fmsdc2_hck_occ       0        0        0   250000000          0     0  50000
                   infra_f_fmsdc2_hck       0        0        0   250000000          0     0  50000
       net1_d5_d4                     3        3        0   125000000          0     0  50000
          usb_xhci_p1_sel             1        1        0   125000000          0     0  50000
             usb_xhci_p1              1        1        0   125000000          0     0  50000
                infra_usb_xhci_o_p1       1        1        0   125000000          0     0  50000
                   infra_usb_xhci_ck_p1       1        1        0   125000000          0     0  50000
          usb_xhci_sel                0        0        0   125000000          0     0  50000
             usb_xhci                 0        0        0   125000000          0     0  50000
                infra_usb_xhci_o       0        0        0   125000000          0     0  50000
                   infra_usb_xhci       0        0        0   125000000          0     0  50000
          usb_sys_p1_sel              1        1        0   125000000          0     0  50000
             usb_sys_p1               1        1        0   125000000          0     0  50000
                infra_usb_sys_o_p1       1        1        0   125000000          0     0  50000
                   infra_usb_sys_ck_p1       1        1        0   125000000          0     0  50000
          usb_sys_sel                 0        0        0   125000000          0     0  50000
             usb_sys                  0        0        0   125000000          0     0  50000
                infra_usb_sys_o       0        0        0   125000000          0     0  50000
                   infra_usb_sys       0        0        0   125000000          0     0  50000
          i2c_sel                     0        0        0   125000000          0     0  50000
             i2c_bck                  0        0        0   125000000          0     0  50000
                infra_i2c_o           0        0        0   125000000          0     0  50000
                   infra_i2c_bck       0        0        0   125000000          0     0  50000
          spinfi_sel                  0        0        0   125000000          0     0  50000
             spinfi_bck               0        0        0   125000000          0     0  50000
                infra_spinfi_o        0        0        0   125000000          0     0  50000
                   infra_f_fspinfi       0        0        0   125000000          0     0  50000
          eth_gmii_sel                1        1        0   125000000          0     0  50000
       cb_net1_d8                     0        0        0   312500000          0     0  50000
       net1_d8_d2                     1        1        0   156250000          0     0  50000
          sysaxi_sel                  2        2        0   156250000          0     0  50000
             sysaxi                   3        3        0   156250000          0     0  50000
                infra_133m_hck        2        2        0   156250000          0     0  50000
                   infra_66m_phck       1        1        0   156250000          0     0  50000
                      infra_66m_aud_slv_bck       0        0        0   156250000          0     0  50000
                      infra_66m_msdc_0_hck       0        0        0   156250000          0     0  50000
                      infra_hf_i2c_x16w_pck_ck_p1       0        0        0   156250000          0     0  50000
                      infra_66m_usb_hck       0        0        0   156250000          0     0  50000
                      infra_66m_usb_hck_ck_p1       1        1        0   156250000          0     0  50000
                   infra_133m_phck       5        5        0   156250000          0     0  50000
                      infra_133m_usb_hck       0        0        0   156250000          0     0  50000
                      infra_133m_usb_hck_ck_p1       1        1        0   156250000          0     0  50000
                      infra_133m_pcie_ck_p0       1        1        0   156250000          0     0  50000
                      infra_133m_pcie_ck_p1       1        1        0   156250000          0     0  50000
                      infra_133m_pcie_ck_p2       1        1        0   156250000          0     0  50000
                      infra_133m_pcie_ck_p3       1        1        0   156250000          0     0  50000
                infra_peri_133m       0        0        0   156250000          0     0  50000
                   infra_hf_133m_msdc_0_hck       0        0        0   156250000          0     0  50000
                infra_133m_mck        1        1        0   156250000          0     0  50000
                   infra_hf_133m_cqdma_bck       0        0        0   156250000          0     0  50000
                   infra_hf_133m_dbg_ackm       1        1        0   156250000          0     0  50000
                   infra_hf_133m_cpum_bck       0        0        0   156250000          0     0  50000
                   infra_hf_i2c_x16w_mck_ck_p1       0        0        0   156250000          0     0  50000
                infra_66m_mck         1        1        0   156250000          0     0  50000
                   infra_hf_66m_gpt_bck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_hck       0        0        0   156250000          0     0  50000
                   infra_66m_ap_dma_bck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_sej_bck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_nfi_hck       1        1        0   156250000          0     0  50000
                   infra_hf_66m_spi0_hck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_spi1_hck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_spi2_hck       0        0        0   156250000          0     0  50000
                   infra_hf_66m_flashif_axi       0        0        0   156250000          0     0  50000
                infra_peri_66m_o       0        0        0   156250000          0     0  50000
          pwm_sel                     0        0        0   156250000          0     0  50000
             infra_pwm_o              0        0        0   156250000          0     0  50000
                infra_pwm_sel         0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_bck       0        0        0   156250000          0     0  50000
                infra_pwm_ck1_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck1       0        0        0   156250000          0     0  50000
                infra_pwm_ck2_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck2       0        0        0   156250000          0     0  50000
                infra_pwm_ck3_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck3       0        0        0   156250000          0     0  50000
                infra_pwm_ck4_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck4       0        0        0   156250000          0     0  50000
                infra_pwm_ck5_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck5       0        0        0   156250000          0     0  50000
                infra_pwm_ck6_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck6       0        0        0   156250000          0     0  50000
                infra_pwm_ck7_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck7       0        0        0   156250000          0     0  50000
                infra_pwm_ck8_sel       0        0        0   156250000          0     0  50000
                   infra_hf_66m_pwm_ck8       0        0        0   156250000          0     0  50000
          axi_infra_sel               0        0        0   156250000          0     0  50000
       net1_d8_d4                     4        4        0    78125000          0     0  50000
          sgm_sbus_1_sel              1        1        0    78125000          0     0  50000
          sgm_sbus_0_sel              1        1        0    78125000          0     0  50000
          usxgmii_sbus_1_sel          1        1        0    78125000          0     0  50000
          usxgmii_sbus_0_sel          1        1        0    78125000          0     0  50000
       net1_d8_d8                     1        1        0    39062500          0     0  50000
          eth_xgmii_sel               1        1        0    39062500          0     0  50000
       net1_d8_d16                    0        0        0    19531250          0     0  50000
    apll2                             0        0        0   196608000          0     0  50000
       cb_apll2_196m                  0        0        0   196608000          0     0  50000
          aud_l_sel                   0        0        0   196608000          0     0  50000
             aud_l                    0        0        0   196608000          0     0  50000
                infra_faud_l_o        0        0        0   196608000          0     0  50000
                   infra_f_faud_l       0        0        0   196608000          0     0  50000
          aud_sel                     0        0        0   196608000          0     0  50000
             aud                      0        0        0   196608000          0     0  50000
                aud_i2s_m             0        0        0    24576000          0     0  50000
       cb_apll2_d4                    0        0        0    49152000          0     0  50000
          a_tuner_sel                 0        0        0    49152000          0     0  50000
             a_tuner                  0        0        0    49152000          0     0  50000
                infra_faud_eg2_o       0        0        0    49152000          0     0  50000
                   infra_f_faud_eg2       0        0        0    49152000          0     0  50000
          a1sys_sel                   0        0        0    49152000          0     0  50000
             a1sys                    0        0        0    49152000          0     0  50000
                infra_faud_aud_o       0        0        0    49152000          0     0  50000
                   infra_f_aud_aud       0        0        0    49152000          0     0  50000
    mmpll                             2        2        0   720000000          0     0  50000
       cb_mm_720m                     1        1        0   720000000          0     0  50000
          netsys_pao_2x_sel           1        1        0   720000000          0     0  50000
       cb_mm_d2                       0        0        0   360000000          0     0  50000
       cb_mm_d3_d5                    2        2        0    48000000          0     0  50000
          usb_frmcnt_p1_sel           1        1        0    48000000          0     0  50000
             usb_frmcnt_p1            1        1        0    48000000          0     0  50000
                infra_usb_frmcnt_o_p1       1        1        0    48000000          0     0  50000
                   infra_usb_frmcnt_ck_p1       1        1        0    48000000          0     0  50000
          usb_frmcnt_sel              1        1        0    48000000          0     0  50000
             usb_frmcnt               1        1        0    48000000          0     0  50000
                infra_usb_frmcnt_o       1        1        0    48000000          0     0  50000
                   infra_usb_frmcnt       1        1        0    48000000          0     0  50000
       cb_mm_d4                       0        0        0   180000000          0     0  50000
          nfi1x_sel                   0        0        0   180000000          0     0  50000
             nfi1x                    0        0        0   180000000          0     0  50000
                infra_nfi_o           0        0        0   180000000          0     0  50000
                   infra_f_fnfi       0        0        0   180000000          0     0  50000
                   infra_hf_fbist2fpc       0        0        0   180000000          0     0  50000
       mm_d6_d2                       0        0        0    60000000          0     0  50000
       cb_mm_d8                       0        0        0    90000000          0     0  50000
    mpll                              3        3        0   416000000          0     0  50000
       cb_m_416m                      0        0        0   416000000          0     0  50000
       cb_m_d2                        1        1        0   208000000          0     0  50000
          dramc_md32_sel              1        1        0   208000000          0     0  50000
          spim_mst_sel                0        0        0   208000000          0     0  50000
             spim_mst                 0        0        0   208000000          0     0  50000
                infra_spi1_o          0        0        0   208000000          0     0  50000
                   infra_mux_spi1_sel       0        0        0   208000000          0     0  50000
                      infra_hf_104m_spi1       0        0        0   208000000          0     0  50000
          spi_sel                     0        0        0   208000000          0     0  50000
             spi                      0        0        0   208000000          0     0  50000
                infra_spi0_o          0        0        0   208000000          0     0  50000
                   infra_mux_spi0_sel       0        0        0   208000000          0     0  50000
                      infra_hf_104m_spi0       0        0        0   208000000          0     0  50000
                   infra_mux_spi2_sel       0        0        0   208000000          0     0  50000
                      infra_hf_104m_spi2_bck       0        0        0   208000000          0     0  50000
       m_d3_d2                        1        1        0   208000000          0     0  50000
          sysapb_sel                  1        1        0   208000000          0     0  50000
       cb_m_d4                        0        0        0   104000000          0     0  50000
       cb_m_d8                        0        0        0    52000000          0     0  50000
       m_d8_d2                       10       10        0    26000000          0     0  50000
          tops_p2_26m_sel             0        0        0    26000000          0     0  50000
          pextp_p3_sel                1        1        0    26000000          0     0  50000
          pextp_p2_sel                1        1        0    26000000          0     0  50000
          pextp_p1_sel                1        1        0    26000000          0     0  50000
          pextp_p0_sel                1        1        0    26000000          0     0  50000
          csw_infra_f26m_sel          3        3        0    26000000          0     0  50000
             infra_ck_f26m            1        1        0    26000000          0     0  50000
                infra_f_faud_26m       0        0        0    26000000          0     0  50000
                infra_dramc_f26m       0        0        0    26000000          0     0  50000
                infra_pre_ck_sej_f13m       0        0        0    26000000          0     0  50000
                infra_hf_26m_therm_system       1        1        0    26000000          0     0  50000
             csw_infra_f26m           1        1        0    26000000          0     0  50000
                infra_f26m_o0         4        4        0    26000000          0     0  50000
                   infra_pcie_peri_ck_26m_ck_p0       1        1        0    26000000          0     0  50000
                   infra_pcie_peri_ck_26m_ck_p1       1        1        0    26000000          0     0  50000
                   infra_pcie_peri_ck_26m_ck_p2       1        1        0    26000000          0     0  50000
                   infra_pcie_peri_ck_26m_ck_p3       2        2        0    26000000          0     0  50000
                infra_f26m_o1         0        0        0    26000000          0     0  50000
                   infra_f_26m_adc_bck       0        0        0    26000000          0     0  50000
                      infra_f_frc_adc       0        0        0    26000000          0     0  50000
          dramc_sel                   1        1        0    26000000          0     0  50000
          xfi_phy_1_xtal_sel          1        1        0    26000000          0     0  50000
          xfi_phy_0_xtal_sel          1        1        0    26000000          0     0  50000
          usb_phy_sel                 1        1        0    26000000          0     0  50000
             infra_usb_pipe_o_p1       1        1        0    26000000          0     0  50000
                infra_usb_pipe_ck_p1       1        1        0    26000000          0     0  50000
          sspxtp_sel                  1        1        0    26000000          0     0  50000
             infra_usb_pipe_o         1        1        0    26000000          0     0  50000
                infra_usb_pipe        1        1        0    26000000          0     0  50000
    netsyspll                         1        1        0   850000000          0     0  50000
       cb_netsys_850m                 1        1        0   850000000          0     0  50000
          eip197_sel                  1        1        0   850000000          0     0  50000
             eip197                   1        1        0   850000000          0     0  50000
                ethdma_crypt0_en       1        1        0   850000000          0     0  50000
    cksq_src                          1        1        0    40000000          0     0  50000
       usb_ck_p1                      1        1        0    40000000          0     0  50000
          infra_usb_o_p1              1        1        0    40000000          0     0  50000
             infra_usb_ck_p1          1        1        0    40000000          0     0  50000
       usb_ref                        0        0        0    40000000          0     0  50000
          infra_usb_o                 0        0        0    40000000          0     0  50000
             infra_usb_ref            0        0        0    40000000          0     0  50000
    cb_cksq_40m                       2        2        0    40000000          0     0  50000
       uart_sel                       1        1        0    40000000          0     0  50000
          infra_uart_o0               1        1        0    40000000          0     0  50000
             infra_mux_uart0_sel       1        1        0    40000000          0     0  50000
                infra_f_52m_uart0       1        1        0    40000000          0     0  50000
          infra_uart_o1               0        0        0    40000000          0     0  50000
             infra_mux_uart1_sel       0        0        0    40000000          0     0  50000
                infra_f_52m_uart1       0        0        0    40000000          0     0  50000
          infra_uart_o2               0        0        0    40000000          0     0  50000
             infra_mux_uart2_sel       0        0        0    40000000          0     0  50000
                infra_f_52m_uart2       0        0        0    40000000          0     0  50000
       cb_rtc_32p7k                   0        0        0       32786          0     0  50000
          csw_infra_f32k              0        0        0       32786          0     0  50000
       cb_rtc_32k                     1        1        0       32000          0     0  50000
          infra_frtc                  1        1        0       32000          0     0  50000
             infra_lb_mux_frtc        1        1        0       32000          0     0  50000
                infra_f_frtc          1        1        0       32000          0     0  50000
       cksq_40m_d2                    0        0        0    20000000          0     0  50000
          pextp_sel                   0        0        0    20000000          0     0  50000
          da_selm_xtal_sel            0        0        0    20000000          0     0  50000
          ckm_sel                     0        0        0    20000000          0     0  50000
    infra_pcie_pipe_ck_occ_p3         1        1        0    40000000          0     0  50000
       infra_pcie_pipe_ck_p3          1        1        0    40000000          0     0  50000
    infra_pcie_pipe_ck_occ_p2         1        1        0    40000000          0     0  50000
       infra_pcie_pipe_ck_p2          1        1        0    40000000          0     0  50000
    infra_pcie_pipe_ck_occ_p1         1        1        0    40000000          0     0  50000
       infra_pcie_pipe_ck_p1          1        1        0    40000000          0     0  50000
    infra_pcie_pipe_ck_occ_p0         1        1        0    40000000          0     0  50000
       infra_pcie_pipe_ck_p0          1        1        0    40000000          0     0  50000
    infra_usb_utmi_o_p1               1        1        0    40000000          0     0  50000
       infra_usb_utmi_ck_p1           1        1        0    40000000          0     0  50000
    infra_usb_utmi_o                  0        0        0    40000000          0     0  50000
       infra_usb_utmi                 0        0        0    40000000          0     0  50000
    ethdma_xgp1_en                    1        1        0    40000000          0     0  50000
    ethdma_xgp2_en                    1        1        0    40000000          0     0  50000
    ethdma_xgp3_en                    1        1        0    40000000          0     0  50000
    ethdma_gp2_en                     1        1        0    40000000          0     0  50000
    ethdma_gp1_en                     1        1        0    40000000          0     0  50000
    ethdma_gp3_en                     1        1        0    40000000          0     0  50000
    sgm0_tx_en                        1        1        0    40000000          0     0  50000
    sgm0_rx_en                        1        1        0    40000000          0     0  50000
    sgm1_tx_en                        1        1        0    40000000          0     0  50000
    sgm1_rx_en                        1        1        0    40000000          0     0  50000
 dummy_system_clk                     0        0        0    40000000          0     0  50000
root@OpenWrt:~# lspci -v
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@11300000/pcie@0,0
        Flags: fast devsel
        Memory at 30300000 (64-bit, non-prefetchable) [disabled] [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 30200000-302fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Capabilities: [80] Express Root Port (Slot-), MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Capabilities: [300] Secondary PCI Express
lspci: Unable to load libkmod resources: error -12

0000:01:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
        Subsystem: Intel Corporation Wi-Fi 6 AX210 160MHz
        Device tree node: /sys/firmware/devicetree/base/pcie@11300000/pcie@0,0/mt7996@0,0
        Flags: fast devsel
        Memory at 30200000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [40] Express Endpoint, MSI 00
        Capabilities: [80] MSI-X: Enable- Count=16 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [14c] Latency Tolerance Reporting
        Capabilities: [154] L1 PM Substates

0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@11310000/pcie@0,0
        Flags: fast devsel
        Memory at 38500000 (64-bit, non-prefetchable) [disabled] [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 38200000-382fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: 38300000-384fffff [size=2M] [32-bit]
        Capabilities: [80] Express Root Port (Slot-), MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Capabilities: [300] Secondary PCI Express

0001:01:00.0 Network controller: MEDIATEK Corp. Device 7906
        Subsystem: MEDIATEK Corp. Device 7906
        Flags: fast devsel
        Memory at 38300000 (64-bit, prefetchable) [disabled] [size=1M]
        Memory at 38200000 (64-bit, non-prefetchable) [disabled] [size=32K]
        Memory at 38400000 (64-bit, prefetchable) [disabled] [size=4K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [108] Latency Tolerance Reporting
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting

0002:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Memory at 28300000 (64-bit, non-prefetchable) [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 28200000-282fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Capabilities: [80] Express Root Port (Slot-), MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Capabilities: [300] Secondary PCI Express

0002:01:00.0 Non-Volatile memory controller: Device 1ed0:2283 (rev 01) (prog-if 02 [NVM Express])
        Subsystem: Device 1ed0:2283
        Flags: bus master, fast devsel, latency 0, IRQ 123
        Memory at 28210000 (64-bit, non-prefetchable) [size=16K]
        Expansion ROM at 28200000 [virtual] [disabled] [size=64K]
        Capabilities: [80] Express Endpoint, MSI 00
        Capabilities: [d0] MSI-X: Enable+ Count=9 Masked-
        Capabilities: [e0] MSI: Enable- Count=1/8 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Latency Tolerance Reporting
        Capabilities: [110] L1 PM Substates
        Capabilities: [140] Single Root I/O Virtualization (SR-IOV)
        Capabilities: [200] Advanced Error Reporting
        Capabilities: [300] Secondary PCI Express
        Kernel driver in use: nvme

0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01) (prog-if 00 [Normal decode])
        Flags: fast devsel
        Memory at 20300000 (64-bit, non-prefetchable) [disabled] [size=32K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled] [32-bit]
        Memory behind bridge: 20200000-202fffff [size=1M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Capabilities: [80] Express Root Port (Slot-), MSI 00
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting
        Capabilities: [300] Secondary PCI Express

0003:01:00.0 Unassigned class [ff00]: Foxconn International, Inc. Device e0af
        Subsystem: Qualcomm Device 010c
        Flags: fast devsel
        Memory at 20200000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Memory at 20201000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Secondary PCI Express
        Capabilities: [168] Physical Layer 16.0 GT/s <?>
        Capabilities: [18c] Lane Margining at the Receiver <?>
        Capabilities: [19c] Transaction Processing Hints
        Capabilities: [228] Latency Tolerance Reporting
        Capabilities: [230] L1 PM Substates
        Capabilities: [240] Data Link Feature <?>

0004:00:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7981 (prog-if 80)
        Subsystem: Device 7622:14c3
        Flags: bus master, fast devsel, latency 0, IRQ 117
        Memory at 18000000 (64-bit, non-prefetchable) [size=16M]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=16]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=16]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=16]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=16]
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Power Management version 3
        Capabilities: [80] Express Endpoint, MSI 00

I have similar issue with Intel BE200 (which is working normally on bpi-r64 according to the commit autor - linux-firmware: intel: add BE200 wifi firmware · openwrt/openwrt@a56292d · GitHub ) and Mini PCI-E to M.2 key E - it does not recognize the Intel card (dmesg/lspci - all is empty).

I will paste also the clk_summary (base on kernel 6.6), maybe it will help somehow:

root@BPI-R4:~# cat /sys/kernel/debug/clk/clk_summary
                                 enable  prepare  protect                                duty  hardware
   clock                          count    count    count        rate   accuracy phase  cycle    enable
-------------------------------------------------------------------------------------------------------
 clkxtal                              9        9        0    40000000          0     0  50000         Y
    top_xtal                         16       16        0    40000000          0     0  50000         Y
       xfipll_pll                     1        1        0   156250000          0     0  50000         Y
          xfipll_pll_en               2        2        0   156250000          0     0  50000         Y
       ethdma_gp3_en                  1        1        0    40000000          0     0  50000         Y
       ethdma_gp1_en                  1        1        0    40000000          0     0  50000         Y
       ethdma_gp2_en                  1        1        0    40000000          0     0  50000         Y
       ethdma_xgp3_en                 1        1        0    40000000          0     0  50000         Y
       ethdma_xgp2_en                 1        1        0    40000000          0     0  50000         Y
       ethdma_xgp1_en                 1        1        0    40000000          0     0  50000         Y
       sgm1_rx_en                     0        0        0    40000000          0     0  50000         N
       sgm1_tx_en                     0        0        0    40000000          0     0  50000         N
       sgm0_rx_en                     1        1        0    40000000          0     0  50000         Y
       sgm0_tx_en                     1        1        0    40000000          0     0  50000         Y
       infra_pcie_pipe_ck_p3          0        0        0    40000000          0     0  50000         N
       infra_pcie_pipe_ck_p2          0        0        0    40000000          0     0  50000         N
       infra_pcie_pipe_ck_p1          1        1        0    40000000          0     0  50000         Y
       infra_pcie_pipe_ck_p0          1        1        0    40000000          0     0  50000         Y
       infra_usb_utmi_ck_p1           1        1        0    40000000          0     0  50000         Y
       infra_usb_utmi                 0        0        0    40000000          0     0  50000         N
       infra_usb_ck_p1                1        1        0    40000000          0     0  50000         Y
       infra_usb_ref                  0        0        0    40000000          0     0  50000         N
       uart_sel                       1        1        0    40000000          0     0  50000         Y
          infra_mux_uart2_sel         0        0        0    40000000          0     0  50000         Y
             infra_f_52m_uart2        0        0        0    40000000          0     0  50000         N
          infra_mux_uart1_sel         0        0        0    40000000          0     0  50000         Y
             infra_f_52m_uart1        0        0        0    40000000          0     0  50000         N
          infra_mux_uart0_sel         1        1        0    40000000          0     0  50000         Y
             infra_f_52m_uart0        1        1        0    40000000          0     0  50000         Y
       top_rtc_32p7k                  0        0        0       32786          0     0  50000         Y
       top_rtc_32k                    1        1        0       32000          0     0  50000         Y
          infra_f_frtc                1        1        0       32000          0     0  50000         Y
       top_xtal_d2                    0        0        0    20000000          0     0  50000         Y
          pextp_sel                   0        0        0    20000000          0     0  50000         N
          da_sel                      0        0        0    20000000          0     0  50000         N
          ckm_sel                     0        0        0    20000000          0     0  50000         N
    msdcpll                           0        0        0   400000000          0     0  50000         Y
       emmc_400m_sel                  0        0        0   400000000          0     0  50000         N
          infra_f_fmsdc400            0        0        0   400000000          0     0  50000         N
    usxgmiipll                        0        0        0   644531250          0     0  50000         Y
    ccipll2_b                         1        1        0   900000000          0     0  50000         Y
       mcu_bus_div_sel                1        1        0   900000000          0     0  50000         Y
    arm_b                             2        2        0   800000000          0     0  50000         Y
       mcu_arm_div_sel                2        2        0   800000000          0     0  50000         Y
    sgmpll                            2        2        0   325000000          0     0  50000         Y
       macsec_sel                     0        0        0   325000000          0     0  50000         N
       sgm_1_sel                      1        1        0   325000000          0     0  50000         Y
       sgm_0_sel                      1        1        0   325000000          0     0  50000         Y
    wedmcupll                         0        0        0   208000000          0     0  50000         Y
    net2pll                           8        8        0   800000000          0     0  50000         Y
       ck_npu_sel                     0        0        0   800000000          0     0  50000         N
       npu_tops_sel                   0        0        0   800000000          0     0  50000         N
       netsys_mcu_sel                 3        3        0   800000000          0     0  50000         Y
          ethwarp_wocpu0_en           1        1        0   800000000          0     0  50000         Y
          ethwarp_wocpu1_en           1        1        0   800000000          0     0  50000         Y
          ethwarp_wocpu2_en           1        1        0   800000000          0     0  50000         Y
       netsys_2x_sel                  1        1        0   800000000          0     0  50000         Y
          ethdma_fe_en                1        1        0   800000000          0     0  50000         Y
       net2pll_d8                     0        0        0   100000000          0     0  50000         Y
          da_xtp_glb_p3_sel           0        0        0   100000000          0     0  50000         N
          da_xtp_glb_p2_sel           0        0        0   100000000          0     0  50000         N
          da_xtp_glb_p1_sel           0        0        0   100000000          0     0  50000         N
          da_xtp_glb_p0_sel           0        0        0   100000000          0     0  50000         N
       net2pll_d6                     2        2        0   133333333          0     0  50000         Y
          pextp_tl_p3_sel             0        0        0   133333333          0     0  50000         N
             infra_pcie_gfmux_tl_o_p3_sel       0        0        0   133333333          0     0  50000         Y
                infra_pcie_gfmux_tl_ck_p3       0        0        0   133333333          0     0  50000         N
          pextp_tl_p2_sel             0        0        0   133333333          0     0  50000         N
             infra_pcie_gfmux_tl_o_p2_sel       0        0        0   133333333          0     0  50000         Y
                infra_pcie_gfmux_tl_ck_p2       0        0        0   133333333          0     0  50000         N
          pextp_tl_p1_sel             1        1        0   133333333          0     0  50000         Y
             infra_pcie_gfmux_tl_o_p1_sel       1        1        0   133333333          0     0  50000         Y
                infra_pcie_gfmux_tl_ck_p1       1        1        0   133333333          0     0  50000         Y
          pextp_tl_sel                1        1        0   133333333          0     0  50000         Y
             infra_pcie_gfmux_tl_o_p0_sel       1        1        0   133333333          0     0  50000         Y
                infra_pcie_gfmux_tl_ck_p0       1        1        0   133333333          0     0  50000         Y
       net2pll_d4_d8                  1        1        0    25000000          0     0  50000         Y
          eth_mii_sel                 1        1        0    25000000          0     0  50000         Y
       net2pll_d4_d4                  1        1        0    50000000          0     0  50000         Y
          eth_refck_50m_sel           1        1        0    50000000          0     0  50000         Y
       net2pll_d4                     1        1        0   200000000          0     0  50000         Y
          eth_sys_200m_sel            1        1        0   200000000          0     0  50000         Y
       net2pll_d2                     2        2        0   400000000          0     0  50000         Y
          netsys_warp_sel             1        1        0   400000000          0     0  50000         Y
          netsys_tops_400m_sel        0        0        0   400000000          0     0  50000         N
          netsys_sel                  1        1        0   400000000          0     0  50000         Y
    net1pll                           7        7        0  2500000000          0     0  50000         Y
       net1pll_d8_d16                 0        0        0    19531250          0     0  50000         Y
       net1pll_d8_d8                  1        1        0    39062500          0     0  50000         Y
          eth_xgmii_sel               1        1        0    39062500          0     0  50000         Y
       net1pll_d8_d4                  4        4        0    78125000          0     0  50000         Y
          sgm_sbus_1_sel              1        1        0    78125000          0     0  50000         Y
          sgm_sbus_0_sel              1        1        0    78125000          0     0  50000         Y
          usxgmii_sbus_1_sel          1        1        0    78125000          0     0  50000         Y
          usxgmii_sbus_0_sel          1        1        0    78125000          0     0  50000         Y
       net1pll_d8_d2                  2        2        0   156250000          0     0  50000         Y
          sysaxi_sel                  8        9        0   156250000          0     0  50000         Y
             infra_133m_pcie_ck_p3       0        0        0   156250000          0     0  50000         N
             infra_133m_pcie_ck_p2       0        0        0   156250000          0     0  50000         N
             infra_133m_pcie_ck_p1       1        1        0   156250000          0     0  50000         Y
             infra_133m_pcie_ck_p0       1        1        0   156250000          0     0  50000         Y
             infra_66m_usb_hck_ck_p1       1        1        0   156250000          0     0  50000         Y
             infra_66m_usb_hck        0        0        0   156250000          0     0  50000         N
             infra_133m_usb_hck_ck_p1       1        1        0   156250000          0     0  50000         Y
             infra_133m_usb_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_i2c_x16w_pck_ck_p1       0        0        0   156250000          0     0  50000         N
             infra_hf_i2c_x16w_mck_ck_p1       0        0        0   156250000          0     0  50000         N
             infra_hf_133m_cpum_bck       0        0        0   156250000          0     0  50000         N
             infra_66m_msdc_0_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_133m_msdc_0_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_flashif_axi       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_spi2_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_spi1_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_spi0_hck       1        1        0   156250000          0     0  50000         Y
             infra_hf_66m_nfi_hck       1        1        0   156250000          0     0  50000         Y
             infra_hf_66m_sej_bck       0        0        0   156250000          0     0  50000         N
             infra_66m_ap_dma_bck       0        2        0   156250000          0     0  50000         N
             infra_hf_133m_dbg_ackm       1        1        0   156250000          0     0  50000         Y
             infra_66m_aud_slv_bck       0        0        0   156250000          0     0  50000         N
             infra_hf_133m_cqdma_bck       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_pwm_hck       0        0        0   156250000          0     0  50000         N
             infra_hf_66m_gpt_bck       0        0        0   156250000          0     0  50000         N
          pwm_sel                     0        0        0   156250000          0     0  50000         N
             infra_pwm_ck8_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck8       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck7_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck7       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck6_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck6       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck5_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck5       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck4_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck4       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck3_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck3       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck2_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck2       0        0        0   156250000          0     0  50000         N
             infra_pwm_ck1_sel        0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_ck1       0        0        0   156250000          0     0  50000         N
             infra_pwm_sel            0        0        0   156250000          0     0  50000         Y
                infra_hf_66m_pwm_bck       0        0        0   156250000          0     0  50000         N
          axi_infra_sel               1        1        0   156250000          0     0  50000         Y
       net1pll_d8                     0        0        0   312500000          0     0  50000         Y
       net1pll_d5_d4                  3        4        0   125000000          0     0  50000         Y
          usb_xhci_p1_sel             1        1        0   125000000          0     0  50000         Y
             infra_usb_xhci_ck_p1       1        1        0   125000000          0     0  50000         Y
          usb_xhci_sel                0        0        0   125000000          0     0  50000         N
             infra_usb_xhci           0        0        0   125000000          0     0  50000         N
          usb_sys_p1_sel              1        1        0   125000000          0     0  50000         Y
             infra_usb_sys_ck_p1       1        1        0   125000000          0     0  50000         Y
          usb_sys_sel                 0        0        0   125000000          0     0  50000         N
             infra_usb_sys            0        0        0   125000000          0     0  50000         N
          i2c_sel                     0        1        0   125000000          0     0  50000         N
             infra_i2c_bck            0        2        0   125000000          0     0  50000         N
          spinfi_sel                  0        0        0   125000000          0     0  50000         N
             infra_f_fspinfi          0        0        0   125000000          0     0  50000         N
          eth_gmii_sel                1        1        0   125000000          0     0  50000         Y
       net1pll_d5_d2                  3        3        0   250000000          0     0  50000         Y
          netsys_ppefb_250m_sel       1        1        0   250000000          0     0  50000         Y
          netsys_sync_250m_sel        1        1        0   250000000          0     0  50000         Y
          eth_sys_sel                 1        1        0   250000000          0     0  50000         Y
          pcie_mbist_250m_sel         0        0        0   250000000          0     0  50000         N
          emmc_250m_sel               0        0        0   250000000          0     0  50000         N
             infra_f_fmsdc2_hck       0        0        0   250000000          0     0  50000         N
       net1pll_d5                     1        1        0   500000000          0     0  50000         Y
          bus_tops_sel                0        0        0   500000000          0     0  50000         N
          netsys_500m_sel             1        1        0   500000000          0     0  50000         Y
       net1pll_d4                     1        1        0   625000000          0     0  50000         Y
          mcusys_backup_625m_sel       0        0        0   625000000          0     0  50000         N
          netsys_gsw_sel              1        1        0   625000000          0     0  50000         Y
             ethdma_esw_en            1        1        0   625000000          0     0  50000         Y
    apll2                             0        0        0   196608000          0     0  50000         Y
       aud_l_sel                      0        0        0   196608000          0     0  50000         N
          infra_f_faud_l              0        0        0   196608000          0     0  50000         N
       aud_sel                        0        0        0   196608000          0     0  50000         N
          aud_i2s_m                   0        0        0    24576000          0     0  50000         N
       apll2_d4                       0        0        0    49152000          0     0  50000         Y
          a_tuner_sel                 0        0        0    49152000          0     0  50000         N
             infra_f_faud_eg2         0        0        0    49152000          0     0  50000         N
          a1sys_sel                   0        0        0    49152000          0     0  50000         N
             infra_f_aud_aud          0        0        0    49152000          0     0  50000         N
    mmpll                             2        2        0   720000000          0     0  50000         Y
       netsys_pao_2x_sel              1        1        0   720000000          0     0  50000         Y
       mmpll_d8                       0        0        0    90000000          0     0  50000         Y
       mmpll_d6_d2                    0        0        0    60000000          0     0  50000         Y
       mmpll_d4                       0        0        0   180000000          0     0  50000         Y
          nfi1x_sel                   0        0        0   180000000          0     0  50000         N
             infra_hf_fbist2fpc       0        0        0   180000000          0     0  50000         N
             infra_f_fnfi             0        0        0   180000000          0     0  50000         N
       mmpll_d3_d5                    2        2        0    48000000          0     0  50000         Y
          usb_frmcnt_p1_sel           1        1        0    48000000          0     0  50000         Y
             infra_usb_frmcnt_ck_p1       1        1        0    48000000          0     0  50000         Y
          usb_frmcnt_sel              1        1        0    48000000          0     0  50000         Y
             infra_usb_frmcnt         1        1        0    48000000          0     0  50000         Y
       mmpll_d2                       0        0        0   360000000          0     0  50000         Y
    mpll                              3        3        0   416000000          0     0  50000         Y
       mpll_d8_d2                     5        5        0    26000000          0     0  50000         Y
          tops_p2_26m_sel             0        0        0    26000000          0     0  50000         N
          pextp_p3_sel                0        0        0    26000000          0     0  50000         N
          pextp_p2_sel                0        0        0    26000000          0     0  50000         N
          pextp_p1_sel                0        0        0    26000000          0     0  50000         N
          pextp_p0_sel                0        0        0    26000000          0     0  50000         N
          csw_infra_f26m_sel          5        5        0    26000000          0     0  50000         Y
             infra_f_26m_adc_bck       0        0        0    26000000          0     0  50000         N
                infra_f_frc_adc       0        0        0    26000000          0     0  50000         N
             infra_hf_26m_therm_system       1        1        0    26000000          0     0  50000         Y
             infra_pre_ck_sej_f13m       0        0        0    26000000          0     0  50000         N
             infra_dramc_f26m         1        1        0    26000000          0     0  50000         Y
             infra_f_faud_26m         0        0        0    26000000          0     0  50000         N
             infra_pcie_peri_ck_26m_ck_p3       0        0        0    26000000          0     0  50000         N
             infra_pcie_peri_ck_26m_ck_p2       0        0        0    26000000          0     0  50000         N
             infra_pcie_peri_ck_26m_ck_p1       1        1        0    26000000          0     0  50000         Y
             infra_pcie_peri_ck_26m_ck_p0       1        1        0    26000000          0     0  50000         Y
          dramc_sel                   1        1        0    26000000          0     0  50000         Y
          xfi_phy_1_xtal_sel          1        1        0    26000000          0     0  50000         Y
          xfi_phy_0_xtal_sel          1        1        0    26000000          0     0  50000         Y
          usb_phy_sel                 1        1        0    26000000          0     0  50000         Y
             infra_usb_pipe_ck_p1       1        1        0    26000000          0     0  50000         Y
          sspxtp_sel                  0        0        0    26000000          0     0  50000         N
             infra_usb_pipe           0        0        0    26000000          0     0  50000         N
       mpll_d8                        0        0        0    52000000          0     0  50000         Y
       mpll_d4                        0        0        0   104000000          0     0  50000         Y
       mpll_d3_d2                     1        1        0   208000000          0     0  50000         Y
          sysapb_sel                  1        1        0   208000000          0     0  50000         Y
       mpll_d2                        2        2        0   208000000          0     0  50000         Y
          dramc_md32_sel              1        1        0   208000000          0     0  50000         Y
          spim_mst_sel                0        0        0   208000000          0     0  50000         N
             infra_mux_spi1_sel       0        0        0   208000000          0     0  50000         Y
                infra_hf_104m_spi1       0        0        0   208000000          0     0  50000         N
          spi_sel                     2        2        0   208000000          0     0  50000         Y
             infra_mux_spi2_sel       0        0        0   208000000          0     0  50000         Y
                infra_hf_104m_spi2_bck       0        0        0   208000000          0     0  50000         N
             infra_mux_spi0_sel       1        1        0   208000000          0     0  50000         Y
                infra_hf_104m_spi0       1        1        0   208000000          0     0  50000         Y
    netsyspll                         1        1        0   850000000          0     0  50000         Y
       eip197_sel                     1        1        0   850000000          0     0  50000         Y
          ethdma_crypt0_en            1        1        0   850000000          0     0  50000         Y

And again: the pci2 (ngff slot on top side of board) does not work yet with actual kernels in openwrt or from my repo…

1 Like

Any news and dates about official case and wifi7 card? And about official openwrt realase? Thanks in advance!

1 Like

Wifi Modul:

Wrong :frowning_face::

→ official openWRT realase:

→ openWRT release

Right :slightly_smiling_face::

→ official openWRT

https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=mediatek%2Ffilogic&id=bananapi_bpi-r4

Not a release yet, just development/nightly snapshots. Release branch will be created in a few months, stable release including support for the R4 towards the end of the year probably.

Okay, I delated the “official”. Sometimes I’m a bit fast … thought snapshot should be clear … .

1 Like

“official” is the true part. “release” is what you should remove.

Yea, that what i meant! I used the latest snapshot yet and for my simple purpose seemed working quite well, i did all my simple stuffs without bugs and seems quite stable, but isn’t the official stable release. Anyway waiting the wifi7 card i used an old Atheros AR5BXB63 and i setup the bpi as AP with vlans for different SSID. Btw thanks for your answers and precisations. Bye

:slightly_smiling_face:, :smiling_face_with_tear:, :thinking:, :saluting_face: much to learn I have …

An anecdote for those trying to passively cool the R4: I bought a passive heatsink from Alpha - Heat Sink | Your thermal solution partner (specifically a LPDM50-40BP-1P3N) and it seems to work quite well, and maybe even quite a bit of overkill. I wasn’t sure what mounting pressure to select so I went with the lightest one. I’m testing with stress -c 4 (if there is a better way to test a maximum thermal load I’m all ears!) and it caps out at ~48C, mounted vertically not in a case. At a more typical load (no substantial traffic, just running a few servers, it stabilizes around ~42C.

I did some measurements and looked at the board design file and while the holes are slightly closer on the board than on this heatsink, it works with some minor effort.

Because of a tall surface mount component, I did have to file down the heatsink a few millimeters in one corner:

I probably could have gone with a much shorter one and it would have stayed pretty cool, but I wasn’t sure so just went overboard; I’ll be designing my own case so can design around a large heatsink. Final look:

1 Like

I used the firmware downloaded from OpenWrt Firmware Selector and found that I could not connect to the pptp client via the pptp server. I can’t find net.netfilter.nf_conntrack_helper in my system, can anyone help me with this problem?

These are my system info

root@OpenWrt:/# sysctl -w net.netfilter.nf_conntrack_helper=1
sysctl: error: 'net.netfilter.nf_conntrack_helper' is an unknown key
root@OpenWrt:/# opkg list | grep helper
kmod-nf-nathelper - 6.1.81-1
kmod-nf-nathelper-extra - 6.1.81-1
root@OpenWrt:/# cat /etc/op
openwrt_release  openwrt_version  opkg.conf        opkg/
root@OpenWrt:/# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r25529-1d3d6ef826'
DISTRIB_TARGET='mediatek/filogic'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r25529-1d3d6ef826'
DISTRIB_TAINTS=''
root@OpenWrt:/# cat /etc/openwrt_version 
r25529-1d3d6ef826
root@OpenWrt:/# cat /etc/openwrt_
openwrt_release  openwrt_version
root@OpenWrt:/# cat /etc/openwrt_
openwrt_release  openwrt_version
root@OpenWrt:/# cat /etc/op
openwrt_release  openwrt_version  opkg.conf        opkg/
root@OpenWrt:/# cat /etc/o
odhcp6c.user     openwrt_release  opkg.conf        os-release
odhcp6c.user.d/  openwrt_version  opkg/
root@OpenWrt:/# cat /etc/
TZ                    hotplug.json          profile.d/
banner                init.d/               protocols
banner.failsafe       inittab               rc.button/
board.d/              iproute2/             rc.common
board.json            localtime             rc.d/
capabilities/         luci-uploads/         rc.local
chatscripts/          modules-boot.d/       resolv.conf
config/               modules.conf          services
crontabs/             modules.d/            shadow
dbus-1/               mtab                  shells
device_info           nftables.d/           shinit
diag.sh               odhcp6c.user          ssl/
dnsmasq.conf          odhcp6c.user.d/       sysctl.conf
dropbear/             openwrt_release       sysctl.d/
e2fsck.conf           openwrt_version       syslog.conf
ethers                opkg.conf             sysupgrade.conf
fstab                 opkg/                 uci-defaults/
fw_env.config         os-release            udhcpc.user
gcom/                 passwd                udhcpc.user.d/
group                 ppp/                  urandom.seed
hosts                 pptpd.conf            usb-mode.json
hotplug-preinit.json  preinit               xattr.conf
hotplug.d/            profile
root@OpenWrt:/# cat /etc/os-release 
NAME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r25529-1d3d6ef826"
OPENWRT_BOARD="mediatek/filogic"
OPENWRT_ARCH="aarch64_cortex-a53"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r25529-1d3d6ef826"
root@OpenWrt:/# cat /etc/openwrt_version 
r25529-1d3d6ef826
root@OpenWrt:/# cat /etc/openwrt_release 
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r25529-1d3d6ef826'
DISTRIB_TARGET='mediatek/filogic'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r25529-1d3d6ef826'
DISTRIB_TAINTS=''
root@OpenWrt:/# sysctl -w net.netfilter.nf_conntrack_helper=1
sysctl: error: 'net.netfilter.nf_conntrack_helper' is an unknown key
root@OpenWrt:/# sysctl -w net.netfilter.nf_conntrack_helper=1^C

root@OpenWrt:/# ^C

root@OpenWrt:/# cat /proc/sys/net/netfilter/nf_conntrack_helper
cat: can't open '/proc/sys/net/netfilter/nf_conntrack_helper': No such file or directory
root@OpenWrt:/# lsmod 
af_alg                 28672  4 algif_skcipher,algif_rng,algif_hash,algif_aead
algif_aead             16384  0 
algif_hash             16384  0 
algif_rng              16384  0 
algif_skcipher         16384  0 
aquantia               28672  0 
arc4                   16384  0 
asn1_decoder           16384  1 nf_nat_snmp_basic
at24                   20480  0 
atm                    53248  3 usbatm,pppoatm,br2684
authenc                16384  2 crypto_safexcel,authencesn
authencesn             16384  0 
br2684                 24576  0 
cdc_acm                32768  0 
cdc_eem                16384  0 
cdc_ether              16384  2 rndis_host,cdc_ncm
cdc_mbim               16384  0 
cdc_ncm                24576  1 cdc_mbim
cdc_subset             16384  0 
cdc_wdm                28672  3 cdc_mbim,qmi_wwan
cfg80211              307200  5 mt7996e,mt7915e,mt76_connac_lib,mt76,mac80211
compat                 16384  2 mac80211,cfg80211
crypto_safexcel       122880  0 
crypto_user            16384  0 
des_generic            16384  0 
ehci_fsl               16384  0 
ehci_hcd               61440  3 ehci_pci,ehci_platform,ehci_fsl
ehci_pci               16384  0 
ehci_platform          16384  0 
evdev                  28672  0 
fsl_mph_dr_of          16384  0 
gpio_button_hotplug    16384  0 
gre                    16384  2 pptp,ip_gre
hid                   118784  2 usbhid,hid_generic
hid_generic            16384  0 
hso                    45056  0 
i2c_mux                16384  1 i2c_mux_pca954x
i2c_mux_pca954x        16384  0 
input_core             49152  2 hid,evdev
ip_gre                 28672  0 
ip_tables              28672  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
ip_tunnel              28672  1 ip_gre
ip6_tables             28672  3 ip6table_raw,ip6table_mangle,ip6table_filter
ip6t_REJECT            16384  0 
ip6table_filter        16384  0 
ip6table_mangle        16384  0 
ip6table_raw           16384  0 
ipt_REJECT             16384  0 
iptable_filter         16384  0 
iptable_mangle         16384  0 
iptable_nat            16384  0 
iptable_raw            16384  0 
leds_gpio              16384  0 
libcrc32c              16384  1 nf_tables
libdes                 24576  2 crypto_safexcel,des_generic
mac80211              593920  4 mt7996e,mt7915e,mt76_connac_lib,mt76
md5                    16384  1 crypto_safexcel
mdio_i2c               16384  1 sfp
mhi                    73728  2 mhi_wwan_mbim,mhi_wwan_ctrl
mhi_wwan_ctrl          16384  0 
mhi_wwan_mbim          20480  0 
mii                    16384  1 usbnet
mt76                   77824  3 mt7996e,mt7915e,mt76_connac_lib
mt76_connac_lib        53248  2 mt7996e,mt7915e
mt7915e               143360  0 
mt7996e               122880  0 
nf_conncount           24576  1 xt_connlimit
nf_conntrack           90112 36 xt_connlimit,nf_conncount,xt_state,xt_nat,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_REDIRECT,xt_NETMAP,xt_MASQUERADE,xt_CT,nft_redir,nft_nat,nft_masq,nft_flow_offload,nft_ct,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_nat,nf_flow_table,nf_conntrack_tftp,nf_conntrack_snmp,nf_conntrack_sip,nf_conntrack_pptp,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,nf_conntrack_broadcast,nf_conntrack_amanda
nf_conntrack_amanda    16384  3 nf_nat_amanda
nf_conntrack_broadcast   16384  1 nf_conntrack_snmp
nf_conntrack_ftp       16384  3 nf_nat_ftp
nf_conntrack_h323      49152  5 nf_nat_h323
nf_conntrack_irc       16384  2 nf_nat_irc
nf_conntrack_pptp      16384  2 nf_nat_pptp
nf_conntrack_sip       32768  3 nf_nat_sip
nf_conntrack_snmp      16384  2 nf_nat_snmp_basic
nf_conntrack_tftp      16384  3 nf_nat_tftp
nf_defrag_ipv4         16384  1 nf_conntrack
nf_defrag_ipv6         20480  1 nf_conntrack
nf_flow_table          32768  2 nf_flow_table_inet,nft_flow_offload
nf_flow_table_inet     16384  0 
nf_log_syslog          20480  0 
nf_nat                 40960 16 iptable_nat,xt_nat,xt_REDIRECT,xt_NETMAP,xt_MASQUERADE,nft_redir,nft_nat,nft_masq,nft_chain_nat,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda
nf_nat_amanda          16384  0 
nf_nat_ftp             16384  0 
nf_nat_h323            16384  0 
nf_nat_irc             16384  0 
nf_nat_pptp            16384  0 
nf_nat_sip             20480  0 
nf_nat_snmp_basic      16384  0 
nf_nat_tftp            16384  0 
nf_reject_ipv4         16384  3 nft_reject_ipv4,nft_reject_inet,ipt_REJECT
nf_reject_ipv6         16384  3 nft_reject_ipv6,nft_reject_inet,ip6t_REJECT
nf_tables             176128251 nft_fib_inet,nf_flow_table_inet,nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet,nft_reject,nft_redir,nft_quota,nft_objref,nft_numgen,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
nfnetlink              20480  1 nf_tables
nft_chain_nat          16384  2 
nft_ct                 20480 13 
nft_fib                16384  3 nft_fib_inet,nft_fib_ipv6,nft_fib_ipv4
nft_fib_inet           16384  0 
nft_fib_ipv4           16384  1 nft_fib_inet
nft_fib_ipv6           16384  1 nft_fib_inet
nft_flow_offload       16384  0 
nft_hash               16384  0 
nft_limit              16384  5 
nft_log                16384  0 
nft_masq               16384  1 
nft_nat                16384  0 
nft_numgen             16384  0 
nft_objref             16384  9 
nft_quota              16384  0 
nft_redir              16384  0 
nft_reject             16384  3 nft_reject_ipv6,nft_reject_ipv4,nft_reject_inet
nft_reject_inet        16384  2 
nft_reject_ipv4        16384  0 
nft_reject_ipv6        16384  0 
ohci_hcd               49152  1 ohci_platform
ohci_platform          16384  0 
option                 61440  1 
ppp_async              24576  0 
ppp_generic            45056  6 pppoe,pptp,pppox,ppp_mppe,ppp_async,pppoatm
ppp_mppe               16384  0 
pppoatm                20480  0 
pppoe                  24576  0 
pppox                  20480  2 pppoe,pptp
pptp                   32768  0 
pwm_fan                16384  0 
qcserial               20480  0 
qmi_wwan               32768  0 
rndis_host             16384  0 
rtc_pcf8563            20480  0 
seqiv                  16384  0 
sfp                    32768  0 
sha1_ce                16384  0 
sha1_generic           16384  2 crypto_safexcel,sha1_ce
sha512_arm64           20480  0 
slhc                   16384  1 ppp_generic
ts_bm                  16384  0 
ts_fsm                 16384  0 
ts_kmp                 16384  6 
uhci_hcd               36864  0 
usb_common             16384  6 xhci_plat_hcd,xhci_hcd,ohci_platform,ohci_hcd,ehci_platform,usbcore
usb_wwan               24576  2 qcserial,option
usbatm                 28672  0 
usbcore               196608 29 qcserial,option,cdc_mbim,usb_wwan,rndis_host,qmi_wwan,cdc_subset,cdc_ncm,cdc_ether,cdc_eem,usbserial,usbnet,usbhid,usbatm,hso,cdc_wdm,cdc_acm,xhci_plat_hcd,xhci_pci,xhci_mtk_hcd,xhci_hcd,uhci_hcd,ohci_platform,ohci_hcd,ehci_pci,ehci_platform,ehci_fsl,ehci_hcd
usbhid                 40960  0 
usbnet                 32768  7 cdc_mbim,rndis_host,qmi_wwan,cdc_subset,cdc_ncm,cdc_ether,cdc_eem
usbserial              32768  5 qcserial,option,usb_wwan
wwan                   24576  2 mhi_wwan_mbim,mhi_wwan_ctrl
x_tables               32768 37 xt_connlimit,iptable_nat,xt_state,xt_nat,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_REDIRECT,xt_NETMAP,xt_MASQUERADE,xt_CT,ipt_REJECT,xt_time,xt_tcpudp,xt_recent,xt_quota,xt_pkttype,xt_owner,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_cgroup,xt_addrtype,xt_TCPMSS,xt_LOG,iptable_raw,iptable_mangle,iptable_filter,ip6table_raw,ip_tables,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xhci_hcd              143360  3 xhci_plat_hcd,xhci_pci,xhci_mtk_hcd
xhci_mtk_hcd           24576  0 
xhci_pci               20480  0 
xhci_plat_hcd          16384  0 
xt_CT                  16384  0 
xt_LOG                 16384  0 
xt_MASQUERADE          16384  0 
xt_NETMAP              16384  0 
xt_REDIRECT            16384  0 
xt_TCPMSS              16384  0 
xt_addrtype            16384  0 
xt_cgroup              16384  0 
xt_comment             16384  0 
xt_connbytes           16384  0 
xt_connlimit           16384  0 
xt_connmark            16384  0 
xt_conntrack           16384  0 
xt_helper              16384  0 
xt_limit               16384  0 
xt_mac                 16384  0 
xt_mark                16384  0 
xt_multiport           16384  0 
xt_nat                 16384  0 
xt_owner               16384  0 
xt_pkttype             16384  0 
xt_quota               16384  0 
xt_recent              24576  0 
xt_state               16384  0 
xt_tcpudp              16384  0 
xt_time                16384  0 
root@OpenWrt:/# opkg list | grep helper
kmod-nf-nathelper - 6.1.81-1
kmod-nf-nathelper-extra - 6.1.81-1

Hi everyone, I tried to compile the Open WRT image by cloning the official vendor repository: GitHub - BPI-SINOVOIP/BPI-R4-OPENWRT-V21.02

I performed this procedure:

sudo apt-get update
sudo apt-get install git gcc binutils bzip2 flex python3 perl make grep unzip gawk subversion libz-dev libc-dev rsync
git clone https://github.com/BPI-SINOVOIP/BPI-R4-OPENWRT-V21.02
cd BPI-R4-OPENWRT-V21.02/
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j$(nproc) V=s

Compilation fails with an error related to the cryptsetup library. I noticed that some partially compiled modules remain in the build folder: json-c-0.15, libubox-2021-05-16-b14c4688 and opkg-2021-06-13-1bf042dd

root@vbox:/home/ubuntu/BPI-R4-OPENWRT-V21.02# make -j1 V=s VERBOSE=1
WARNING: Makefile 'package/feeds/mtk_openwrt_feed/flowtable/Makefile' has a dependency on 'kmod-nf-flow-netlink', which does not exist
make[1]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[2]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[3]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux'
make[4]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79'
rm -f /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/localversion
/home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/kconfig.pl  + + /home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/generic/config-5.4 /home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79/config-5.4 /home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79/generic/config-default > /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/ubuntu/BPI-R4-OPENWRT-V21.02/.config >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target
/home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/package-metadata.pl kconfig /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/.packageinfo /home/ubuntu/BPI-R4-OPENWRT-V21.02/.config 5.4 > /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.override
/home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/kconfig.pl 'm+' '+' /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.target /dev/null /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.override > /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set
mv /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.old
grep -v INITRAMFS /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.old > /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set
rm -rf /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/modules
cmp -s /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.prev || { cp /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config; cp /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.prev; }
export MAKEFLAGS= ; [ -d /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/user_headers ] || make -C /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246 KCFLAGS="-fmacro-prefix-map=/home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl=target-mips_24kc_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Fri Feb  2 03:38:38 2024" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.4.246 CC="mips-openwrt-linux-musl-gcc" INSTALL_HDR_PATH=/home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/user_headers headers_install
grep '=[ym]' /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.config.set | LC_ALL=C sort | mkhash md5 > /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.vermagic
touch /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.configured
rm -f /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/vmlinux /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/System.map
make -C /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246 KCFLAGS="-fmacro-prefix-map=/home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl=target-mips_24kc_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Fri Feb  2 03:38:38 2024" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.4.246 CC="mips-openwrt-linux-musl-gcc" modules
make[5]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246'
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  Building modules, stage 2.
  MODPOST 74 modules
make[5]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246'
touch /home/ubuntu/BPI-R4-OPENWRT-V21.02/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.4.246/.modules
make -C image compile TARGET_BUILD=
make[5]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79/image'
make[5]: Nothing to be done for 'compile'.
make[5]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79/image'
make[4]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux/ath79'
make[3]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/target/linux'
time: target/linux/compile#8.02#2.05#9.70
make[2]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
export MAKEFLAGS= ;make -w -r buildinfo
make[2]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
 make[3] diffconfig buildversion feedsversion
make[2]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[2]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
rm -rf /home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/target-mips_24kc_musl/root-ath79
make[2]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[2]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[3]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/libs/libjson-c'
mkdir -p /home/ubuntu/BPI-R4-OPENWRT-V21.02/dl
SHELL= flock /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/.json-c-0.15-nodoc.tar.gz.flock -c '        /home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/download.pl "/home/ubuntu/BPI-R4-OPENWRT-V21.02/dl" "json-c-0.15-nodoc.tar.gz" "99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878" "" "https://s3.amazonaws.com/json-c_releases/releases/"    '
make[3]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/libs/libjson-c'
time: package/libs/libjson-c/host-compile#0.29#0.05#0.29
make[3]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/libs/libubox'
mkdir -p /home/ubuntu/BPI-R4-OPENWRT-V21.02/dl
SHELL= flock /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/.libubox-2021-05-16-b14c4688.tar.xz.flock -c '      /home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/download.pl "/home/ubuntu/BPI-R4-OPENWRT-V21.02/dl" "libubox-2021-05-16-b14c4688.tar.xz" "7dd1db1e0074a9c7c722db654cce3111b3bd3cff0bfd791c4497cb0f6c22d3ca" "" || (       echo "Checking out files from the git repository..."; mkdir -p /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl && cd /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl && rm -rf libubox-2021-05-16-b14c4688 && [ \! -d libubox-2021-05-16-b14c4688 ] && git clone  https://git.openwrt.org/project/libubox.git libubox-2021-05-16-b14c4688 && (cd libubox-2021-05-16-b14c4688 && git checkout b14c4688612c05c78ce984d7bde633bce8703b1e && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd libubox-2021-05-16-b14c4688 && git log -1 --format='\''@%ct'\''` && rm -rf libubox-2021-05-16-b14c4688/.git &&    tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c libubox-2021-05-16-b14c4688 |   xz -zc -7e > /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl/libubox-2021-05-16-b14c4688.tar.xz && mv /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl/libubox-2021-05-16-b14c4688.tar.xz /home/ubuntu/BPI-R4-OPENWRT-V21.02/dl/ && rm -rf libubox-2021-05-16-b14c4688;  )    '
make[3]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/libs/libubox'
time: package/libs/libubox/host-compile#0.24#0.05#0.26
make[3]: Entering directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/system/opkg'
mkdir -p /home/ubuntu/BPI-R4-OPENWRT-V21.02/dl
SHELL= flock /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/.opkg-2021-06-13-1bf042dd.tar.xz.flock -c '         /home/ubuntu/BPI-R4-OPENWRT-V21.02/scripts/download.pl "/home/ubuntu/BPI-R4-OPENWRT-V21.02/dl" "opkg-2021-06-13-1bf042dd.tar.xz" "aeda4e0f11805bf95fc7be6d38391ce579acd965c8ba6a490b3e8669815b7264" "" || (          echo "Checking out files from the git repository..."; mkdir -p /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl && cd /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl && rm -rf opkg-2021-06-13-1bf042dd && [ \! -d opkg-2021-06-13-1bf042dd ] && git clone  https://git.openwrt.org/project/opkg-lede.git opkg-2021-06-13-1bf042dd && (cd opkg-2021-06-13-1bf042dd && git checkout 1bf042dd06751b693a8544d2317e5b969d666b69 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd opkg-2021-06-13-1bf042dd && git log -1 --format='\''@%ct'\''` && rm -rf opkg-2021-06-13-1bf042dd/.git &&    tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c opkg-2021-06-13-1bf042dd |      xz -zc -7e > /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl/opkg-2021-06-13-1bf042dd.tar.xz && mv /home/ubuntu/BPI-R4-OPENWRT-V21.02/tmp/dl/opkg-2021-06-13-1bf042dd.tar.xz /home/ubuntu/BPI-R4-OPENWRT-V21.02/dl/ && rm -rf opkg-2021-06-13-1bf042dd;  )    '
make[3]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02/package/system/opkg'
time: package/system/opkg/host-compile#0.25#0.06#0.28
make[2]: *** No rule to make target 'package/cryptsetup/host/compile', needed by 'package/compile'.  Stop.
make[2]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make[1]: *** [package/Makefile:116: /home/ubuntu/BPI-R4-OPENWRT-V21.02/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ubuntu/BPI-R4-OPENWRT-V21.02'
make: *** [/home/ubuntu/BPI-R4-OPENWRT-V21.02/include/toplevel.mk:230: world] Error 2

My goal is to get a working image to be able to install docker inside this device. For this purpose I have enabled some kernel modules that I believe are necessary for this purpose:

CONFIG_KERNEL_AIO=y
CONFIG_KERNEL_BLK_CGROUP=y
CONFIG_KERNEL_BLK_DEV_BSG=y
CONFIG_KERNEL_BLK_DEV_THROTTLING=y
CONFIG_KERNEL_CFQ_GROUP_IOSCHED=y
CONFIG_KERNEL_CGROUPS=y
CONFIG_KERNEL_CGROUP_CPUACCT=y
CONFIG_KERNEL_CGROUP_DEVICE=y
CONFIG_KERNEL_CGROUP_FREEZER=y
CONFIG_KERNEL_CGROUP_PERF=y
CONFIG_KERNEL_CGROUP_PIDS=y
CONFIG_KERNEL_CGROUP_SCHED=y
CONFIG_KERNEL_CPUSETS=y
CONFIG_KERNEL_DEVPTS_MULTIPLE_INSTANCES=y
CONFIG_KERNEL_DEVTMPFS=y
CONFIG_KERNEL_FANOTIFY=y
CONFIG_KERNEL_FHANDLE=y
CONFIG_KERNEL_FREEZER=y
CONFIG_KERNEL_IPC_NS=y
CONFIG_KERNEL_MEMCG=y
CONFIG_KERNEL_MEMCG_KMEM=y
CONFIG_KERNEL_MEMCG_SWAP=y
CONFIG_KERNEL_MM_OWNER=y
CONFIG_KERNEL_NAMESPACES=y
CONFIG_KERNEL_NET_CLS_CGROUP=y
CONFIG_KERNEL_NET_NS=y
CONFIG_KERNEL_PERF_EVENTS=y
CONFIG_KERNEL_PID_NS=y
CONFIG_KERNEL_POSIX_MQUEUE=y
CONFIG_KERNEL_PROC_PID_CPUSET=y
CONFIG_KERNEL_RESOURCE_COUNTERS=y
CONFIG_KERNEL_USER_NS=y
CONFIG_PACKAGE_kmod-veth=y

Can anyone tell me where I’m wrong?

may i ask why you clone the vendor version and not the snapshot of openwrt? because the snapshot version works like a charm. i also had a lot of trouble with the vendor version (required old version of packages). you must NOT run ./scripts/feeds when building the sinovoip version! When you go with the official openwrt snapshot, you can and should update the packages with ./scripts/feeds

Hi, I’m still thinking that something is wrong with the PCIe slot: gist:de8a0726f22b97de72558a59029225ff · GitHub after trying to connect the Intel BE200 wireless card. I tried different adapters + different slots,I checked the card on old laptop which is taking good performance results (also I got another card base on mt7921e which is working normally on BPI-R4 in both slots). I also asked a commit author firmware: add Intel BE200 firmware by januszdziedzic · Pull Request #14531 · openwrt/openwrt · GitHub if the card is working normally on his device and he confirm, that everything is fine on his bpi-r64 device.

The boot log is completely innocent. The two mPCIe slots both report a link, the two M.2 slots both report that the link is down. It can be an electrical problem (we’ve had this before and maybe we again miss a filter capacitor somewhere) or a problem with PCIe power management, for example. If we know what the problem is we might be able to solve it in software, but there are chances that it’s a hardware incompatibility.

Just for clarification because I see people again and again assuming that error -517 is an error, it is not:

So those lines in the bootlog saying

[    0.051838] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517

basically just means that the clk driver has not yet been loaded and the kernel should try again to bring up the PCIe driver at a later point. Really not an error, but something completely normal.

1 Like

Thanks for the very detailed answer

The BE200 cards are well known to only work in recent Intel systems. It is not known if this is something Intel did intentionally, or if support can be added to other platforms.

Yes, there was many threads on reddit about it. I still consider that it will not work on BPI-R4, but according to the OpenWRT forum, it is working for some users on BPI-R64 and Nvidia Jetson. Maybe they have different cards, maybe they have different adapters… Now I ordered two more adapters, just to remove suspicion.