Latest build not work properly on Banana Pi R2

With kernel 4.19 everything works, but i install new mt7615 module and its driver not work with old kernel. Now i try to compile latest snapshot. And Kernel 5.4 cant load any rootfs without any errors or attempts. When i start kernel+initramfs its works, but without saving anything after reboot. When i starts kernel+squashfs the kernel starts and hangs without any rootfs.

What im do:

  1. select my board in menuconfig, select kmod-block2mtd and save
  2. set in kernel_menuconfig overraiding kernel command line to: earlyprintk console=ttyS2,115200n8 block2mtd.block2mtd=/dev/mmcblk1,65536,SD,5 mtdparts=SD:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,128M(firmware) rootfstype=squashfs,jffs2
  3. do make without any errors
  4. write preloader and uboot to sd:
dd bs=1024 if=preloader-sd.img of=$OUTFILE seek=0
dd bs=1024 if=uboot.img of=$OUTFILE seek=320
dd bs=1024 if=openwrt/bin/targets/mediatek/mt7623/openwrt-mediatek-mt7623-bpi_bananapi-r2-squashfs-sysupgrade.bin of=$OUTFILE seek=2048

and see this (not today log, i try last weeks without any success, this first saved log similar to todays build):

MMC read: dev # 1, block # 4096, count 24576 ... 24576 blocks read: OK
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.33
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3004094 Bytes = 2.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.33 (andrey@andrey-notebook) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13023-8d9c1087e4)) #0 SMP PREEMPT Sun Apr 19 14:45:40 2020
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30220 r8192 d23028 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522559
[    0.000000] Kernel command line: earlyprintk console=ttyS2,115200 rootfstype=squashfs,jffs2 block2mtd.block2mtd=/dev/mmcblk1,65536,SD,5 mtdparts=SD:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,128M(firmware)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2066872K/2097148K available (7168K kernel code, 209K rwdata, 1616K rodata, 1024K init, 233K bss, 30276K reserved, 0K cma-reserved, 1310716K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x4a0 with crng_init=0
[    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.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000159] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000174] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000444] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000458] pid_max: default: 32768 minimum: 301
[    0.000610] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000626] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001388] CPU: Testing write buffer coherency: ok
[    0.060037] Setting up static identity map for 0x80100000 - 0x80100060
[    0.080030] rcu: Hierarchical SRCU implementation.
[    0.120085] smp: Bringing up secondary CPUs ...
[    0.360532] smp: Brought up 1 node, 4 CPUs
[    0.360545] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.360551] CPU: All CPU(s) started in SVC mode.
[    0.370527] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.370888] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.370908] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.371128] pinctrl core: initialized pinctrl subsystem
[    0.371862] NET: Registered protocol family 16
[    0.372134] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.372960] No ATAGs?
[    0.471995] usbcore: registered new interface driver usbfs
[    0.472057] usbcore: registered new interface driver hub
[    0.472129] usbcore: registered new device driver usb
[    0.473456] clocksource: Switched to clocksource arch_sys_counter
[    0.474194] thermal_sys: Registered thermal governor 'step_wise'
[    0.474589] NET: Registered protocol family 2
[    0.475038] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.475070] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.475140] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.475252] TCP: Hash tables configured (established 8192 bind 8192)
[    0.475353] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.475403] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.475633] NET: Registered protocol family 1
[    0.475666] PCI: CLS 0 bytes, default 64
[    0.476751] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.481927] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.481940] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.516870] bounce: pool size: 64 pages
[    0.532590] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.553730] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 199, base_baud = 1625000) is a ST16650V2
[    0.574326] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 200, base_baud = 1625000) is a ST16650V2
[    0.594863] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 201, base_baud = 1625000) is a ST16650V2
[    1.049961] printk: console [ttyS2] enabled
[    1.054714] mtk_rng 1020f000.rng: registered RNG driver
[    1.054855] random: fast init done
[    1.063571] random: crng init done
[    1.063995] loop: module loaded
[    1.070959] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    1.086622] libphy: Fixed MDIO Bus: probed
[    1.113842] libphy: mdio: probed
[    1.117611] mtk_soc_eth 1b100000.ethernet: generated random MAC address 3e:04:63:80:da:ad
[    1.126253] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf08e0000, irq 213
[    1.135834] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.141077] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    1.151561] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.160730] xhci-mtk 1a1c0000.usb: irq 210, io mem 0x1a1c0000
[    1.167191] hub 1-0:1.0: USB hub found
[    1.170970] hub 1-0:1.0: 1 port detected
[    1.175236] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.180466] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    1.187882] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.194221] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.202743] hub 2-0:1.0: USB hub found
[    1.206534] hub 2-0:1.0: 1 port detected
[    1.211267] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.216530] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    1.226950] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.236064] xhci-mtk 1a240000.usb: irq 211, io mem 0x1a240000
[    1.242462] hub 3-0:1.0: USB hub found
[    1.246259] hub 3-0:1.0: 1 port detected
[    1.250486] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.255733] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    1.263129] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    1.269465] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.277998] hub 4-0:1.0: USB hub found
[    1.281772] hub 4-0:1.0: 1 port detected
[    1.286313] i2c /dev entries driver
[    1.291301] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.300970] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.309199] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.317313] sdhci: Secure Digital Host Controller Interface driver
[    1.323513] sdhci: Copyright(c) Pierre Ossman
[    1.354137] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.384619] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.397742] NET: Registered protocol family 10
[    1.402998] Segment Routing with IPv6
[    1.406894] NET: Registered protocol family 17
[    1.411617] 8021q: 802.1Q VLAN Support v1.8
[    1.416040] ThumbEE CPU extension supported.
[    1.420331] Registering SWP/SWPB emulation handler
[    1.442073] mmc0: new high speed MMC card at address 0001
[    1.448709] mmcblk0: mmc0:0001 8GTF4R 0 B 
[    1.453572] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    1.453653] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.460195] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    1.466064] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.472614] mmcblk0gp0: mmc0:0001 8GTF4R partition 4 3.64 GiB
[    1.479220] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.485104] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (250:0)
[    1.499436] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.509769] mmc1: new high speed SDHC card at address 0002
[    1.516085] mmcblk1: mmc1:0002 N/A   7.44 GiB 
[    1.520657]  mmcblk0gp0: p1
[    1.536140] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.542324] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.547826] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.557306] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.564211] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    1.570234] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.576563] pci 0000:00:00.0: supports D1
[    1.580565] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.586604] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    1.592622] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.598948] pci 0000:00:01.0: supports D1
[    1.602951] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.610295] PCI: bus0: Fast back to back transfers disabled
[    1.615880] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.623890] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.632008] pci 0000:01:00.0: [168c:0030] type 00 class 0x028000
[    1.638056] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[    1.644885] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.651665] pci 0000:01:00.0: supports D1 D2
[    1.655938] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.664173] PCI: bus1: Fast back to back transfers disabled
[    1.669742] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.676480] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    1.682502] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.689554] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    1.694961] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.702001] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    1.707407] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    1.714456] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    1.719853] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    1.726902] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    1.732299] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    1.739348] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    1.744755] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    1.751020] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.759353] PCI: bus2: Fast back to back transfers disabled
[    1.764932] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.771563] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.778356] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    1.785581] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    1.792362] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    1.799589] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    1.806386] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    1.813169] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.819269] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
[    1.826599] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    1.833825] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.838786] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.845575] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    1.852796] pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
[    1.860022] pci 0000:02:00.0: BAR 5: assigned [mem 0x60200000-0x602001ff]
[    1.866814] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    1.872904] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    1.879005] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    1.885103] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    1.891193] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    1.897293] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.902251] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    1.908347] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    1.915138] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    1.922516] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.928763] pcieport 0000:00:00.0: PME: Signaling with IRQ 224
[    1.934834] pcieport 0000:00:00.0: AER: enabled with IRQ 224
[    1.940730] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.946955] pcieport 0000:00:01.0: PME: Signaling with IRQ 225
[    1.952987] pcieport 0000:00:01.0: AER: enabled with IRQ 225
[    2.113636] libphy: dsa slave smi: probed
[    2.117891] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.126791] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.135707] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.144582] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.153417] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.162507] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    2.172103] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    2.172660] DSA: tree 0 setup
[    2.182493] 5 cmdlinepart partitions found on MTD device SD
[    2.188077] Creating 5 MTD partitions on "SD":
[    2.192518] 0x000000000000-0x000000080000 : "mbr"
[    2.197989] 0x000000080000-0x000000100000 : "uboot"
[    2.203378] 0x000000100000-0x000000180000 : "config"
[    2.208895] 0x000000180000-0x000000200000 : "factory"
[    2.214487] 0x000000200000-0x000008200000 : "firmware"
[    4.462606] 2 uimage-fw partitions found on MTD device firmware
[    4.468562] 0x000000200000-0x0000004dd6fe : "kernel"
[    4.474207] 0x0000004dd6fe-0x000008200000 : "rootfs"
[    4.479685] mtd: device 6 (rootfs) set to be root filesystem
[    4.485380] 1 squashfs-split partitions found on MTD device rootfs
[    4.491555] 0x000000680000-0x000008200000 : "rootfs_data"
[    4.497501] block2mtd: mtd0: [SD] erase_size = 64KiB [65536]
[    4.503308] hctosys: unable to open rtc device (rtc0)
[   35.033526] vusb: disabling
[   35.036326] vmc: disabling
[   35.039031] vmch: disabling
[   35.041824] vgp1: disabling
[   35.044668] vcamaf: disabling

Whats wrong with this kernel? Parser makes mtd partitions for rootfs but kernel not trying to mount anything!

1 Like

I have a similar problem. I compile my image according to the given guide:
https://openwrt.org/toh/sinovoip/sinovoip_banana_pi_r2

With kernel version 4.19 everything went smooth (OpenWrt Snapshot shown after boot was r12726-92616c4227).

Then i wanted to upgrade to the current master and after applying the new bpi_bananapi-r2-kernel.bin and root.squashfs files the boot process stops every time at the same point:

bootargs = board=bpi-r2 earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 vmalloc=496M debug=7 initcall_debug=0 root=/dev/mmcblk0pt
Net:   Eth0
Uip activated
Hit any key to stop autoboot:  0 
dev_num = 0
mmc0 is current device
dev_num = 0

MMC read: dev # 0, block # 4096, count 24576 ... 24576 blocks read: OK
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   ARM OpenWrt Linux-5.4.38
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3016750 Bytes = 2.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.38 (type@mainframe) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13150-47f17b0662)) #0 SMP PREEMPT Wed M0
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu s30220 r8192 d23028 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 523117
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,RootFs,5 mtdparts=RootFs:512M
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2067256K/2097148K available (7168K kernel code, 209K rwdata, 1616K rodata, 1024K init, 233K bss, 29892K reserved, 0)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x49c with crng_init=0
[    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.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000159] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000174] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000443] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000457] pid_max: default: 32768 minimum: 301
[    0.000605] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000618] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001383] CPU: Testing write buffer coherency: ok
[    0.060037] Setting up static identity map for 0x80100000 - 0x80100060
[    0.080030] rcu: Hierarchical SRCU implementation.
[    0.120084] smp: Bringing up secondary CPUs ...
[    0.360531] smp: Brought up 1 node, 4 CPUs
[    0.360544] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.360550] CPU: All CPU(s) started in SVC mode.
[    0.370533] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.370880] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.370900] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.371104] pinctrl core: initialized pinctrl subsystem
[    0.371864] NET: Registered protocol family 16
[    0.372152] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.373003] No ATAGs?
[    0.482084] usbcore: registered new interface driver usbfs
[    0.482146] usbcore: registered new interface driver hub
[    0.482215] usbcore: registered new device driver usb
[    0.483555] clocksource: Switched to clocksource arch_sys_counter
[    0.484315] thermal_sys: Registered thermal governor 'step_wise'
[    0.484721] NET: Registered protocol family 2
[    0.485167] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.485198] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.485241] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.485302] TCP: Hash tables configured (established 4096 bind 4096)
[    0.485400] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.485432] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.485624] NET: Registered protocol family 1
[    0.485658] PCI: CLS 0 bytes, default 64
[    0.486775] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.492168] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.492180] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.527783] bounce: pool size: 64 pages
[    0.543706] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.564800] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 199, base_baud = 1625000) is a ST16650V2
[    0.585410] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 200, base_baud = 1625000) is a ST16650V2
[    0.605953] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 201, base_baud = 1625000) is a ST16650V2
[    1.066987] printk: console [ttyS2] enabled
[    1.071736] mtk_rng 1020f000.rng: registered RNG driver
[    1.071876] random: fast init done
[    1.080579] random: crng init done
[    1.081120] loop: module loaded
[    1.087982] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    1.103767] libphy: Fixed MDIO Bus: probed
[    1.130993] libphy: mdio: probed
[    1.134785] mtk_soc_eth 1b100000.ethernet: generated random MAC address a2:73:35:9e:d8:5e
[    1.143390] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe10e0000, irq 213
[    1.152972] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.158282] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    1.168759] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.177926] xhci-mtk 1a1c0000.usb: irq 210, io mem 0x1a1c0000
[    1.184403] hub 1-0:1.0: USB hub found
[    1.188180] hub 1-0:1.0: 1 port detected
[    1.192421] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.197670] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    1.205083] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.211409] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.219951] hub 2-0:1.0: USB hub found
[    1.223739] hub 2-0:1.0: 1 port detected
[    1.228480] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.233745] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    1.244162] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.253253] xhci-mtk 1a240000.usb: irq 211, io mem 0x1a240000
[    1.259683] hub 3-0:1.0: USB hub found
[    1.263456] hub 3-0:1.0: 1 port detected
[    1.267708] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.272937] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    1.280352] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    1.286687] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.295253] hub 4-0:1.0: USB hub found
[    1.299025] hub 4-0:1.0: 1 port detected
[    1.303527] i2c /dev entries driver
[    1.308578] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.318258] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.326485] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.334614] sdhci: Secure Digital Host Controller Interface driver
[    1.340787] sdhci: Copyright(c) Pierre Ossman
[    1.372145] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.402668] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.415908] NET: Registered protocol family 10
[    1.421207] Segment Routing with IPv6
[    1.425223] NET: Registered protocol family 17
[    1.429936] 8021q: 802.1Q VLAN Support v1.8
[    1.434245] ThumbEE CPU extension supported.
[    1.438556] Registering SWP/SWPB emulation handler
[    1.458117] mmc0: new high speed MMC card at address 0001
[    1.464642] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
[    1.469889] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    1.476508] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.476635] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    1.483057] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.483073] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.489154] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (250:0)
[    1.514304] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.524560] mmc1: new high speed SDHC card at address 59b4
[    1.530873] mmcblk1: mmc1:59b4 USD   7.48 GiB 
[    1.541522] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.547727] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.553207] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.562687] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.569596] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    1.575636] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.581956] pci 0000:00:00.0: supports D1
[    1.585971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.592010] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    1.598050] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.604375] pci 0000:00:01.0: supports D1
[    1.608378] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.615740] PCI: bus0: Fast back to back transfers disabled
[    1.621310] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.629327] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.637456] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    1.643487] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.651978] PCI: bus1: Fast back to back transfers disabled
[    1.657563] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.664291] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    1.670313] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.677370] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    1.682768] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.689825] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    1.695235] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    1.702275] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    1.707681] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    1.714731] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    1.720129] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    1.727176] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    1.732575] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    1.738852] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.747207] PCI: bus2: Fast back to back transfers disabled
[    1.752776] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.759423] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.766221] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    1.773002] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    1.780228] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    1.787020] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    1.793813] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.799902] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    1.807225] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.812185] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.818989] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    1.826216] pci 0000:02:00.0: BAR 5: assigned [mem 0x60100000-0x601001ff]
[    1.833000] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    1.839100] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    1.845199] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    1.851288] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    1.857388] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    1.863476] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.868443] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    1.874540] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    1.881322] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    1.888708] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.894966] pcieport 0000:00:00.0: PME: Signaling with IRQ 224
[    1.901063] pcieport 0000:00:00.0: AER: enabled with IRQ 224
[    1.906990] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.913196] pcieport 0000:00:01.0: PME: Signaling with IRQ 225
[    1.919250] pcieport 0000:00:01.0: AER: enabled with IRQ 225
[    2.080999] libphy: dsa slave smi: probed
[    2.085265] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.094151] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.103039] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.111923] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.120781] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.129901] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    2.139141] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    2.146770] DSA: tree 0 setup
[    2.150309] 9 cmdlinepart partitions found on MTD device RootFs
[    2.156245] Creating 9 MTD partitions on "RootFs":
[    2.161033] 0x000000000000-0x000000080000 : "mbr"
[    2.166651] 0x000000080000-0x000000100000 : "uboot"
[    2.172058] 0x000000100000-0x000000180000 : "config"
[    2.177593] 0x000000180000-0x000000200000 : "factory"
[    2.183165] 0x000000200000-0x000002200000 : "kernel"
[    2.188693] 0x000002200000-0x000004200000 : "recovery"
[    2.194392] 0x000004200000-0x000044200000 : "rootfs"
[    2.199875] mtd: device 6 (rootfs) set to be root filesystem
[    2.206132] 1 squashfs-split partitions found on MTD device rootfs
[    2.212309] 0x000004340000-0x000044200000 : "rootfs_data"
[    2.218310] 0x000044200000-0x0000c4200000 : "usrdata"
[    2.223928] 0x0000c4200000-0x0001d2000000 : "bmtpool"
[    2.229506] block2mtd: mtd0: [RootFs] erase_size = 64KiB [65536]
[    2.235683] hctosys: unable to open rtc device (rtc0)
[   32.473623] vusb: disabling
[   32.476424] vmc: disabling
[   32.479129] vmch: disabling
[   32.481922] vgp1: disabling
[   32.484768] vcamaf: disabling

I don't know what is happening (or what is not happening) here.

I did the follwing steps:

  1. git clone https://git.openwrt.org/openwrt/openwrt.git
  2. ./scripts/feeds update -a
  3. ./scripts/feeds install -a
  4. make -j8 menuconfig
  5. follow instructions for menuconfig on guide
  6. make -j8 kernel_menuconfig
  7. follow instructions for kernel_menuconfig on guide
  8. I did not apply the patch that was given. I didn't encounter any problems with failing network connections even with the old linux kernel. It also does not make any difference according to the current problem.
  9. make -j8
  10. changed repositories.conf according to the guide
  11. make image PROFILE=bpi_bananapi-r2
  12. apply new kernel-file and rootfs according to the guide

I tried this several times with different configurations but the result was the same anyway.

@Andreygl as far as I understand your post, you chose another approach for buildung the kernel and ran into the same problem. Because of that maybe there is a bug we have to report to the bug tracker?

I am a newbie in the OpenWrt-World (and kernel building) so I would appreciate any help.

I use same way to make firmware as yours.
Boot process not stops, boot process completed in that point. Kernel still running without rootfs.
I guess this is kernel bug, it dont load rootfs from MTD. The explanation of openwrt boot sequence: https://openwrt.org/docs/techref/preinit_mount The point 1 is done but point 2 not happens.

I found a workaround to get my system running. I changed the makefile for the mediatek build target to work with kernel 4.19. If you don't insist to run your system with kernel 5.4 it might be a workaround for you, too.

I did the following steps:

  1. git clone https://git.openwrt.org/openwrt/openwrt.git
  2. edit target/linux/mediatek/Makefile and change the lines for kernel version to
    KERNEL_PATCHVER:=4.19
    KERNEL_TESTING_PATCHVER:=4.19
  3. ./scripts/feeds update -a
  4. ./scripts/feeds install -a
  5. make -j8 menuconfig
  6. follow instructions for menuconfig on guide
  7. make -j8 kernel_menuconfig
  8. follow instructions for kernel_menuconfig on guide
  9. I did not apply the patch that was given. I didn't encounter any problems with failing network connections.
  10. make -j8
  11. make image PROFILE=bpi_bananapi-r2
  12. apply new kernel-file and rootfs according to the guide
Of course this approach has several drawbacks:
  1. this is not really a solution to the current problem, because kernel 5.4 still not works with banana pi r2
  2. this workaround will only work as long as the build for kernel 4.19 is available in the git repository
  3. I was not able to use opkg with the snpashot repositories. Is this even possible? We are using another linux kernel version than in the repsitories...
I added my MT7615-Wifi module as follows:

in menuconfig I added

  • Kernel modules ---> Wireless Drivers ---> kmod-mt7615e (Wifi-Driver)
  • Network ---> WirelessAPD ---> hostpad (for use as access point)
  • Network ---> WirelessAPD ---> wpa-supplicant (for tests as wifi client)

Because I could not get the repositories working I also added

  • LuCI ---> Collections ---> luci-ssl-nginx (Webinterface, using https)
  • Utilities ---> Editors ---> nano (because I am more familiar with this editor, then vi)

instead of simply making an image with profile bpi_bananapi-r2, I added the packages from above:

make image PROFILE=bpi_bananapi-r2 PACKAGES="kmod-mt7615e luci-ssl-nginx nano hostapd wpa-supplicant"

I don't think this workaround is a solution to the real problem but at least I can get my banana pi to work. I opened an issue at the issue-tracker, too: https://bugs.openwrt.org/index.php?do=details&task_id=3091

Is your mt7615 module works? My module stuck in 6dbm and not see any 5 or 2.4 networks. Also module heating to 90C with small heatsink.

Everything works fine. I think the driver might be a newer version than in the original kernel 4.19 version (backport of kernel 5.4 version?).

This is what dmesg says:

[   17.925464] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.939197] Loading modules backported from Linux version v5.4.27-0-g585e0cc08069
[   17.941811] urngd: v1.0.2 started.
[   17.946740] Backport generated by backports.git v5.4.27-1-0-gf6e8852f
[   17.965470] xt_time: kernel timezone is -0000
[   17.998996] mt7615e 0000:01:00.0: enabling device (0140 -> 0142)
[   18.017925] PPP generic driver version 2.4.2
[   18.022924] NET: Registered protocol family 24
[   18.031962] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.046166] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   18.046166] 
[   18.146465] mt7615e 0000:01:00.0: N9 Firmware Version: 2.0, Build Time: 20200131181812
[   18.206195] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307

I am not sure what you mean, iwconfig on my notebook showed the following:

wlp16s0   IEEE 802.11  ESSID:"OpenWrt"  
          Mode:Managed  Frequency:5.18 GHz  Access Point: 38:83:9A:4E:B3:A8   
          Bit Rate=243 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-31 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:33   Missed beacon:0

I had a similiar issue, when I did not install hostapd and wpa-supplicant packages. Make sure, that your device (radio0 in my case) is enabled once, after you installed openwrt and the kernel module.

After 2 hours of testing the chip was warm but not hot. How can I get the exact temperature of the wifi module? I did not create much traffic but I was connecting and disconnecting different devices and did some wifi-range measurements the whole time.

Good, i try to rebuild firmware once again.

I using temporarily old atheros module with this packages. Of course they affects mt7615 module too.

Missconfiguring (by old driver) module MCU makes huge power drain to feed unproperly working RF-amplifiers and transmitters. Its about 2.5A on 5v wire - about 13W heating of small surface. When module works properly (in your case with good driver) same power drains by short pulses - only when frames\beacons transmitting. All other time module cooling down. Also RF amps normally survive 150C working temperature by dadsheet.

I try compile once again with yours steps.
Nothing new with mt7615 module - 2.4 or 5ghz network not appear, nothing finds in air, can select only 6dbm power, extremely hot radiator.

dmesg part:

[   15.981439] mt7615e 0000:01:00.0: enabling device (0140 -> 0142)
[   15.988843] mt7615e 0000:01:00.0: Invalid MAC address, using random address ae:53:9a:af:c2:5d
[   16.014823] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   16.069255] kmodloader: done loading kernel modules from /etc/modules.d/*
[   16.146125] mt7615e 0000:01:00.0: N9 Firmware Version: 2.0, Build Time: 20200131181812
[   16.183884] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307

iw list:


root@OpenWrt:/# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2304 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: 0
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports T-DLS.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Capabilities: 0x1ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                Frequencies:
                        * 2412 MHz [1] (6.0 dBm)
                        * 2417 MHz [2] (6.0 dBm)
                        * 2422 MHz [3] (6.0 dBm)
                        * 2427 MHz [4] (6.0 dBm)
                        * 2432 MHz [5] (6.0 dBm)
                        * 2437 MHz [6] (6.0 dBm)
                        * 2442 MHz [7] (6.0 dBm)
                        * 2447 MHz [8] (6.0 dBm)
                        * 2452 MHz [9] (6.0 dBm)
                        * 2457 MHz [10] (6.0 dBm)
                        * 2462 MHz [11] (6.0 dBm)
                        * 2467 MHz [12] (6.0 dBm) (no IR)
                        * 2472 MHz [13] (6.0 dBm) (no IR)
                        * 2484 MHz [14] (6.0 dBm) (no IR)
        Band 2:
                Capabilities: 0x1ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x338001fa):
                        Max MPDU length: 11454
                        Supported Channel Width: 160 MHz, 80+80 MHz
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        TX STBC
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5180 MHz [36] (6.0 dBm)
                        * 5200 MHz [40] (6.0 dBm)
                        * 5220 MHz [44] (6.0 dBm)
                        * 5240 MHz [48] (6.0 dBm)
                        * 5260 MHz [52] (6.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (6.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (6.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (6.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (6.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (6.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (6.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (6.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (6.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (6.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (6.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (6.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (6.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (6.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (6.0 dBm) (no IR, radar detection)
                        * 5745 MHz [149] (6.0 dBm) (no IR)
                        * 5765 MHz [153] (6.0 dBm) (no IR)
                        * 5785 MHz [157] (6.0 dBm) (no IR)
                        * 5805 MHz [161] (6.0 dBm) (no IR)
                        * 5825 MHz [165] (6.0 dBm) (no IR)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+80 MHz, 160 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ SET_SCAN_DWELL ]: scan dwell setting
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
root@OpenWrt:/#

OK, I'm afraid I think I cannot help you here.
iw list tells me the following:

root@OpenWrt:/# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2304 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: 0
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports T-DLS.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Capabilities: 0x1ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x1ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x338001fa):
                        Max MPDU length: 11454
                        Supported Channel Width: 160 MHz, 80+80 MHz
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        TX STBC
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5180 MHz [36] (22.0 dBm)
                        * 5200 MHz [40] (22.0 dBm)
                        * 5220 MHz [44] (22.0 dBm)
                        * 5240 MHz [48] (22.0 dBm)
                        * 5260 MHz [52] (16.0 dBm) (radar detection)
                        * 5280 MHz [56] (16.0 dBm) (radar detection)
                        * 5300 MHz [60] (16.0 dBm) (radar detection)
                        * 5320 MHz [64] (16.0 dBm) (radar detection)
                        * 5500 MHz [100] (23.0 dBm) (radar detection)
                        * 5520 MHz [104] (23.0 dBm) (radar detection)
                        * 5540 MHz [108] (23.0 dBm) (radar detection)
                        * 5560 MHz [112] (23.0 dBm) (radar detection)
                        * 5580 MHz [116] (16.0 dBm) (radar detection)
                        * 5600 MHz [120] (16.0 dBm) (radar detection)
                        * 5620 MHz [124] (16.0 dBm) (radar detection)
                        * 5640 MHz [128] (16.0 dBm) (radar detection)
                        * 5660 MHz [132] (16.0 dBm) (radar detection)
                        * 5680 MHz [136] (16.0 dBm) (radar detection)
                        * 5700 MHz [140] (16.0 dBm) (radar detection)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+80 MHz, 160 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ SET_SCAN_DWELL ]: scan dwell setting
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
root@OpenWrt:/#

As one can see I have something between 16dbm and 23dbm on most frequencies.
wifi status tells me:

root@OpenWrt:/# wifi status
{
        "radio0": {
                "up": true,
                "pending": false,
                "autostart": true,
                "disabled": false,
                "retry_setup_failed": false,
                "config": {
                        "path": "1a140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0",
                        "country": "DE",
                        "channel": "auto",
                        "hwmode": "11a",
                        "htmode": "VHT160"
                },
                "interfaces": [
                        {
                                "section": "wifinet0",
                                "ifname": "wlan0",
                                "config": {
                                        "mode": "ap",
                                        "ssid": "OpenWrt",
                                        "encryption": "psk2",
                                        "ifname": "wlan0",
                                        "key": "SOMEPASSWORD",
                                        "wpa_disable_eapol_key_retries": true,
                                        "mode": "ap",
                                        "network": [
                                                "wlan"
                                        ]
                                }
                        },
                        {
                                "section": "wifinet1",
                                "ifname": "wlan1",
                                "config": {
                                        "mode": "ap",
                                        "ssid": "OpenWrtGuest",
                                        "encryption": "psk2",
                                        "isolate": true,
                                        "ifname": "wlan1",
                                        "key": "SOMEPASSWORD",
                                        "wpa_disable_eapol_key_retries": true,
                                        "mode": "ap",
                                        "isolate": true,
                                        "network": [
                                                "guest"
                                        ]
                                }
                        }
                ]
        }
}
root@OpenWrt:/# 

If I can help you with any additional information I will try to provide them...