BPI-R2 + OpenWRT latest trunk + mt7615e board not working

I try to make working my new pci-e board with mt7615e. Board is visible in Network-Wireless as ‘MediaTek MT7615E 802.11bgnac’ but:

  1. not hear any other APs in Scan,
  2. when i enable AP with 2.4N mode its not visible on air
  3. when i enable AP with 5AC mode its visible on air but clients cant obtain IP addresses
  4. cant set tx power higher then 6dbm
  5. cant set 5 and 2.4 APs in same time
root@Banana:~# dmesg | grep pci
[    1.616524] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    1.622662] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.632086] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.638924] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.644386] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    1.644419] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.644474] pci 0000:00:00.0: supports D1
[    1.644481] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.644780] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    1.644808] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.644856] pci 0000:00:01.0: supports D1
[    1.644862] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.652085] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.660047] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.668117] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    1.668156] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.675467] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.675579] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    1.675608] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.682599] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    1.682612] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.689619] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    1.689633] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    1.696636] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    1.696649] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    1.703639] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    1.703652] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    1.710654] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    1.710668] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    1.710682] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.717943] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.717987] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.724721] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    1.731469] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    1.738646] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    1.745394] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    1.752129] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.758189] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    1.765461] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.770387] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    1.777145] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    1.784310] pci 0000:02:00.0: BAR 5: assigned [mem 0x60100000-0x601001ff]
[    1.791059] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    1.797118] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    1.803165] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    1.809224] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    1.815282] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    1.821331] pci 0000:00:01.0: PCI bridge to [bus 02]
[    1.826265] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    1.832310] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    1.839054] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    1.846380] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.852562] pcieport 0000:00:00.0: Signaling PME with IRQ 217
[    1.858422] pcieport 0000:00:00.0: AER enabled with IRQ 217
[    1.864119] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.870289] pcieport 0000:00:01.0: Signaling PME with IRQ 218
[    1.876128] pcieport 0000:00:01.0: AER enabled with IRQ 218
root@Banana:~# dmesg | grep mt76
[   51.140713] mt7615e 0000:01:00.0: enabling device (0140 -> 0142)
[   51.148163] mt7615e 0000:01:00.0: Invalid MAC address, using random address 6a:a9:c0:69:04:f0
[   51.252805] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   51.480407] mt7615e 0000:01:00.0: N9 Firmware Version: 2.0, Build Time: 20200131181812
[   51.517454] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
root@Banana:~# opkg list-installed | grep mt
kmod-block2mtd - 4.19.108-1
kmod-mt76 - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt76-core - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt7603 - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt7615e - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt76x02-common - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt76x2 - 4.19.108+2020-03-10-a94e43f2-1
kmod-mt76x2-common - 4.19.108+2020-03-10-a94e43f2-1
mtd - 25
root@Banana:~# uname -r
4.19.108
root@Banana:~# iw list
Wiphy phy1
	max # scan SSIDs: 4
	max scan IEs length: 2243 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 0 (up to 0m)
	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: 4 usec (0x05)
		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)
			* 2472 MHz [13] (6.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: 4 usec (0x05)
		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) (radar detection)
			* 5280 MHz [56] (6.0 dBm) (radar detection)
			* 5300 MHz [60] (6.0 dBm) (radar detection)
			* 5320 MHz [64] (6.0 dBm) (radar detection)
			* 5500 MHz [100] (disabled)
			* 5520 MHz [104] (disabled)
			* 5540 MHz [108] (disabled)
			* 5560 MHz [112] (disabled)
			* 5580 MHz [116] (disabled)
			* 5600 MHz [120] (disabled)
			* 5620 MHz [124] (disabled)
			* 5640 MHz [128] (disabled)
			* 5660 MHz [132] (6.0 dBm) (radar detection)
			* 5680 MHz [136] (6.0 dBm) (radar detection)
			* 5700 MHz [140] (6.0 dBm) (radar detection)
			* 5745 MHz [149] (6.0 dBm)
			* 5765 MHz [153] (6.0 dBm)
			* 5785 MHz [157] (6.0 dBm)
			* 5805 MHz [161] (6.0 dBm)
			* 5825 MHz [165] (6.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
		* [ 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

whats wrong?

how did you insert the mt7615-card in bpi-r2? afair the card is oversized and not working with an extender…

  1. idk if openwrt/mt7615 driver supports client-mode…

  2. you have connected antenna to right port?

  3. clients can only obtain ip-adress if you have running an dns-server listening on that interface…

  4. maybe power-related…

  5. i don’t know if openwrt and mt7615 driver supports 2 bands simultanously…

you can try moving to kernel 5.4…

Big board is perfectly fitted to pcie slot on bpi r2.

  1. Dont know about client mode. May be not supported, i not need it at all. Trying scan only for testing purposes.
  2. Yes, all 4 antennas connected.
  3. AP network in lan bridge. Also, notebook spams 'No beacon heard and the time event is over already… ’ in dmesg when trying to connect 5Ghz banana AP and reconnects non stop. Phone just infinitely obtaining ip.
  4. I trying 3A power supply. And old atheros pcie module burst 26dbm without any power issues.
  5. Hope it supports. How to move to kernel 5.4? Any instructions?

Afair this can only be done by modifying makefile:

Can you take photo? I guess you have board v1.1 with smaller coil and not the 4-pin sata power connector

at least you got your pcie-issue fixed, right? how?

i can compile openwrt for r2 with kernel 5.4, but have not found yet how to get the image itself…i see compiled kernel (with debug), initramfs, root.ext4, but no bin except bpi_bananapi-r2-kernel.bin which is only ~3MB

Yes, i have 2pin sata power connectors and small coil.

Pcie-issue fixed by some snapshot, i just git pull and recompile system.

Im already try make system with kernel 5.4 but my banana not starts with it. Cant debug with uart, my usb-ttl dongle not with me today. For making sd-image i use sysupgrade image, rootfs.squashfs, uboot and preloader. I make kernel with bootargs `

earlyprintk console=ttyS2,115200n8 vmalloc=496M block2mtd.block2mtd=/dev/mmcblk1,65536,RootFs,5 mtdparts=RootFs:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,32M(kernel),32M(recovery),1024M(rootfs),2048M(usrdata),-(bmtpool) rootfstype=squashfs,jffs2

and write parts to sd card:

dd bs=1024 if=preloader.img of=/dev/mysdcard seek=0
dd bs=1024 if=uboot.img of=/dev/mysdcard seek=320
dd bs=1024 if=openwrt-mediatek-mt7623-bpi_bananapi-r2-squashfs-sysupgrade.bin of=/dev/mysdcard seek=2048
dd bs=1024 if=root.squashfs of=/dev/mysdcard seek=67584

`Also i build system with block2mtd builtin package.

1 Like

i do not have this file…which option i have to enable? searched for “sysupgrade” in menuconfig but found only options hidden from menuconfig (internal options)

i set

  • Target System (MediaTek Ralink ARM)
  • Subtarget (MT7623)
  • Target Profile (Bpi Banana Pi R2)

and have this in “Target Images”:

  │ │    [*] ramdisk  --->                                                │ │  
  │ │        *** Root filesystem archives ***                             │ │  
  │ │    [ ] cpio.gz                                                      │ │  
  │ │    [ ] tar.gz                                                       │ │  
  │ │        *** Root filesystem images ***                               │ │  
  │ │    [*] ext4  --->                                                   │ │  
  │ │    [*] squashfs  --->                                               │ │  
  │ │    [*] GZip images                                                  │ │  
  │ │        *** Image Options ***                                        │ │  
  │ │    (1024) Root filesystem partition size (in MB)                    │ │

Only squashfs is enough. Sysupgrade file in bin/targets/mediatek/mt7623 appears automatically after build finish. Rootfs.squashfs file is in build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623 appears after build.

Any news? 7615 with 4.19 kernel making CPU extremely hot, after few hours of uptime i lost connections to sata and sometime to usb devices. Temporary install old atheros module back.

Hello Andrey & Frank, I’m trying to build openwrt to achieve a system with a working driver for mt7615 (the banana one). The driver in Frank build 5.4 with debian works but iw cannot set the tx power which is stuck at 6dBm (there is a know bug referenced for this). I’m not an advanced developer but I’m willing to test the card. Can you please share with me the openwrt config and where to set the bootargs in order for your SD image to work ? Thanks in advance.

Andrea

i’m no expert with openwrt…i only created an openwrt rootfs for r2 and booted it the same way i booted debian (using my debian kernel)…just changed root-var in uboot for 3rd partition where i have unpacked the openwrt rootfs and swapped console-definition to have ttyS0 first and then tty1 for hdmi (then i can work over serial console)

but maybe it’s a good start…

There my files for 4.19 kernelconfig-4.19 (13.1 КБ) main.config (249.4 КБ) Also you must rename ‘main.config’ into ‘.config’ and place on root openwrt sources dir. Other file is on dir /target/linux/mediatek/mt7623 Bootargs you can change in ‘make kernel_menuconfig’ in the ‘Boot’ submenu.

In 5.4 what number of tty i must use in bootargs?

My kernel: ttyS0,mainline:ttyS2

Thanks, I will check during the week-end. I’m currently testing the Kernel from @frank-w v5.4.24 using debian, the mt7615 works (I have the heating problem too): one of the issues I have is that I cannot set the TX POWER via iw. It is stuck at 6dBm. I’ve seen in the kernel parchwork site there is a ticket and patch related to the problem but it is not applicable to 5.4.

My 5.4 is using older openwrt driver to get mt7622 support. You can try change drivers/net/wireless/mediatek/Makefile to use mt76 (mainline version) folder instead of mt76_new. Newer mt76 driver (from openwrt) was not compatible with 5.4 mac-/cfg80211 api

Current openwrt trunk is already with 5.4.31 kernel and hase some mt76 changes. RIght now i compile system, but cant test right now. May be i try to run it on weekend. Also somebody can test it, i upload the sd image file. How to use my sd-images:

  1. dd to sd card
  2. run banana from this card
  3. type ‘firstboot’-Y-reboot
  4. On next run wait many minutes until jffs-filesystem is complete building itself (message on dmesg about it)
  5. reboot and configure system for your purposes.

FIle: https://mega.nz/file/mehTHIzS#D9lag46EsQLy-O5jmn30Vv5kvxq3z3pk8Jtz3GwWceU

Kernel 5.4 do not boot. This is log:

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.31
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3449718 Bytes = 3.3 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.31 (andrey@andrey-notebook) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12752-258f070d1a)) #0 SMP PREEMPT Fri Apr 10 13:22:26 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: 523117
[    0.000000] Kernel command line: earlyprintk console=ttyS2,115200n8 vmalloc=496M block2mtd.block2mtd=/dev/mmcblk1,65536,RootFs,5 mtdparts=RootFs:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,32M(k2
[    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: 2067224K/2097148K available (7168K kernel code, 232K rwdata, 1808K rodata, 1024K init, 243K bss, 29924K reserved, 0K cma-reserved, 1564668K 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.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000161] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000175] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000445] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000458] pid_max: default: 32768 minimum: 301
[    0.000599] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000612] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001365] CPU: Testing write buffer coherency: ok
[    0.060040] Setting up static identity map for 0x80100000 - 0x80100060
[    0.080030] rcu: Hierarchical SRCU implementation.
[    0.120082] smp: Bringing up secondary CPUs ...
[    0.360541] smp: Brought up 1 node, 4 CPUs
[    0.360554] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.360561] CPU: All CPU(s) started in SVC mode.
[    0.370538] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.370882] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.370902] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.371113] xor: measuring software checksum speed
[    0.470509]    arm4regs  :  1324.800 MB/sec
[    0.570567]    8regs     :   915.200 MB/sec
[    0.670629]    32regs    :   842.400 MB/sec
[    0.770695]    neon      :  1318.000 MB/sec
[    0.770703] xor: using function: arm4regs (1324.800 MB/sec)
[    0.770721] pinctrl core: initialized pinctrl subsystem
[    0.771470] NET: Registered protocol family 16
[    0.771756] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.772608] No ATAGs?
[    0.861013] cryptd: max_cpu_qlen set to 1000
[    0.871144] raid6: using algorithm neonx8 gen() 0 MB/s
[    0.871157] raid6: .... xor() 0 MB/s, rmw enabled
[    0.871164] raid6: using neon recovery algorithm
[    0.872498] usbcore: registered new interface driver usbfs
[    0.872553] usbcore: registered new interface driver hub
[    0.872626] usbcore: registered new device driver usb
[    0.873941] clocksource: Switched to clocksource arch_sys_counter
[    0.874701] thermal_sys: Registered thermal governor 'step_wise'
[    0.875098] NET: Registered protocol family 2
[    0.875540] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.875568] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.875611] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.875671] TCP: Hash tables configured (established 4096 bind 4096)
[    0.875770] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.875804] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.875983] NET: Registered protocol family 1
[    0.876013] PCI: CLS 0 bytes, default 64
[    0.880874] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.886213] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.886224] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.922149] bounce: pool size: 64 pages
[    0.938230] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.959323] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 199, base_baud = 1625000) is a ST16650V2
[    0.979907] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 200, base_baud = 1625000) is a ST16650V2
[    1.000455] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 201, base_baud = 1625000) is a ST16650V2
[    1.507472] printk: console [ttyS2] enabled
[    1.512217] mtk_rng 1020f000.rng: registered RNG driver
[    1.512358] random: fast init done
[    1.521059] random: crng init done
[    1.521656] loop: module loaded
[    1.528476] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    1.544232] libphy: Fixed MDIO Bus: probed
[    1.571451] libphy: mdio: probed
[    1.575225] mtk_soc_eth 1b100000.ethernet: generated random MAC address d2:cf:94:78:2a:27
[    1.583822] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe10e0000, irq 213
[    1.593411] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.598720] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    1.609190] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.618358] xhci-mtk 1a1c0000.usb: irq 210, io mem 0x1a1c0000
[    1.624826] hub 1-0:1.0: USB hub found
[    1.628604] hub 1-0:1.0: 1 port detected
[    1.632850] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.638104] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    1.645515] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.651843] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.660414] hub 2-0:1.0: USB hub found
[    1.664210] hub 2-0:1.0: 1 port detected
[    1.668939] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.674200] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    1.684607] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    1.693700] xhci-mtk 1a240000.usb: irq 211, io mem 0x1a240000
[    1.700129] hub 3-0:1.0: USB hub found
[    1.703903] hub 3-0:1.0: 1 port detected
[    1.708153] xhci-mtk 1a240000.usb: xHCI Host Controller
[    1.713383] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    1.720797] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    1.727134] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.735695] hub 4-0:1.0: USB hub found
[    1.739468] hub 4-0:1.0: 1 port detected
[    1.744288] i2c /dev entries driver
[    1.749295] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.758981] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.767195] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.775221] sdhci: Secure Digital Host Controller Interface driver
[    1.781394] sdhci: Copyright(c) Pierre Ossman
[    1.813220] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.846334] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.867524] NET: Registered protocol family 10
[    1.873058] Segment Routing with IPv6
[    1.876882] NET: Registered protocol family 17
[    1.881644] 8021q: 802.1Q VLAN Support v1.8
[    1.885973] ThumbEE CPU extension supported.
[    1.890283] Registering SWP/SWPB emulation handler
[    1.899618] Btrfs loaded, crc32c=crc32c-generic
[    1.907089] mmc0: new high speed MMC card at address 0001
[    1.912502] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.921697] mmcblk0: mmc0:0001 8GTF4R 0 B 
[    1.926904] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    1.933435] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    1.936335] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    1.939470] mmc1: new high speed SDHC card at address e7b4
[    1.945910] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    1.952188] mmcblk0gp0: mmc0:0001 8GTF4R partition 4 3.64 GiB
[    1.958636] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    1.965007] mmcblk1: mmc1:e7b4 SU04G 3.69 GiB 
[    1.976553] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (250:0)
[    1.985268]  mmcblk0gp0: p1
[    2.015582] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    2.021765] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.027278] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    2.036763] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.043665] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    2.049715] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.056056] pci 0000:00:00.0: supports D1
[    2.060061] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.066158] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    2.072182] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.078520] pci 0000:00:01.0: supports D1
[    2.082526] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.090270] PCI: bus0: Fast back to back transfers disabled
[    2.095860] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.103864] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.112020] pci 0000:01:00.0: [168c:0030] type 00 class 0x028000
[    2.118076] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[    2.124910] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.131700] pci 0000:01:00.0: supports D1 D2
[    2.135976] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    2.144602] PCI: bus1: Fast back to back transfers disabled
[    2.150175] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.156945] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    2.162971] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    2.170030] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    2.175442] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    2.182484] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    2.187898] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    2.194951] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    2.200351] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    2.207406] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    2.212807] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    2.219860] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    2.225274] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    2.231543] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.240271] PCI: bus2: Fast back to back transfers disabled
[    2.245859] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.252498] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.259296] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.266527] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.273311] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.280542] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.287350] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.294153] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    2.300248] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
[    2.307588] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.314820] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.319782] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.326579] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.333804] pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
[    2.341036] pci 0000:02:00.0: BAR 5: assigned [mem 0x60200000-0x602001ff]
[    2.347836] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    2.353943] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    2.360035] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    2.366141] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    2.372233] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    2.378338] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.383298] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    2.389400] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.396196] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.403605] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    2.409880] pcieport 0000:00:00.0: PME: Signaling with IRQ 224
[    2.416045] pcieport 0000:00:00.0: AER: enabled with IRQ 224
[    2.421952] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    2.428180] pcieport 0000:00:01.0: PME: Signaling with IRQ 225
[    2.434233] pcieport 0000:00:01.0: AER: enabled with IRQ 225
[    2.596464] libphy: dsa slave smi: probed
[    2.600801] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.609879] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.618895] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.628004] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.636880] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.645966] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    2.655491] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    2.656033] DSA: tree 0 setup
[    2.665890] 9 cmdlinepart partitions found on MTD device RootFs
[    2.671801] Creating 9 MTD partitions on "RootFs":
[    2.676979] 0x000000000000-0x000000080000 : "mbr"
[    2.682458] 0x000000080000-0x000000100000 : "uboot"
[    2.688031] 0x000000100000-0x000000180000 : "config"
[    2.693645] 0x000000180000-0x000000200000 : "factory"
[    2.699422] 0x000000200000-0x000002200000 : "kernel"
[    2.704949] 0x000002200000-0x000004200000 : "recovery"
[    2.710625] 0x000004200000-0x000044200000 : "rootfs"
[    2.716143] mtd: device 6 (rootfs) set to be root filesystem
[    2.723799] 1 squashfs-split partitions found on MTD device rootfs
[    2.729999] 0x000005350000-0x000044200000 : "rootfs_data"
[    2.736000] 0x000044200000-0x0000c4200000 : "usrdata"
[    2.741596] 0x0000c4200000-0x0000ec580000 : "bmtpool"
[    2.747457] block2mtd: mtd0: [RootFs] erase_size = 64KiB [65536]
[    2.753621] hctosys: unable to open rtc device (rtc0)

[   33.114716] vusb: disabling
[   33.117644] vmc: disabling
[   33.120448] vmch: disabling
[   33.123342] vgp1: disabling
[   33.126697] vcamaf: disabling

kernel 5.4 is booting…i guess problem with your mtd rootfs, unfortunately i don’t know how to check/repair this

May be. In 4.19 bootlog after this line is loading VFS:

[    2.109768] 0x000000200000-0x000002200000 : "kernel"
[    2.115116] 0x000002200000-0x000004200000 : "recovery"
[    2.120660] 0x000004200000-0x000044200000 : "rootfs"
[    2.126048] mtd: device 6 (rootfs) set to be root filesystem
[    2.132867] 1 squashfs-split partitions found on MTD device rootfs
[    2.139022] 0x000005360000-0x000044200000 : "rootfs_data"
[    2.144856] 0x000044200000-0x0000c4200000 : "usrdata"
[    2.150314] 0x0000c4200000-0x0000ece00000 : "bmtpool"
[    2.155780] block2mtd: mtd0: [RootFs] erase_size = 64KiB [65536]
[    2.161883] hctosys: unable to open rtc device (rtc0)
[    2.171233] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    2.179349] Freeing unused kernel memory: 1024K
[    2.183951] Run /sbin/init as init process
[    2.473110] init: Console is alive
[    2.477327] init: - watchdog -
[    3.427751] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.625411] raid6: int32x1  gen()   217 MB/s
[    3.795440] raid6: int32x1  xor()   188 MB/s
[    3.965522] raid6: int32x2  gen()   260 MB/s`

Now i trying to use another SD card, may be this one is damaged.

Maybe you miss root-param in cmdline/bootargs? Can you print both cmline completely?