[BPI-R4] how to activate key B PCIe2 @ 11280000? [solved]

In typical tech support fashion, I was working on writing up everything for the ticket, and lo and behold my T99W175 is now working just fine on r25557:

# lspci
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0001:01:00.0 Network controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc SDX55 [Snapdragon X55 5G]

It turns out the problem was that when I flashed the new openwrt built, the system rebooted, but it wasn’t a hard reboot. After pressing the physical reset button, now the card comes up fine on boot!

1 Like

i can confirm pci2 (key-b working with the clock-patch) on r4 with nvme+key-bm adapter

https://de.aliexpress.com/item/1005006365425938.html

# cat /proc/partitions                                                                                                                
major minor  #blocks  name                                                                                                            
                                                                                                                                      
  31        0       2048 mtdblock0                                                                                                    
  31        1     129024 mtdblock1                                                                                                    
 179        0   31260672 mmcblk0                                                                                                      
 179        1       4079 mmcblk0p1                                                                                                    
 179        2        512 mmcblk0p2                                                                                                    
 179        3       2048 mmcblk0p3                                                                                                    
 179        4       2048 mmcblk0p4                                                                                                    
 179        5     102400 mmcblk0p5                                                                                                    
 179        6    6291456 mmcblk0p6                                                                                                    
 259        0  250059096 nvme0n1                                                                                                      
 259        1     665600 nvme0n1p1                                                                                                    
 259        2     131072 nvme0n1p2                                                                                                    
 259        3   84667392 nvme0n1p3                                                                                                    
 259        4    1013760 nvme0n1p4                                                                                                    
 259        5   18852864 nvme0n1p5                                                                                                    
 259        6    1349632 nvme0n1p6                                                                                                    
 259        7   51200195 nvme0n1p7                                                                                                    
 259        8   51200000 nvme0n1p8                                                                                                    
 259        9   40958976 nvme0n1p9                                                                                                    
 259       10  488386584 nvme1n1                                                                                                      
 259       11     523264 nvme1n1p1                                                                                                    
 259       12    5766144 nvme1n1p2                                                                                                    
# lspci                                                                                                                               
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0000:01:00.0 Network controller: MEDIATEK Corp. Device 7990                                                                           
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0001:01:00.0 Network controller: MEDIATEK Corp. Device 7991                                                                           
0002:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0002:01:00.0 Non-Volatile memory controller: ADATA Technology Co., Ltd. Device 5766 (rev 01)                                          
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0003:01:00.0 Non-Volatile memory controller: SK hynix BC501 NVMe Solid State Drive 512GB                                              
# dmesg | grep -i pcie                                                                                                                
[    2.297614] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:                                                    
[    2.304950] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...                                                                
[    2.311232] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000                                       
[    2.319678] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000                                       
[    2.464801] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000     
[    2.476201] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000    
[    2.487669] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000    
[    2.499133] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000    
[    2.510597] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000   
[    2.522148] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000   
[    2.533698] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000   
[    2.545508] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00                                                            
[    2.578131] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    2.663087] pci 0003:01:00.0: [1c5c:1327] type 00 class 0x010802 PCIe Endpoint                                                     
[    2.690853] pci 0003:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0003:00:00.0 (capable of 15.
752 Gb/s with 8.0 GT/s PCIe x2 link)                                                                                                  
[    2.794095] pcieport 0003:00:00.0: vgaarb: pci_notify                                                                              
[    2.799185] pcieport 0003:00:00.0: assign IRQ: got 111                                                                             
[    2.804318] pcieport 0003:00:00.0: enabling device (0000 -> 0002)                                                                  
[    2.810414] pcieport 0003:00:00.0: enabling bus mastering                                                                          
[    2.816193] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0                                       
[    2.824632] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    2.833062] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2                                       
[    2.841490] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3                                       
[    2.849918] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4                                       
[    2.858349] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5                                       
[    2.866774] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6                                       
[    2.875202] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7                                       
[    2.883634] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8                                       
[    2.892062] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9                                       
[    2.900488] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10                                      
[    2.909002] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11                                      
[    2.917513] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12                                      
[    2.926027] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13                                      
[    2.934540] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14                                      
[    2.943054] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15                                      
[    2.951568] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16                                     
[    2.960168] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17                                     
[    2.968768] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18                                     
[    2.977366] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19                                     
[    2.985969] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20                                     
[    2.994569] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21                                     
[    3.003170] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22                                     
[    3.011770] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23                                     
[    3.020371] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24                                     
[    3.028971] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25                                     
[    3.037569] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26                                     
[    3.046169] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27                                     
[    3.054770] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28                                     
[    3.063369] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29                                     
[    3.071970] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30                                     
[    3.080570] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31                                     
[    3.089577] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0                                       
[    3.098073] pcieport 0003:00:00.0: PME: Signaling with IRQ 112                                                                     
[    3.104021] pcieport 0003:00:00.0: AER: enabled with IRQ 112                                                                       
[    3.109719] pcieport 0003:00:00.0: save config 0x00: 0x798814c3                                                                    
[    3.115630] pcieport 0003:00:00.0: save config 0x04: 0x00100406                                                                    
[    3.121544] pcieport 0003:00:00.0: save config 0x08: 0x06040001                                                                    
[    3.127452] pcieport 0003:00:00.0: save config 0x0c: 0x00010000                                                                    
[    3.133363] pcieport 0003:00:00.0: save config 0x10: 0x20300004                                                                    
[    3.139273] pcieport 0003:00:00.0: save config 0x14: 0x00000000                                                                    
[    3.145181] pcieport 0003:00:00.0: save config 0x18: 0x00010100                                                                    
[    3.151092] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    3.157000] pcieport 0003:00:00.0: save config 0x20: 0x20202020                                                                    
[    3.162917] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1                                                                    
[    3.168827] pcieport 0003:00:00.0: save config 0x28: 0x00000000                                                                    
[    3.174735] pcieport 0003:00:00.0: save config 0x2c: 0x00000000                                                                    
[    3.180645] pcieport 0003:00:00.0: save config 0x30: 0x00000000                                                                    
[    3.186553] pcieport 0003:00:00.0: save config 0x34: 0x00000080                                                                    
[    3.192464] pcieport 0003:00:00.0: save config 0x38: 0x00000000                                                                    
[    3.198374] pcieport 0003:00:00.0: save config 0x3c: 0x0002016f                                                                    
[    3.204311] pcieport 0003:00:00.0: vgaarb: pci_notify                                                                              
[    3.234636] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    3.361601] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    3.370055] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2                                       
[    3.378503] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3                                       
[    3.386944] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4                                       
[    3.395391] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5                                       
[    3.422449] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:                                                    
[    3.429763] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...                                                                
[    3.436028] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000                                       
[    3.444465] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000                                       
[    3.601464] mtk-pcie-gen3 11290000.pcie: set IO trans window[0]: cpu_addr = 0x28000000, pci_addr = 0x28000000, size = 0x200000     
[    3.612848] mtk-pcie-gen3 11290000.pcie: set MEM trans window[1]: cpu_addr = 0x28200000, pci_addr = 0x28200000, size = 0x200000    
[    3.624315] mtk-pcie-gen3 11290000.pcie: set MEM trans window[2]: cpu_addr = 0x28400000, pci_addr = 0x28400000, size = 0x400000    
[    3.635780] mtk-pcie-gen3 11290000.pcie: set MEM trans window[3]: cpu_addr = 0x28800000, pci_addr = 0x28800000, size = 0x800000    
[    3.647243] mtk-pcie-gen3 11290000.pcie: set MEM trans window[4]: cpu_addr = 0x29000000, pci_addr = 0x29000000, size = 0x1000000   
[    3.658794] mtk-pcie-gen3 11290000.pcie: set MEM trans window[5]: cpu_addr = 0x2a000000, pci_addr = 0x2a000000, size = 0x2000000   
[    3.670345] mtk-pcie-gen3 11290000.pcie: set MEM trans window[6]: cpu_addr = 0x2c000000, pci_addr = 0x2c000000, size = 0x4000000   
[    3.682033] mtk-pcie-gen3 11290000.pcie: PCI host bridge to bus 0002:00                                                            
[    3.714831] pci 0002:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    3.799844] pci 0002:01:00.0: [1cc1:5766] type 00 class 0x010802 PCIe Endpoint                                                     
[    3.819618] pci 0002:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.
504 Gb/s with 8.0 GT/s PCIe x4 link)                                                                                                  
[    3.930889] pcieport 0002:00:00.0: vgaarb: pci_notify                                                                              
[    3.935974] pcieport 0002:00:00.0: assign IRQ: got 119                                                                             
[    3.941113] pcieport 0002:00:00.0: enabling device (0000 -> 0002)                                                                  
[    3.947204] pcieport 0002:00:00.0: enabling bus mastering                                                                          
[    3.952958] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0                                       
[    3.961398] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    3.969831] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2                                       
[    3.978261] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3                                       
[    3.986685] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4                                       
[    3.995117] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5                                       
[    4.003545] mtk-pcie-gen3 11290000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11290c00 data 6                                       
[    4.011975] mtk-pcie-gen3 11290000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11290c00 data 7                                       
[    4.020403] mtk-pcie-gen3 11290000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11290c00 data 8                                       
[    4.028833] mtk-pcie-gen3 11290000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11290c00 data 9                                       
[    4.037257] mtk-pcie-gen3 11290000.pcie: msi#0xa address_hi 0x0 address_lo 0x11290c00 data 10                                      
[    4.045779] mtk-pcie-gen3 11290000.pcie: msi#0xb address_hi 0x0 address_lo 0x11290c00 data 11                                      
[    4.054297] mtk-pcie-gen3 11290000.pcie: msi#0xc address_hi 0x0 address_lo 0x11290c00 data 12                                      
[    4.062812] mtk-pcie-gen3 11290000.pcie: msi#0xd address_hi 0x0 address_lo 0x11290c00 data 13                                      
[    4.071328] mtk-pcie-gen3 11290000.pcie: msi#0xe address_hi 0x0 address_lo 0x11290c00 data 14                                      
[    4.079843] mtk-pcie-gen3 11290000.pcie: msi#0xf address_hi 0x0 address_lo 0x11290c00 data 15                                      
[    4.088360] mtk-pcie-gen3 11290000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11290c00 data 16                                     
[    4.096958] mtk-pcie-gen3 11290000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11290c00 data 17                                     
[    4.105559] mtk-pcie-gen3 11290000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11290c00 data 18                                     
[    4.114164] mtk-pcie-gen3 11290000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11290c00 data 19                                     
[    4.122766] mtk-pcie-gen3 11290000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11290c00 data 20                                     
[    4.131370] mtk-pcie-gen3 11290000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11290c00 data 21                                     
[    4.139971] mtk-pcie-gen3 11290000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11290c00 data 22                                     
[    4.148574] mtk-pcie-gen3 11290000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11290c00 data 23                                     
[    4.157172] mtk-pcie-gen3 11290000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11290c00 data 24                                     
[    4.165773] mtk-pcie-gen3 11290000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11290c00 data 25                                     
[    4.174377] mtk-pcie-gen3 11290000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11290c00 data 26                                     
[    4.182978] mtk-pcie-gen3 11290000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11290c00 data 27                                     
[    4.191580] mtk-pcie-gen3 11290000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11290c00 data 28                                     
[    4.200182] mtk-pcie-gen3 11290000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11290c00 data 29                                     
[    4.208784] mtk-pcie-gen3 11290000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11290c00 data 30                                     
[    4.217381] mtk-pcie-gen3 11290000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11290c00 data 31                                     
[    4.226392] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0                                       
[    4.234904] pcieport 0002:00:00.0: PME: Signaling with IRQ 120                                                                     
[    4.240873] pcieport 0002:00:00.0: AER: enabled with IRQ 120                                                                       
[    4.246559] pcieport 0002:00:00.0: save config 0x00: 0x798814c3                                                                    
[    4.252479] pcieport 0002:00:00.0: save config 0x04: 0x00100406                                                                    
[    4.258393] pcieport 0002:00:00.0: save config 0x08: 0x06040001                                                                    
[    4.264302] pcieport 0002:00:00.0: save config 0x0c: 0x00010000                                                                    
[    4.270213] pcieport 0002:00:00.0: save config 0x10: 0x28300004                                                                    
[    4.276121] pcieport 0002:00:00.0: save config 0x14: 0x00000000                                                                    
[    4.282032] pcieport 0002:00:00.0: save config 0x18: 0x00010100                                                                    
[    4.287940] pcieport 0002:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    4.293851] pcieport 0002:00:00.0: save config 0x20: 0x28202820                                                                    
[    4.299761] pcieport 0002:00:00.0: save config 0x24: 0x0001fff1                                                                    
[    4.305669] pcieport 0002:00:00.0: save config 0x28: 0x00000000                                                                    
[    4.311580] pcieport 0002:00:00.0: save config 0x2c: 0x00000000                                                                    
[    4.317487] pcieport 0002:00:00.0: save config 0x30: 0x00000000                                                                    
[    4.323397] pcieport 0002:00:00.0: save config 0x34: 0x00000080                                                                    
[    4.329307] pcieport 0002:00:00.0: save config 0x38: 0x00000000                                                                    
[    4.335214] pcieport 0002:00:00.0: save config 0x3c: 0x00020177                                                                    
[    4.341154] pcieport 0002:00:00.0: vgaarb: pci_notify                                                                              
[    4.371506] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    4.663085] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    4.671540] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2                                       
[    4.679989] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3                                       
[    4.688435] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4                                       
[    4.696875] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5                                       
[    4.728490] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:                                                    
[    4.735797] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...                                                                
[    4.742086] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000                                       
[    4.750523] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000                                       
[    4.893366] mtk-pcie-gen3 11300000.pcie: set IO trans window[0]: cpu_addr = 0x30000000, pci_addr = 0x30000000, size = 0x200000     
[    4.904749] mtk-pcie-gen3 11300000.pcie: set MEM trans window[1]: cpu_addr = 0x30200000, pci_addr = 0x30200000, size = 0x200000    
[    4.916215] mtk-pcie-gen3 11300000.pcie: set MEM trans window[2]: cpu_addr = 0x30400000, pci_addr = 0x30400000, size = 0x400000    
[    4.927679] mtk-pcie-gen3 11300000.pcie: set MEM trans window[3]: cpu_addr = 0x30800000, pci_addr = 0x30800000, size = 0x800000    
[    4.939149] mtk-pcie-gen3 11300000.pcie: set MEM trans window[4]: cpu_addr = 0x31000000, pci_addr = 0x31000000, size = 0x1000000   
[    4.950700] mtk-pcie-gen3 11300000.pcie: set MEM trans window[5]: cpu_addr = 0x32000000, pci_addr = 0x32000000, size = 0x2000000   
[    4.962250] mtk-pcie-gen3 11300000.pcie: set MEM trans window[6]: cpu_addr = 0x34000000, pci_addr = 0x34000000, size = 0x4000000   
[    4.973932] mtk-pcie-gen3 11300000.pcie: PCI host bridge to bus 0000:00                                                            
[    5.006727] pci 0000:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    5.091740] pci 0000:01:00.0: [14c3:7990] type 00 class 0x028000 PCIe Endpoint                                                     
[    5.227994] pcieport 0000:00:00.0: vgaarb: pci_notify                                                                              
[    5.233083] pcieport 0000:00:00.0: assign IRQ: got 127                                                                             
[    5.238217] pcieport 0000:00:00.0: enabling device (0000 -> 0002)                                                                  
[    5.244313] pcieport 0000:00:00.0: enabling bus mastering                                                                          
[    5.250069] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0                                       
[    5.258508] mtk-pcie-gen3 11300000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11300c00 data 1                                       
[    5.266934] mtk-pcie-gen3 11300000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11300c00 data 2                                       
[    5.275366] mtk-pcie-gen3 11300000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11300c00 data 3                                       
[    5.283795] mtk-pcie-gen3 11300000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11300c00 data 4                                       
[    5.292222] mtk-pcie-gen3 11300000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11300c00 data 5                                       
[    5.300649] mtk-pcie-gen3 11300000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11300c00 data 6                                       
[    5.309076] mtk-pcie-gen3 11300000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11300c00 data 7                                       
[    5.317499] mtk-pcie-gen3 11300000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11300c00 data 8                                       
[    5.325926] mtk-pcie-gen3 11300000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11300c00 data 9                                       
[    5.334352] mtk-pcie-gen3 11300000.pcie: msi#0xa address_hi 0x0 address_lo 0x11300c00 data 10                                      
[    5.342866] mtk-pcie-gen3 11300000.pcie: msi#0xb address_hi 0x0 address_lo 0x11300c00 data 11                                      
[    5.351380] mtk-pcie-gen3 11300000.pcie: msi#0xc address_hi 0x0 address_lo 0x11300c00 data 12                                      
[    5.359894] mtk-pcie-gen3 11300000.pcie: msi#0xd address_hi 0x0 address_lo 0x11300c00 data 13                                      
[    5.368408] mtk-pcie-gen3 11300000.pcie: msi#0xe address_hi 0x0 address_lo 0x11300c00 data 14                                      
[    5.376919] mtk-pcie-gen3 11300000.pcie: msi#0xf address_hi 0x0 address_lo 0x11300c00 data 15                                      
[    5.385433] mtk-pcie-gen3 11300000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11300c00 data 16                                     
[    5.394035] mtk-pcie-gen3 11300000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11300c00 data 17                                     
[    5.402637] mtk-pcie-gen3 11300000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11300c00 data 18                                     
[    5.411238] mtk-pcie-gen3 11300000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11300c00 data 19                                     
[    5.419839] mtk-pcie-gen3 11300000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11300c00 data 20                                     
[    5.428440] mtk-pcie-gen3 11300000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11300c00 data 21                                     
[    5.437038] mtk-pcie-gen3 11300000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11300c00 data 22                                     
[    5.445639] mtk-pcie-gen3 11300000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11300c00 data 23                                     
[    5.454243] mtk-pcie-gen3 11300000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11300c00 data 24                                     
[    5.462844] mtk-pcie-gen3 11300000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11300c00 data 25                                     
[    5.471445] mtk-pcie-gen3 11300000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11300c00 data 26                                     
[    5.480045] mtk-pcie-gen3 11300000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11300c00 data 27                                     
[    5.488645] mtk-pcie-gen3 11300000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11300c00 data 28                                     
[    5.497242] mtk-pcie-gen3 11300000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11300c00 data 29                                     
[    5.505842] mtk-pcie-gen3 11300000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11300c00 data 30                                     
[    5.514445] mtk-pcie-gen3 11300000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11300c00 data 31                                     
[    5.523468] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0                                       
[    5.531973] pcieport 0000:00:00.0: PME: Signaling with IRQ 128                                                                     
[    5.537922] pcieport 0000:00:00.0: AER: enabled with IRQ 128                                                                       
[    5.543618] pcieport 0000:00:00.0: save config 0x00: 0x798814c3                                                                    
[    5.549535] pcieport 0000:00:00.0: save config 0x04: 0x00100406                                                                    
[    5.555444] pcieport 0000:00:00.0: save config 0x08: 0x06040001                                                                    
[    5.561356] pcieport 0000:00:00.0: save config 0x0c: 0x00010000                                                                    
[    5.567264] pcieport 0000:00:00.0: save config 0x10: 0x30500004                                                                    
[    5.573178] pcieport 0000:00:00.0: save config 0x14: 0x00000000                                                                    
[    5.579090] pcieport 0000:00:00.0: save config 0x18: 0x00010100                                                                    
[    5.584998] pcieport 0000:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    5.590909] pcieport 0000:00:00.0: save config 0x20: 0x30403040                                                                    
[    5.596816] pcieport 0000:00:00.0: save config 0x24: 0x30313021                                                                    
[    5.602726] pcieport 0000:00:00.0: save config 0x28: 0x00000000                                                                    
[    5.608638] pcieport 0000:00:00.0: save config 0x2c: 0x00000000                                                                    
[    5.614546] pcieport 0000:00:00.0: save config 0x30: 0x00000000                                                                    
[    5.620456] pcieport 0000:00:00.0: save config 0x34: 0x00000080                                                                    
[    5.626364] pcieport 0000:00:00.0: save config 0x38: 0x00000000                                                                    
[    5.632276] pcieport 0000:00:00.0: save config 0x3c: 0x0002017f                                                                    
[    5.638213] pcieport 0000:00:00.0: vgaarb: pci_notify                                                                              
[    5.643506] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:                                                    
[    5.650817] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...                                                                
[    5.657082] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000                                       
[    5.665516] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000                                       
[    5.803351] mtk-pcie-gen3 11310000.pcie: set IO trans window[0]: cpu_addr = 0x38000000, pci_addr = 0x38000000, size = 0x200000     
[    5.814735] mtk-pcie-gen3 11310000.pcie: set MEM trans window[1]: cpu_addr = 0x38200000, pci_addr = 0x38200000, size = 0x200000    
[    5.826201] mtk-pcie-gen3 11310000.pcie: set MEM trans window[2]: cpu_addr = 0x38400000, pci_addr = 0x38400000, size = 0x400000    
[    5.837668] mtk-pcie-gen3 11310000.pcie: set MEM trans window[3]: cpu_addr = 0x38800000, pci_addr = 0x38800000, size = 0x800000    
[    5.849132] mtk-pcie-gen3 11310000.pcie: set MEM trans window[4]: cpu_addr = 0x39000000, pci_addr = 0x39000000, size = 0x1000000   
[    5.860682] mtk-pcie-gen3 11310000.pcie: set MEM trans window[5]: cpu_addr = 0x3a000000, pci_addr = 0x3a000000, size = 0x2000000   
[    5.872232] mtk-pcie-gen3 11310000.pcie: set MEM trans window[6]: cpu_addr = 0x3c000000, pci_addr = 0x3c000000, size = 0x4000000   
[    5.883901] mtk-pcie-gen3 11310000.pcie: PCI host bridge to bus 0001:00                                                            
[    5.916691] pci 0001:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    6.001651] pci 0001:01:00.0: [14c3:7991] type 00 class 0x028000 PCIe Endpoint                                                     
[    6.137993] pcieport 0001:00:00.0: vgaarb: pci_notify                                                                              
[    6.143080] pcieport 0001:00:00.0: assign IRQ: got 130                                                                             
[    6.148212] pcieport 0001:00:00.0: enabling device (0000 -> 0002)                                                                  
[    6.154308] pcieport 0001:00:00.0: enabling bus mastering                                                                          
[    6.160041] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0                                       
[    6.168479] mtk-pcie-gen3 11310000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11310c00 data 1                                       
[    6.176905] mtk-pcie-gen3 11310000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11310c00 data 2                                       
[    6.185336] mtk-pcie-gen3 11310000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11310c00 data 3                                       
[    6.193766] mtk-pcie-gen3 11310000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11310c00 data 4                                       
[    6.202194] mtk-pcie-gen3 11310000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11310c00 data 5                                       
[    6.210622] mtk-pcie-gen3 11310000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11310c00 data 6                                       
[    6.219049] mtk-pcie-gen3 11310000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11310c00 data 7                                       
[    6.227474] mtk-pcie-gen3 11310000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11310c00 data 8                                       
[    6.235901] mtk-pcie-gen3 11310000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11310c00 data 9                                       
[    6.244328] mtk-pcie-gen3 11310000.pcie: msi#0xa address_hi 0x0 address_lo 0x11310c00 data 10                                      
[    6.252842] mtk-pcie-gen3 11310000.pcie: msi#0xb address_hi 0x0 address_lo 0x11310c00 data 11                                      
[    6.261357] mtk-pcie-gen3 11310000.pcie: msi#0xc address_hi 0x0 address_lo 0x11310c00 data 12                                      
[    6.269871] mtk-pcie-gen3 11310000.pcie: msi#0xd address_hi 0x0 address_lo 0x11310c00 data 13                                      
[    6.278390] mtk-pcie-gen3 11310000.pcie: msi#0xe address_hi 0x0 address_lo 0x11310c00 data 14                                      
[    6.286902] mtk-pcie-gen3 11310000.pcie: msi#0xf address_hi 0x0 address_lo 0x11310c00 data 15                                      
[    6.295415] mtk-pcie-gen3 11310000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11310c00 data 16                                     
[    6.304020] mtk-pcie-gen3 11310000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11310c00 data 17                                     
[    6.312622] mtk-pcie-gen3 11310000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11310c00 data 18                                     
[    6.321223] mtk-pcie-gen3 11310000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11310c00 data 19                                     
[    6.329824] mtk-pcie-gen3 11310000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11310c00 data 20                                     
[    6.338425] mtk-pcie-gen3 11310000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11310c00 data 21                                     
[    6.347022] mtk-pcie-gen3 11310000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11310c00 data 22                                     
[    6.355623] mtk-pcie-gen3 11310000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11310c00 data 23                                     
[    6.364224] mtk-pcie-gen3 11310000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11310c00 data 24                                     
[    6.372825] mtk-pcie-gen3 11310000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11310c00 data 25                                     
[    6.381425] mtk-pcie-gen3 11310000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11310c00 data 26                                     
[    6.390026] mtk-pcie-gen3 11310000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11310c00 data 27                                     
[    6.398627] mtk-pcie-gen3 11310000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11310c00 data 28                                     
[    6.407225] mtk-pcie-gen3 11310000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11310c00 data 29                                     
[    6.415825] mtk-pcie-gen3 11310000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11310c00 data 30                                     
[    6.424428] mtk-pcie-gen3 11310000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11310c00 data 31                                     
[    6.433464] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0                                       
[    6.441967] pcieport 0001:00:00.0: PME: Signaling with IRQ 131                                                                     
[    6.447910] pcieport 0001:00:00.0: AER: enabled with IRQ 131                                                                       
[    6.453606] pcieport 0001:00:00.0: save config 0x00: 0x798814c3                                                                    
[    6.459522] pcieport 0001:00:00.0: save config 0x04: 0x00100406                                                                    
[    6.465431] pcieport 0001:00:00.0: save config 0x08: 0x06040001                                                                    
[    6.471344] pcieport 0001:00:00.0: save config 0x0c: 0x00010000                                                                    
[    6.477252] pcieport 0001:00:00.0: save config 0x10: 0x38500004                                                                    
[    6.483163] pcieport 0001:00:00.0: save config 0x14: 0x00000000                                                                    
[    6.489075] pcieport 0001:00:00.0: save config 0x18: 0x00010100                                                                    
[    6.494983] pcieport 0001:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    6.500893] pcieport 0001:00:00.0: save config 0x20: 0x38403840                                                                    
[    6.506801] pcieport 0001:00:00.0: save config 0x24: 0x38313821                                                                    
[    6.512712] pcieport 0001:00:00.0: save config 0x28: 0x00000000                                                                    
[    6.518622] pcieport 0001:00:00.0: save config 0x2c: 0x00000000                                                                    
[    6.524530] pcieport 0001:00:00.0: save config 0x30: 0x00000000                                                                    
[    6.530440] pcieport 0001:00:00.0: save config 0x34: 0x00000080                                                                    
[    6.536349] pcieport 0001:00:00.0: save config 0x38: 0x00000000                                                                    
[    6.542263] pcieport 0001:00:00.0: save config 0x3c: 0x00020182                                                                    
[    6.548200] pcieport 0001:00:00.0: vgaarb: pci_notify                                                                              
#

but it is not detected in uboot ;( the pcie2/key-b slot needs a specific xs-phy which does not have a driver in uboot, but as we only need nvme in uboot which is connected via pcie3/key-m slot i guess we just drop this slot from uboot

1 Like

I know this thread is a couple months old but it’s about the exact modem I’m trying to get working on the bpi r4 and I’m having the same problem as @dangowrt last posted about.

I’m currently running snapshot r26488.

I can see the modem listed in lspci

0003:01:00.0 Unassigned class [ff00]: Foxconn International, Inc. Device e0b0
        Subsystem: Qualcomm Technologies, Inc 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, IntMsgNum 0
        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 <?>

But no device is loading in /dev/

mmcli -m 0 says “couldn’t find modem”

dmesg is showing multiple lines of probe of xxx.pcie failed with error -110

I’ve installed a lot of both qmi and mbim packages to try and get this working. Not sure what I’m missing.

The image I am using did come from firmware-selector.openwrt.org, maybe that is the problem? It’s not one of these other images built by someone else? But reading through the thread it seemed to indicated the changes were merged into openwrt master?

However, the reference pull request doesn’t seem to exist anymore so I’m wondering if it actulally is.

Is there some file i’m supposed to manual modify to get it working or something?

The 110 error (etimedout) is normal for slots not having a card inserted (r4 has 4 pcie ports).

As you see card in lspcie this step is already done…so from pcie view card is recognized…

But i see the class seems not correct. This is maybe the problem why driver does not map. This is still pcie driver but later than normal “detection”

Ok, are you able to point me in a direction on what the next steps are to figure out / fix the problem? How do I get the correct class in lspci? Sorry, driver level stuff and beyond is a little out of my depth.

We had a similar issue with coral cards on r64,maybe it helps here

But i’m also no pcie expert

Hmmm bummer, I guess I’ll have to post somewhere else and see if anyone got this particular modem to work somehow. I don’t really have the time right now to try a figure out how to set up an environment and compile openwrt myself to try making any code changes.

To me it looks like you are simply lacking the drivers. Try installing kmod-mhi-pci-generic, kmod-mhi-wwan-ctrl, kmod-mhi-net, kmod-mhi-wwan-mbim. That should allow you to detect and use the modem.

I had most of those already installed but a couple did install.

Now the modem is showing as a Wireless Controller in lspci

0003:01:00.0 Wireless controller [0d40]: Foxconn International, Inc. Device e0b0
        Subsystem: Foxconn International, Inc. Device e0b0
        Flags: fast devsel, IRQ 120
        Memory at 20200000 (64-bit, non-prefetchable) [size=4K]
        Memory at 20201000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=8/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, IntMsgNum 0
        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 <?>
        Kernel driver in use: mhi-pci-generic

Using driver mhi-pci-generic.

Still not being detected by ModemManager, and still no devices under /dev/ for it.

Probably is a driver issue, but not sure what driver I’m missing =/ Seems like I’ve installed nearly every package that has mhi, qmi, or mbim in the name lol

The main driver bound with the modem, so that’s ok now at least. Maybe share your full kernel log (dmesg) so we can know what’s missing.

Also ModemManager sometimes fails to detect the T99W175 modem depending on the firmware version of the modem. However, OpenWrt umbim (and luci-proto-mbim) should always work.

Here:

root@bpi-r4:/# rmmod mhi_wwan_ctrl
[  692.447179] wwan wwan0: port wwan0at0 disconnected
[  692.452114] wwan wwan0: port wwan0mbim0 disconnected
[  692.457198] wwan wwan0: port wwan0qcdm0 disconnected
root@bpi-r4:/# modprobe mhi_wwan_ctrl
[  704.615764] mhi-pci-generic 0003:01:00.0: PME# disabled
[  704.621003] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[  704.652384] wwan wwan0: port wwan0qcdm0 attached
[  704.657207] wwan wwan0: port wwan0mbim0 attached
[  704.662015] wwan wwan0: port wwan0at0 attached
root@bpi-r4:/# ls -l /dev/wwan0*
crw-------    1 root     root      247,   2 Jun  4 03:02 /dev/wwan0at0
crw-------    1 root     root      247,   1 Jun  4 03:02 /dev/wwan0mbim0
crw-------    1 root     root      247,   0 Jun  4 03:02 /dev/wwan0qcdm0
root@bpi-r4:/# umbim -d /dev/wwan0mbim0 caps
[  593.810784] mhi-pci-generic 0003:01:00.0: PME# disabled
[  593.816033] mhi-pci-generic 0003:01:00.0: enabling bus mastering
  devicetype: 0001 - embedded
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 8000007C
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 000F
  deviceid: XXXXXXXXXXXXXXX
  firmwareinfo: T99W175.T3.0.0.4.5.CU.002
031
  hardwareinfo: Snapdragon(TM) X55

Hmm so I rebooted and now there are some wwan0 devices. The same 3 you list actually. I’ll put dmesg at the end of this post.

Interestingly modprob mhi_wwan_ctrl tells me

modprobe: FATAL: Module mhi_wwan_ctrl not found in directory /lib/modules/6.6.32

But opkg install kmod-mhi-wwan-ctrl says “installed in root is up to date”

root@zombie-home:~# umbim -d /dev/wwan0mbim0 caps
  devicetype: 0001 - embedded
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 0000
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 000F
  deviceid: ******
  firmwareinfo: T99W175.F0.0.0.5.4.GC.004
062
  hardwareinfo: DELL Snapdragon X55

I tried going in through luci web interface and adding a new network interface using protocol MBIM Cellular, APN fast.t-mobile.com (what I found online for t-mo which is the sim card type I have in sim1). And pointed it at device /dev/wwan0mbim0. After adding that interface and saving and applying it shows up with “Error: Network device is not present”

dmesg:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd090]
[    0.000000] Linux version 6.6.32 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26504-d4acd05218) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sun Jun  2 20:43:46 2024
[    0.000000] Machine model: Bananapi BPI-R4
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004304ffff (320 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004304ffff]
[    0.000000]   node   0: [mem 0x0000000043050000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.4
[    0.000000] percpu: Embedded 18 pages/cpu s35048 r8192 d30488 u73728
[    0.000000] pcpu-alloc: s35048 r8192 d30488 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa7b6000-0x00000000fe7b6000] (64MB)
[    0.000000] Memory: 4034116K/4194304K available (8768K kernel code, 900K rwdata, 2564K rodata, 384K init, 304K bss, 160188K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 416 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000060] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000066] pid_max: default: 32768 minimum: 301
[    0.002140] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002153] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003638] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.003921] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.003999] rcu: Hierarchical SRCU implementation.
[    0.004001] rcu: 	Max phase no-delay instances is 1000.
[    0.004281] smp: Bringing up secondary CPUs ...
[    0.004493] Detected VIPT I-cache on CPU1
[    0.004526] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.004547] CPU1: Booted secondary processor 0x0000000001 [0x411fd090]
[    0.004793] Detected VIPT I-cache on CPU2
[    0.004813] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.004823] CPU2: Booted secondary processor 0x0000000002 [0x411fd090]
[    0.005052] Detected VIPT I-cache on CPU3
[    0.005072] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.005082] CPU3: Booted secondary processor 0x0000000003 [0x411fd090]
[    0.005111] smp: Brought up 1 node, 4 CPUs
[    0.005115] SMP: Total of 4 processors activated.
[    0.005118] CPU features: detected: 32-bit EL0 Support
[    0.005120] CPU features: detected: CRC32 instructions
[    0.005137] spectre-bhb mitigation disabled by compile time option
[    0.005151] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005153] CPU: All CPU(s) started at EL2
[    0.005155] alternatives: applying system-wide alternatives
[    0.008247] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008259] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.009212] pinctrl core: initialized pinctrl subsystem
[    0.010065] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010343] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.010443] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010537] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.010797] thermal_sys: Registered thermal governor 'fair_share'
[    0.010800] thermal_sys: Registered thermal governor 'bang_bang'
[    0.010801] thermal_sys: Registered thermal governor 'step_wise'
[    0.010803] thermal_sys: Registered thermal governor 'user_space'
[    0.010842] ASID allocator initialised with 65536 entries
[    0.011587] pstore: Using crash dump compression: deflate
[    0.011592] printk: console [ramoops-1] enabled
[    0.011812] pstore: Registered ramoops as persistent store backend
[    0.011817] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.018612] Modules: 29504 pages in range for non-PLT usage
[    0.018619] Modules: 521024 pages in range for PLT usage
[    0.019292] cryptd: max_cpu_qlen set to 1000
[    0.020025] SCSI subsystem initialized
[    0.020099] libata version 3.00 loaded.
[    0.020955] clocksource: Switched to clocksource arch_sys_counter
[    0.022610] NET: Registered PF_INET protocol family
[    0.022740] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.025274] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.025298] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.025308] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.025407] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.025819] TCP: Hash tables configured (established 32768 bind 32768)
[    0.025909] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.025967] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.026303] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.026345] PCI: CLS 0 bytes, default 64
[    0.027285] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.031000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.031006] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.048946] jitterentropy: Initialization failed with host not compliant with requirements: 9
[    0.048990] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.049874] mtk-xsphy soc:xphy@11e10000: failed to get ref_clk(id-1)
[    0.050395] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.050414] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.050426] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.050438] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.050525] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.050535] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.050545] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.050554] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.050573] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.050581] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.050642] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.050652] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.050661] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.050671] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.050687] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.050695] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.050767] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.050777] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.050787] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.050796] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.050811] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.050819] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    0.055174] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.057323] printk: console [ttyS0] disabled
[    0.077610] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 99, base_baud = 2500000) is a ST16650V2
[    0.077646] printk: console [ttyS0] enabled
[    1.000868] 11000100.serial: ttyS1 at MMIO 0x11000100 (irq = 100, base_baud = 2500000) is a ST16650V2
[    1.030740] 11000200.serial: ttyS2 at MMIO 0x11000200 (irq = 101, base_baud = 2500000) is a ST16650V2
[    1.042635] loop: module loaded
[    1.047053] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.052393] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.060618] 2 fixed-partitions partitions found on MTD device spi0.0
[    1.066986] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    1.073914] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    1.080928] Creating 2 MTD partitions on "spi0.0":
[    1.085719] 0x000000000000-0x000000200000 : "bl2"
[    1.091801] 0x000000200000-0x000008000000 : "ubi"
[    1.168623] ubi0: default fastmap pool size: 50
[    1.173165] ubi0: default fastmap WL pool size: 25
[    1.177944] ubi0: attaching mtd1
[    1.998153] ubi0: scanning is finished
[    2.011781] ubi0: attached mtd1 (name "ubi", size 126 MiB)
[    2.017264] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.024134] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.030908] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.037860] ubi0: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
[    2.043942] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    2.051152] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[    2.059489] ubi0: available PEBs: 0, total reserved PEBs: 1008, PEBs reserved for bad PEB handling: 20
[    2.068786] ubi0: background thread "ubi_bgt0d" started, PID 314
[    2.068872] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    2.081751] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    2.090311] block ubiblock0_4: created from ubi0:4(fit)
[    2.222367] i2c_dev: i2c /dev entries driver
[    2.229623] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.237680] mtk-cpufreq mtk-cpufreq: failed to initialize dvfs info for cpu0
[    2.245375] NET: Registered PF_INET6 protocol family
[    2.250762] Segment Routing with IPv6
[    2.254443] In-situ OAM (IOAM) with IPv6
[    2.258384] NET: Registered PF_PACKET protocol family
[    2.263444] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.276477] 8021q: 802.1Q VLAN Support v1.8
[    2.293014] phy phy-soc:[email protected]: type_sw - reg 0x218, index 0
[    2.300171] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.307512] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.313796] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.322238] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.359287] mtk-msdc 11230000.mmc: Final PAD_DS_TUNE: 0x13014
[    2.365158] mmc0: new HS400 MMC card at address 0001
[    2.370720] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[    2.376282] Alternate GPT is invalid, using primary GPT.
[    2.381843]  mmcblk0: p1 p2 p3 p4 p5 p128
[    2.386684] mmcblk0boot0: mmc0:0001 8GTF4R 4.00 MiB
[    2.392175] mmcblk0boot1: mmc0:0001 8GTF4R 4.00 MiB
[    2.397264] mmcblk0rpmb: mmc0:0001 8GTF4R 512 KiB, chardev (248:0)
[    2.616515] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000
[    2.627903] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000
[    2.639367] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000
[    2.650831] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000
[    2.662295] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000
[    2.673845] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000
[    2.685395] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000
[    2.697190] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00
[    2.703803] pci_bus 0003:00: root bus resource [bus 00-ff]
[    2.709279] pci_bus 0003:00: root bus resource [io  0x0000-0x1fffff] (bus address [0x20000000-0x201fffff])
[    2.718921] pci_bus 0003:00: root bus resource [mem 0x20200000-0x27ffffff]
[    2.725787] pci_bus 0003:00: scanning bus
[    2.729807] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400
[    2.735819] pci 0003:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.742660] pci 0003:00:00.0: PME# supported from D0 D3hot D3cold
[    2.748743] pci 0003:00:00.0: PME# disabled
[    2.754052] pci_bus 0003:00: fixups for bus
[    2.758227] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.764920] pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.772918] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.779657] pci_bus 0003:01: scanning bus
[    2.783682] pci 0003:01:00.0: [105b:e0b0] type 00 class 0x0d4000
[    2.789696] pci 0003:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.796487] pci 0003:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[    2.803389] pci 0003:01:00.0: PME# supported from D0 D3hot D3cold
[    2.809473] pci 0003:01:00.0: PME# disabled
[    2.813683] pci 0003:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0003:00:00.0 (capable of 31.506 Gb/s with 16.0 GT/s PCIe x2 link)
[    2.850988] pci_bus 0003:01: fixups for bus
[    2.855161] pci_bus 0003:01: bus scan returning with max=01
[    2.860722] pci_bus 0003:01: busn_res: [bus 01-ff] end is updated to 01
[    2.867332] pci_bus 0003:00: bus scan returning with max=01
[    2.872907] pci 0003:00:00.0: BAR 8: assigned [mem 0x20200000-0x202fffff]
[    2.879684] pci 0003:00:00.0: BAR 0: assigned [mem 0x20300000-0x20307fff 64bit]
[    2.886989] pci 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    2.894298] pci 0003:01:00.0: BAR 2: assigned [mem 0x20201000-0x20201fff 64bit]
[    2.901605] pci 0003:00:00.0: PCI bridge to [bus 01]
[    2.906560] pci 0003:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
[    2.913350] pci 0003:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.921791] pci 0003:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.930298] pcieport 0003:00:00.0: assign IRQ: got 112
[    2.935434] pcieport 0003:00:00.0: enabling device (0000 -> 0002)
[    2.941527] pcieport 0003:00:00.0: enabling bus mastering
[    2.947284] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    2.955725] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
[    2.964154] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
[    2.972584] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
[    2.981011] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
[    2.989435] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
[    2.997861] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
[    3.006290] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
[    3.014717] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    3.023142] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    3.031568] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    3.040079] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    3.048591] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    3.057104] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    3.065617] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    3.074130] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
[    3.082644] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
[    3.091246] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
[    3.099843] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
[    3.108443] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
[    3.117044] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
[    3.125644] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
[    3.134245] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
[    3.142845] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
[    3.151445] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
[    3.160043] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
[    3.168642] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
[    3.177242] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
[    3.185841] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
[    3.194441] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
[    3.203041] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
[    3.211643] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
[    3.220652] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    3.229150] pcieport 0003:00:00.0: PME: Signaling with IRQ 113
[    3.235088] pcieport 0003:00:00.0: AER: enabled with IRQ 113
[    3.240774] pcieport 0003:00:00.0: save config 0x00: 0x798814c3
[    3.246691] pcieport 0003:00:00.0: save config 0x04: 0x00100406
[    3.252603] pcieport 0003:00:00.0: save config 0x08: 0x06040001
[    3.258512] pcieport 0003:00:00.0: save config 0x0c: 0x00010000
[    3.264421] pcieport 0003:00:00.0: save config 0x10: 0x20300004
[    3.270329] pcieport 0003:00:00.0: save config 0x14: 0x00000000
[    3.276238] pcieport 0003:00:00.0: save config 0x18: 0x00010100
[    3.282148] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1
[    3.288056] pcieport 0003:00:00.0: save config 0x20: 0x20202020
[    3.293965] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1
[    3.299873] pcieport 0003:00:00.0: save config 0x28: 0x00000000
[    3.305782] pcieport 0003:00:00.0: save config 0x2c: 0x00000000
[    3.311692] pcieport 0003:00:00.0: save config 0x30: 0x00000000
[    3.317600] pcieport 0003:00:00.0: save config 0x34: 0x00000080
[    3.323510] pcieport 0003:00:00.0: save config 0x38: 0x00000000
[    3.329417] pcieport 0003:00:00.0: save config 0x3c: 0x00020170
[    3.335664] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    3.342978] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    3.349242] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    3.357676] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    3.700956] mtk-pcie-gen3 11290000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.709745] mtk-pcie-gen3: probe of 11290000.pcie failed with error -110
[    3.716684] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.723997] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.730257] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.738690] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    4.080967] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.089747] mtk-pcie-gen3: probe of 11300000.pcie failed with error -110
[    4.096611] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    4.103922] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    4.110182] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    4.118614] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.460967] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.469746] mtk-pcie-gen3: probe of 11310000.pcie failed with error -110
[    4.476928] FIT: Detected U-Boot 2024.01-OpenWrt-r25899-98235e60ed
[    4.483111] FIT: Selected configuration: "config-mt7988a-bananapi-bpi-r4" (OpenWrt bananapi_bpi-r4)
[    4.492154] FIT:           kernel sub-image 0x00001000..0x0058c037 "kernel-1" (ARM64 OpenWrt Linux-6.6.32) 
[    4.501889] FIT:          flat_dt sub-image 0x0058d000..0x00597921 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r4 device tree blob) 
[    4.513100] FIT:          flat_dt sub-image 0x00598000..0x00598611 "fdt-mt7988a-bananapi-bpi-r4-emmc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-emmc) 
[    4.529429] FIT:          flat_dt sub-image 0x00599000..0x0059911c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc) 
[    4.545587] FIT:          flat_dt sub-image 0x0059a000..0x0059a5c9 "fdt-mt7988a-bananapi-bpi-r4-sd" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd) 
[    4.561570] FIT:          flat_dt sub-image 0x0059b000..0x0059b8eb "fdt-mt7988a-bananapi-bpi-r4-wifi-mt7996a" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-wifi-mt7996a) 
[    4.579286] FIT:       filesystem sub-image 0x0059c000..0x012ddfff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r4 rootfs) 
[    4.590116] block mmcblk0p5: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.597851] block mmcblk0p5: mapped remaing space as /dev/fitrw
[    4.742461] mtk_soc_eth 15100000.ethernet: generated random MAC address 65:74:68:25:64:00
[    4.752843] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.762516] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.772195] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.865788] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[    4.873298] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    4.897643] mt7530-mmio 15020000.switch wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=115)
[    4.932981] mt7530-mmio 15020000.switch lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7988 PHY] (irq=116)
[    4.968254] mt7530-mmio 15020000.switch lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7988 PHY] (irq=117)
[    5.003490] mt7530-mmio 15020000.switch lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7988 PHY] (irq=118)
[    5.014495] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    5.021213] DSA: tree 0 setup
[    5.024782] UBI: auto-attach mtd1
[    5.028090] ubi: mtd1 is already attached to ubi0
[    5.032792] UBI error: cannot attach mtd1
[    5.036848] clk: Disabling unused clocks
[    5.043402] VFS: Mounted root (squashfs filesystem) readonly on device 259:1.
[    5.050613] Freeing unused kernel memory: 384K
[    5.055097] Run /sbin/init as init process
[    5.059183]   with arguments:
[    5.062142]     /sbin/init
[    5.064837]   with environment:
[    5.067967]     HOME=/
[    5.070314]     TERM=linux
[    5.167856] init: Console is alive
[    5.171359] init: - watchdog -
[    5.483222] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.521896] usbcore: registered new interface driver usbfs
[    5.527408] usbcore: registered new interface driver hub
[    5.532768] usbcore: registered new device driver usb
[    5.538313] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.548202] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    5.555609] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    5.563526] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.568752] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.579261] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[    5.588416] xhci-mtk 11200000.usb: irq 119, io mem 0x11200000
[    5.594230] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.599445] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.606857] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.614185] hub 1-0:1.0: USB hub found
[    5.617942] hub 1-0:1.0: 1 port detected
[    5.622057] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.630345] hub 2-0:1.0: USB hub found
[    5.634166] hub 2-0:1.0: 1 port detected
[    5.640563] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.650391] init: - preinit -
[    5.857090] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[    5.865247] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[    5.879498] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[    6.090958] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.285039] hub 1-1:1.0: USB hub found
[    6.288954] hub 1-1:1.0: 5 ports detected
[    6.431771] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    6.470861] hub 2-1:1.0: USB hub found
[    6.474758] hub 2-1:1.0: 4 ports detected
[    6.980962] usb 1-1.5: new high-speed USB device number 3 using xhci-mtk
[    7.200959] random: crng init done
[    7.988931] EXT4-fs (fitrw): recovery complete
[    7.993995] EXT4-fs (fitrw): mounted filesystem d75c11ed-df61-42e1-bcca-62d7a84e779f r/w with ordered data mode. Quota mode: disabled.
[    8.006783] mount_root: switching to ext4 overlay
[    8.012375] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.023469] urandom-seed: Seeding with /etc/urandom.seed
[    8.057193] procd: - early -
[    8.060115] procd: - watchdog -
[    8.593084] procd: - watchdog -
[    8.596401] procd: - ubus -
[    8.749552] procd: - init -
[    8.938459] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.991622] pca954x 1-0070: supply vdd not found, using dummy regulator
[    8.998972] i2c i2c-1: Added multiplexed i2c bus 2
[    9.004017] i2c i2c-1: Added multiplexed i2c bus 3
[    9.008922] i2c i2c-1: Added multiplexed i2c bus 4
[    9.013863] i2c i2c-1: Added multiplexed i2c bus 5
[    9.018660] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545
[    9.023074] urngd: v1.0.2 started.
[    9.031937] crypto-safexcel 15600000.crypto: can't request region for resource [mem 0x15600000-0x1577ffff]
[    9.041629] crypto-safexcel 15600000.crypto: failed to get resource
[    9.047891] crypto-safexcel: probe of 15600000.crypto failed with error -16
[    9.061996] at24 2-0050: supply vcc not found, using dummy regulator
[    9.093555] at24 2-0057: supply vcc not found, using dummy regulator
[    9.100540] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    9.108013] usbcore: registered new interface driver cdc_wdm
[    9.114057] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[    9.121534] Backport generated by backports.git 193becf2
[    9.130762] mhi-pci-generic 0003:01:00.0: assign IRQ: got 0
[    9.136372] mhi-pci-generic 0003:01:00.0: MHI PCI device found: foxconn-sdx55
[    9.143505] mhi-pci-generic 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    9.151868] mhi-pci-generic 0003:01:00.0: enabling device (0000 -> 0002)
[    9.158578] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[    9.164686] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    9.173125] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    9.181553] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    9.190064] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    9.198576] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    9.207107] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[    9.213625] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100406
[    9.220142] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[    9.226659] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[    9.233177] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[    9.239692] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[    9.246208] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[    9.252726] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[    9.259241] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[    9.265758] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[    9.272277] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[    9.278793] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[    9.285310] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[    9.291827] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[    9.298342] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[    9.304859] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[    9.311789] mhi mhi0: Requested to power ON
[    9.315980] mhi mhi0: Power on setup success
[    9.432967] NET: Registered PF_QIPCRTR protocol family
[    9.439519] sfp sfp1: Host maximum power 3.0W
[    9.444395] sfp sfp2: Host maximum power 3.0W
[    9.451738] usbcore: registered new interface driver usbserial_generic
[    9.458288] usbserial: USB Serial support registered for generic
[    9.469391] xt_time: kernel timezone is -0000
[    9.474314] usbcore: registered new interface driver cdc_ether
[    9.480891] usbcore: registered new interface driver cdc_ncm
[    9.502086] wwan wwan0: port wwan0qcdm0 attached
[    9.506907] wwan wwan0: port wwan0mbim0 attached
[    9.511627] wwan wwan0: port wwan0at0 attached
[    9.577504] PPP generic driver version 2.4.2
[    9.582711] NET: Registered PF_PPPOX protocol family
[    9.588801] usbcore: registered new interface driver qmi_wwan
[    9.597216] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    9.605081] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
[    9.618771] usbcore: registered new interface driver cdc_mbim
[    9.625880] usbcore: registered new interface driver option
[    9.631544] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.640215] usbcore: registered new interface driver qcserial
[    9.646087] usbserial: USB Serial support registered for Qualcomm USB modem
[    9.654198] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.762306] sfp sfp1: module OEM              SFP-10G-SR       rev 02   sn CSY101O17489     dc 240123  
[    9.771730] mtk_soc_eth 15100000.ethernet eth2: switched to inband/10gbase-r link mode
[    9.801981] hwmon hwmon2: temp1_input not attached to any thermal zone
[   11.842599] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   11.854867] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[   11.863049] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   11.864645] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[   11.880894] br-lan: port 1(lan1) entered blocking state
[   11.886170] br-lan: port 1(lan1) entered disabled state
[   11.891433] mt7530-mmio 15020000.switch lan1: entered allmulticast mode
[   11.898056] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[   11.905046] mt7530-mmio 15020000.switch lan1: entered promiscuous mode
[   11.916285] mt7530-mmio 15020000.switch lan2: configuring for phy/internal link mode
[   11.924434] br-lan: port 2(lan2) entered blocking state
[   11.929673] br-lan: port 2(lan2) entered disabled state
[   11.934968] mt7530-mmio 15020000.switch lan2: entered allmulticast mode
[   11.941808] mt7530-mmio 15020000.switch lan2: entered promiscuous mode
[   11.950160] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   11.951068] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
[   11.956699] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   11.964841] br-lan: port 3(lan3) entered blocking state
[   11.970999] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   11.976198] br-lan: port 3(lan3) entered disabled state
[   11.982729] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   11.987954] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
[   11.994461] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   12.001256] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
[   12.007579] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   12.015645] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/10gbase-r link mode
[   12.020635] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   12.035473] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   12.042055] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   12.048589] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   12.052869] br-lan: port 4(eth1) entered blocking state
[   12.055116] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   12.060321] br-lan: port 4(eth1) entered disabled state
[   12.066839] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   12.066845] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   12.072091] mtk_soc_eth 15100000.ethernet eth1: entered allmulticast mode
[   12.078575] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   12.085265] mtk_soc_eth 15100000.ethernet eth1: entered promiscuous mode
[   12.091872] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   12.102145] mt7530-mmio 15020000.switch wan: configuring for phy/internal link mode
[   12.105093] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   12.112368] br-wan: port 1(wan) entered blocking state
[   12.119308] mhi-pci-generic 0003:01:00.0: PME# enabled
[   12.130898] br-wan: port 1(wan) entered disabled state
[   12.141233] mt7530-mmio 15020000.switch wan: entered allmulticast mode
[   12.147948] mt7530-mmio 15020000.switch wan: entered promiscuous mode
[   12.157732] mtk_soc_eth 15100000.ethernet eth2: configuring for inband/10gbase-r link mode
[   12.190060] br-wan: port 2(eth2) entered blocking state
[   12.195328] br-wan: port 2(eth2) entered disabled state
[   12.200568] mtk_soc_eth 15100000.ethernet eth2: entered allmulticast mode
[   12.207564] mtk_soc_eth 15100000.ethernet eth2: entered promiscuous mode
[   14.760007] mt7530-mmio 15020000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.768688] br-lan: port 3(lan3) entered blocking state
[   14.773914] br-lan: port 3(lan3) entered forwarding state
[   15.814339] mhi-pci-generic 0003:01:00.0: PME# disabled
[   15.819578] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[   16.384363] mtk_soc_eth 15100000.ethernet eth2: Link is Up - 10Gbps/Full - flow control off
[   16.403196] br-wan: port 2(eth2) entered blocking state
[   16.408435] br-wan: port 2(eth2) entered forwarding state
[   21.102388] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   21.108924] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   21.115457] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   21.121978] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   21.128494] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   21.135013] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   21.141532] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   21.148047] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   21.154566] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   21.161085] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   21.167599] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   21.174120] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   21.180635] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   21.187153] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   21.193671] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   21.200186] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   21.206769] mhi-pci-generic 0003:01:00.0: PME# enabled
[   59.034487] mhi-pci-generic 0003:01:00.0: PME# disabled
[   59.039726] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[   62.614784] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   62.621330] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   62.627848] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   62.634371] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   62.640887] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   62.647406] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   62.653927] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   62.660442] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   62.666960] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   62.673478] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   62.679993] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   62.686512] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   62.693031] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   62.699547] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   62.706067] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   62.712585] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   62.719165] mhi-pci-generic 0003:01:00.0: PME# enabled

Very strange. I researched a bit and you might be bitten by this issue or something similar:

Hmm, that is a pretty old post though from back in early 2023. Would hope if they were working on an update back then it would’ve been released by now?

But if it were the case, what would I need to do… figure out a way to downgrade the firmware on the modem?

I can try to look into that, but it seems like most things reference windows for firmware update tool, not sure if I have a windows machine with a slot that this modem will plug into lol. I’ll have to do some checking on that. I’m guessing I can order an adapter to work with something I do have, was just hoping to get this thing working without ordering more stuff.

Tempted to pull the trigger on just ordering a quectel 5g modem. They are a lot more expensive of a modem, but I’ve seen elsewhere it referenced as a lot better modem =/ I really have no idea since I’m not very experienced with any of this stuff.

It can also totally be that some incompatibility with ModemManager, or OpenWrt’s script-wrappers for ModemManager, was introduced when switching from Linux 6.1 to Linux 6.6. I don’t have much time to debug this a the moment, but maybe ask people in OpenWrt forums about this as the issue is not specific to the BananaPi R4 (everything on the PCIe/hardware side seems fine) but rather an issue with OpenWrt, ModemManager and that specific modem on Linux 6.6…

I MAY have something useful here: My ath10 9882 wifi card works on the pci bus. Any pcie 3 card (tested ath11k, wcn8755 mtk7915e and mtk7916) does not. It fails at setting up the pcie bus, claiming it is not compliant. I don’t know whether the pcie phy allows downclocking, but it may be a solution here

@frank-w : I tried several modules for this link, but the only I can make work are limited (<5w) PCI 1.1 modules. Do you know whether an overlay is possible that makes this PCIe link think it’s 1.1 only? edit : why I’m asking it: other modules fail detection with a PCIe link compliance error. Tried:

WCN6755 ath11k chip
rtl8125 dual 2.5gbe chip
9884 (ath10k)
9882 (ath10k) <-- actually works
mtk97915 (mt76)

As pcie cards are not defined in dts and i know no such property for pcie controller i guess overlay is not possible.

Imho this needs to be done in driver,but i’m no expert here so cannot guide you more than that.

@dangowrt : do you know whether I can force the phy behind the pcie link in the B key slot to be 1.1 compliant?

Believe I’m stuck in a similar or related issue with a different module. Any insight into this.

OpenWRT Snapshot / 6.6.34
Module: Quectel EM120R-GL (PCIE)

This is the failure on boot:

[   18.390951] mhi-pci-generic 0003:01:00.0: failed to power up MHI controller
[   18.398079] mhi-pci-generic: probe of 0003:01:00.0 failed with error -110
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc SDX24 [Snapdragon X24 4G]
        Subsystem: Qualcomm Technologies, Inc Device 0307
        Flags: fast devsel
        Memory at 20200000 (64-bit, non-prefetchable) [size=4K]
        Memory at 20201000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=8/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, IntMsgNum 0
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Transaction Processing Hints
        Capabilities: [1d4] Latency Tolerance Reporting
        Capabilities: [1dc] L1 PM Substates
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.026324] PCI: CLS 0 bytes, default 64
[    0.049171] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.049190] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.049201] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.049214] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.049304] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.049315] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.049325] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.049335] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.049354] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.049362] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.049423] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.049432] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.049441] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.049451] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.049467] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.049475] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.049548] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.049558] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.049567] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.049575] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.049590] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.049597] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    2.294678] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.302008] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.308270] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.316707] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.564324] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000
[    2.575721] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000
[    2.587186] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000
[    2.598650] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000
[    2.610113] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000
[    2.621663] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000
[    2.633212] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000
[    2.645009] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00
[    2.651621] pci_bus 0003:00: root bus resource [bus 00-ff]
[    2.657099] pci_bus 0003:00: root bus resource [io  0x0000-0x1fffff] (bus address [0x20000000-0x201fffff])
[    2.666741] pci_bus 0003:00: root bus resource [mem 0x20200000-0x27ffffff]
[    2.673605] pci_bus 0003:00: scanning bus
[    2.677624] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400
[    2.683637] pci 0003:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.690474] pci 0003:00:00.0: PME# supported from D0 D3hot D3cold
[    2.696559] pci 0003:00:00.0: PME# disabled
[    2.701874] pci_bus 0003:00: fixups for bus
[    2.706049] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.712742] pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.720738] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.727477] pci_bus 0003:01: scanning bus
[    2.731505] pci 0003:01:00.0: [17cb:0304] type 00 class 0xff0000
[    2.737521] pci 0003:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.744313] pci 0003:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[    2.751205] pci 0003:01:00.0: PME# supported from D0 D3hot D3cold
[    2.757289] pci 0003:01:00.0: PME# disabled
[    2.790967] pci_bus 0003:01: fixups for bus
[    2.795139] pci_bus 0003:01: bus scan returning with max=01
[    2.800700] pci_bus 0003:01: busn_res: [bus 01-ff] end is updated to 01
[    2.807311] pci_bus 0003:00: bus scan returning with max=01
[    2.812886] pci 0003:00:00.0: BAR 8: assigned [mem 0x20200000-0x202fffff]
[    2.819663] pci 0003:00:00.0: BAR 0: assigned [mem 0x20300000-0x20307fff 64bit]
[    2.826969] pci 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    2.834279] pci 0003:01:00.0: BAR 2: assigned [mem 0x20201000-0x20201fff 64bit]
[    2.841587] pci 0003:00:00.0: PCI bridge to [bus 01]
[    2.846541] pci 0003:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
[    2.853329] pci 0003:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.861772] pci 0003:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.870279] pcieport 0003:00:00.0: assign IRQ: got 112
[    2.875415] pcieport 0003:00:00.0: enabling device (0000 -> 0002)
[    2.881508] pcieport 0003:00:00.0: enabling bus mastering
[    2.887274] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    2.895711] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
[    2.904139] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
[    2.912569] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
[    2.920996] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
[    2.929420] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
[    2.937846] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
[    2.946273] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
[    2.954698] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    2.963124] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    2.971550] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    2.980060] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    2.988572] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    2.997085] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    3.005598] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    3.014110] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
[    3.022622] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
[    3.031228] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
[    3.039824] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
[    3.048425] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
[    3.057025] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
[    3.065625] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
[    3.074225] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
[    3.082824] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
[    3.091424] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
[    3.100021] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
[    3.108621] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
[    3.117220] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
[    3.125820] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
[    3.134420] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
[    3.143020] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
[    3.151622] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
[    3.160639] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    3.169140] pcieport 0003:00:00.0: PME: Signaling with IRQ 113
[    3.175082] pcieport 0003:00:00.0: AER: enabled with IRQ 113
[    3.180765] pcieport 0003:00:00.0: save config 0x00: 0x798814c3
[    3.186684] pcieport 0003:00:00.0: save config 0x04: 0x00100406
[    3.192597] pcieport 0003:00:00.0: save config 0x08: 0x06040001
[    3.198504] pcieport 0003:00:00.0: save config 0x0c: 0x00010000
[    3.204414] pcieport 0003:00:00.0: save config 0x10: 0x20300004
[    3.210322] pcieport 0003:00:00.0: save config 0x14: 0x00000000
[    3.216231] pcieport 0003:00:00.0: save config 0x18: 0x00010100
[    3.222141] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1
[    3.228048] pcieport 0003:00:00.0: save config 0x20: 0x20202020
[    3.233958] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1
[    3.239865] pcieport 0003:00:00.0: save config 0x28: 0x00000000
[    3.245774] pcieport 0003:00:00.0: save config 0x2c: 0x00000000
[    3.251684] pcieport 0003:00:00.0: save config 0x30: 0x00000000
[    3.257591] pcieport 0003:00:00.0: save config 0x34: 0x00000080
[    3.263500] pcieport 0003:00:00.0: save config 0x38: 0x00000000
[    3.269407] pcieport 0003:00:00.0: save config 0x3c: 0x00020170
[    3.275650] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    3.282962] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    3.289226] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    3.297659] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    3.640937] mtk-pcie-gen3 11290000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.649724] mtk-pcie-gen3: probe of 11290000.pcie failed with error -110
[    3.656654] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.663965] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.670225] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.678658] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    4.020944] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.029723] mtk-pcie-gen3: probe of 11300000.pcie failed with error -110
[    4.036586] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    4.043897] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    4.050156] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    4.058589] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.400954] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.409734] mtk-pcie-gen3: probe of 11310000.pcie failed with error -110
[    9.841826] mhi-pci-generic 0003:01:00.0: assign IRQ: got 0
[    9.847408] mhi-pci-generic 0003:01:00.0: MHI PCI device found: qcom-sdx24
[    9.854291] mhi-pci-generic 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    9.862652] mhi-pci-generic 0003:01:00.0: enabling device (0000 -> 0002)
[    9.869364] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[    9.875500] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    9.883940] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    9.892368] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    9.900879] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    9.909392] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    9.917905] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    9.926418] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    9.934957] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x10011eac
[    9.941477] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100406
[    9.947994] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[    9.954512] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[    9.961030] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[    9.967545] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[    9.974064] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[    9.980579] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[    9.987097] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[    9.993619] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   10.000133] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   10.006652] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x20011eac
[   10.013170] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   10.019685] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   10.026203] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   10.032721] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   18.390951] mhi-pci-generic 0003:01:00.0: failed to power up MHI controller
[   18.398079] mhi-pci-generic: probe of 0003:01:00.0 failed with error -110

!!Update: This only works sometimes*

Module is now detected but in some failed state. Unclear if this is a module issue or BPI R4 issue. The SIM card was detected only once before the patch below.

Now running with this patch. Similar to Qualcomm modems using the mhi driver.

[    9.186662] mhi mhi0: Requested to power ON
[   11.091686] mhi mhi0: Power on setup success
[   11.091784] mhi mhi0: Wait for device to enter SBL or Mission mode
...
[   18.740959] mhi-pci-generic 0003:01:00.0: PME# enabled
[   18.770245] mhi-pci-generic 0003:01:00.0: PME# disabled
[   18.775478] mhi-pci-generic 0003:01:00.0: enabling bus mastering

root@OpenWrt:~# mmcli -L /org/freedesktop/ModemManager1/Modem/2 [generic] EM120R_GL root@OpenWrt:~#


Kernel Patch

--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -356,6 +356,7 @@ static struct mhi_event_config mhi_quect
 static const struct mhi_controller_config modem_quectel_em1xx_config = {
        .max_channels = 128,
        .timeout_ms = 20000,
+       .ready_timeout_ms = 50000,
        .num_channels = ARRAY_SIZE(mhi_quectel_em1xx_channels),
        .ch_cfg = mhi_quectel_em1xx_channels,
        .num_events = ARRAY_SIZE(mhi_quectel_em1xx_events),