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

Both equal, same kernel config file.

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

Both images hase identical internal data structure: andrey@andrey-notebook:~/eMMC/banana-pi$ binwalk temp54.img

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
512           0x200           Mediatek Boot Header Version 1
532           0x214           Boot section Start 0x800 End 0x17200 Load-by-Bootrom
2056          0x808           Mediatek File Info File Type: ARM-Bootloader EMMC-Boot-Region Signature Type: SINGLE and PHASH Load Address: 0x200D00 File Length: 92340 Maximum Size: 131072 Content Offset: 0x300 Signature Lenght: 292 Jump Offset: 768 POST_BUILD_DONE
462576        0x70EF0         device tree image (dtb)
474448        0x73D50         CRC32 polynomial table, little endian
2097152       0x200000        uImage header, header size: 64 bytes, header CRC: 0xBC3B4D6E, created: 2020-04-10 13:22:26, image size: 3449718 bytes, Data Address: 0x80008000, Entry Point: 0x80008000, data CRC: 0xACFB1D8, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "ARM OpenWrt Linux-5.4.31"
2097216       0x200040        Linux kernel ARM boot executable zImage (little-endian)
2099552       0x200960        device tree image (dtb)
2112616       0x203C68        xz compressed data
2112848       0x203D50        xz compressed data
5518416       0x543450        device tree image (dtb)
5546934       0x54A3B6        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18152456 bytes, 2768 inodes, blocksize: 262144 bytes, created: 2020-04-10 13:22:26
69206016      0x4200000       Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18152456 bytes, 2768 inodes, blocksize: 262144 bytes, created: 2020-04-10 13:22:26

andrey@andrey-notebook:~/eMMC/banana-pi$ binwalk temp419_crypto.img

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
512           0x200           Mediatek Boot Header Version 1
532           0x214           Boot section Start 0x800 End 0x17200 Load-by-Bootrom
2056          0x808           Mediatek File Info File Type: ARM-Bootloader EMMC-Boot-Region Signature Type: SINGLE and PHASH Load Address: 0x200D00 File Length: 92340 Maximum Size: 131072 Content Offset: 0x300 Signature Lenght: 292 Jump Offset: 768 POST_BUILD_DONE
462576        0x70EF0         device tree image (dtb)
474448        0x73D50         CRC32 polynomial table, little endian
2097152       0x200000        uImage header, header size: 64 bytes, header CRC: 0x7EDB887, created: 2020-04-03 10:17:45, image size: 2726558 bytes, Data Address: 0x80008000, Entry Point: 0x80008000, data CRC: 0x7DF6BDFE, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "ARM OpenWrt Linux-4.19.108"
2097216       0x200040        Linux kernel ARM boot executable zImage (little-endian)
2099552       0x200960        device tree image (dtb)
2112456       0x203BC8        xz compressed data
2112688       0x203CB0        xz compressed data
4797736       0x493528        device tree image (dtb)
4823774       0x499ADE        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18214794 bytes, 2646 inodes, blocksize: 262144 bytes, created: 2020-04-03 10:17:45
69206016      0x4200000       Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18214794 bytes, 2646 inodes, blocksize: 262144 bytes, created: 2020-04-03 10:17:45

after first dtb offsets differ…so i guess cmdline should also be a bit different to match other offsets

Its not matter, it rootfs from sysupgrade file and not used by kernel. Its mark ‘rootfs’ on block from 0x4200000 where is writed root.squashfs file. I try to use not sysupgrade but only kernel image with same result. Here is structure of image from kernel and root files: andrey@andrey-notebook:~/eMMC/banana-pi$ binwalk temp54_new.img

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
512           0x200           Mediatek Boot Header Version 1
532           0x214           Boot section Start 0x800 End 0x17200 Load-by-Bootrom
2056          0x808           Mediatek File Info File Type: ARM-Bootloader EMMC-Boot-Region Signature Type: SINGLE and PHASH Load Address: 0x200D00 File Length: 92340 Maximum Size: 131072 Content Offset: 0x300 Signature Lenght: 292 Jump Offset: 768 POST_BUILD_DONE
462576        0x70EF0         device tree image (dtb)
474448        0x73D50         CRC32 polynomial table, little endian
2097152       0x200000        uImage header, header size: 64 bytes, header CRC: 0xBC3B4D6E, created: 2020-04-10 13:22:26, image size: 3449718 bytes, Data Address: 0x80008000, Entry Point: 0x80008000, data CRC: 0xACFB1D8, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "ARM OpenWrt Linux-5.4.31"
2097216       0x200040        Linux kernel ARM boot executable zImage (little-endian)
2099552       0x200960        device tree image (dtb)
2112616       0x203C68        xz compressed data
2112848       0x203D50        xz compressed data
5518416       0x543450        device tree image (dtb)
69206016      0x4200000       Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18140880 bytes, 2768 inodes, blocksize: 262144 bytes, created: 2020-04-10 13:22:26

May be in new kernel the SD card is not mmcblk1?

Looks like in builded 5.4 zImage not included initramfs. I try to use openwrt-builder generated openwrt-mediatek-mt7623-bpi_bananapi-r2-initramfs-kernel.bin file for kernel part, but it not starts correctly:

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:    19797790 Bytes = 18.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
BPI-R2> 

The structure of my sd-image is:

andrey@andrey-notebook:~/eMMC/banana-pi$ binwalk temp54_new2.img

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
512           0x200           Mediatek Boot Header Version 1
532           0x214           Boot section Start 0x800 End 0x17200 Load-by-Bootrom
2056          0x808           Mediatek File Info File Type: ARM-Bootloader EMMC-Boot-Region Signature Type: SINGLE and PHASH Load Address: 0x200D00 File Length: 92340 Maximum Size: 131072 Content Offset: 0x300 Signature Lenght: 292 Jump Offset: 768 POST_BUILD_DONE
462576        0x70EF0         device tree image (dtb)
474448        0x73D50         CRC32 polynomial table, little endian
2097152       0x200000        uImage header, header size: 64 bytes, header CRC: 0x40005EC, created: 2020-04-11 17:06:26, image size: 19797790 bytes, Data Address: 0x80008000, Entry Point: 0x80008000, data CRC: 0x47C6BFD6, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "ARM OpenWrt Linux-5.4.31"
2097216       0x200040        Linux kernel ARM boot executable zImage (little-endian)
2099552       0x200960        device tree image (dtb)
2112616       0x203C68        xz compressed data
2112848       0x203D50        xz compressed data
21866488      0x14DA7F8       device tree image (dtb)
69206016      0x4200000       Squashfs filesystem, little endian, version 4.0, compression:xz, size: 18144764 bytes, 2768 inodes, blocksize: 262144 bytes, created: 2020-04-11 17:06:26

Ok, i start system without rootfs. I just change bootcmd to load more blocks and kernel image loads completely. Now i dont understand how to use rootfs filesystem, kernel not load it at all, boots with initramfs, not make jffs filesystem and cant make any settings on working system! Its madness, hour more and i will smash banana thru wall. Failsafe mode not work properly. Here is bootlog:

MMC read: dev # 1, block # 4096, count 65536 ... 65536 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:    19797790 Bytes = 18.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.31 (andrey@andrey-notebook) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12752-258f070d1a)) #0 SMP PREEMPT Sat Apr 11 17:06: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,SD,5 mtdparts=SD:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,32M(kernel),32
[    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: 2000664K/2097148K available (7168K kernel code, 232K rwdata, 1808K rodata, 67584K init, 243K bss, 96484K 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.000017] 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.000442] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000455] 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.001364] CPU: Testing write buffer coherency: ok
[    0.060038] Setting up static identity map for 0x80100000 - 0x80100060
[    0.080029] rcu: Hierarchical SRCU implementation.
[    0.120085] smp: Bringing up secondary CPUs ...
[    0.360538] smp: Brought up 1 node, 4 CPUs
[    0.360551] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.360558] CPU: All CPU(s) started in SVC mode.
[    0.370537] 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.371105] xor: measuring software checksum speed
[    0.470506]    arm4regs  :  1324.800 MB/sec
[    0.570562]    8regs     :   915.200 MB/sec
[    0.670624]    32regs    :   842.400 MB/sec
[    0.770690]    neon      :  1318.000 MB/sec
[    0.770698] xor: using function: arm4regs (1324.800 MB/sec)
[    0.770716] pinctrl core: initialized pinctrl subsystem
[    0.771472] NET: Registered protocol family 16
[    0.771757] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.772610] No ATAGs?
[    0.860893] cryptd: max_cpu_qlen set to 1000
[    0.871002] raid6: using algorithm neonx8 gen() 0 MB/s
[    0.871016] raid6: .... xor() 0 MB/s, rmw enabled
[    0.871023] raid6: using neon recovery algorithm
[    0.872340] usbcore: registered new interface driver usbfs
[    0.872395] usbcore: registered new interface driver hub
[    0.872466] usbcore: registered new device driver usb
[    0.873816] clocksource: Switched to clocksource arch_sys_counter
[    0.874582] thermal_sys: Registered thermal governor 'step_wise'
[    0.874975] NET: Registered protocol family 2
[    0.875423] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.875455] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.875497] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.875557] TCP: Hash tables configured (established 4096 bind 4096)
[    0.875656] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.875691] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.875875] NET: Registered protocol family 1
[    0.875905] PCI: CLS 0 bytes, default 64
[    1.451248] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    1.456564] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.456575] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.504398] bounce: pool size: 64 pages
[    1.520431] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.541507] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 199, base_baud = 1625000) is a ST16650V2
[    1.562112] 11003000.serial: ttyS1 at MMIO 0x11003000 (irq = 200, base_baud = 1625000) is a ST16650V2
[    1.582647] 11004000.serial: ttyS2 at MMIO 0x11004000 (irq = 201, base_baud = 1625000) is a ST16650V2
[    2.089026] printk: console [ttyS2] enabled
[    2.093833] mtk_rng 1020f000.rng: registered RNG driver
[    2.093972] random: fast init done
[    2.102645] random: crng init done
[    2.103336] loop: module loaded
[    2.110106] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    2.125929] libphy: Fixed MDIO Bus: probed
[    2.153136] libphy: mdio: probed
[    2.156908] mtk_soc_eth 1b100000.ethernet: generated random MAC address 72:3a:25:8b:21:bc
[    2.165549] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe10e0000, irq 213
[    2.175186] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    2.180430] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    2.190900] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    2.200079] xhci-mtk 1a1c0000.usb: irq 210, io mem 0x1a1c0000
[    2.206554] hub 1-0:1.0: USB hub found
[    2.210332] hub 1-0:1.0: 1 port detected
[    2.214600] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    2.219831] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    2.227248] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    2.233586] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.242133] hub 2-0:1.0: USB hub found
[    2.245931] hub 2-0:1.0: 1 port detected
[    2.250665] xhci-mtk 1a240000.usb: xHCI Host Controller
[    2.255928] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 3
[    2.266340] xhci-mtk 1a240000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[    2.275446] xhci-mtk 1a240000.usb: irq 211, io mem 0x1a240000
[    2.281856] hub 3-0:1.0: USB hub found
[    2.285650] hub 3-0:1.0: 1 port detected
[    2.289879] xhci-mtk 1a240000.usb: xHCI Host Controller
[    2.295128] xhci-mtk 1a240000.usb: new USB bus registered, assigned bus number 4
[    2.302523] xhci-mtk 1a240000.usb: Host supports USB 3.0 SuperSpeed
[    2.308859] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.317417] hub 4-0:1.0: USB hub found
[    2.321198] hub 4-0:1.0: 1 port detected
[    2.326026] i2c /dev entries driver
[    2.331027] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    2.340715] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.348923] cpu cpu0: dummy supplies not allowed for exclusive requests
[    2.357085] sdhci: Secure Digital Host Controller Interface driver
[    2.363260] sdhci: Copyright(c) Pierre Ossman
[    2.397065] mtk-msdc 11240000.mmc: Got CD GPIO
[    2.429825] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.468619] mmc0: new high speed MMC card at address 0001
[    2.474057] mmc1: host does not support reading read-only switch, assuming write-enable
[    2.483102] mmcblk0: mmc0:0001 8GTF4R 0 B 
[    2.488275] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    2.494289] mmc1: new high speed SDHC card at address e7b4
[    2.500782] mmcblk1: mmc1:e7b4 SU04G 3.69 GiB 
[    2.506428] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    2.513399] mmcblk0gp0: mmc0:0001 8GTF4R partition 4 3.64 GiB
[    2.519318] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (250:0)
[    2.527773]  mmcblk0gp0: p1
[    2.634211] NET: Registered protocol family 10
[    2.639886] Segment Routing with IPv6
[    2.643632] NET: Registered protocol family 17
[    2.649030] 8021q: 802.1Q VLAN Support v1.8
[    2.653323] ThumbEE CPU extension supported.
[    2.657611] Registering SWP/SWPB emulation handler
[    2.773160] Btrfs loaded, crc32c=crc32c-generic
[    2.800665] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    2.807415] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    2.814653] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    2.865888] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    2.872072] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.877579] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    2.887068] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.893978] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[    2.900007] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.906348] pci 0000:00:00.0: supports D1
[    2.910353] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.916457] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    2.922480] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.928818] pci 0000:00:01.0: supports D1
[    2.932824] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.940558] PCI: bus0: Fast back to back transfers disabled
[    2.946146] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.954164] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.962306] pci 0000:01:00.0: [168c:0030] type 00 class 0x028000
[    2.968359] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[    2.975197] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.981985] pci 0000:01:00.0: supports D1 D2
[    2.986265] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    2.994900] PCI: bus1: Fast back to back transfers disabled
[    3.000472] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.007230] pci 0000:02:00.0: [1b21:0611] type 00 class 0x010185
[    3.013258] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    3.020316] pci 0000:02:00.0: reg 0x10: [io  size 0x0008]
[    3.025730] pci 0000:02:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    3.032772] pci 0000:02:00.0: reg 0x14: [io  size 0x0004]
[    3.038187] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    3.045242] pci 0000:02:00.0: reg 0x18: [io  size 0x0008]
[    3.050642] pci 0000:02:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    3.057695] pci 0000:02:00.0: reg 0x1c: [io  size 0x0004]
[    3.063096] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    3.070150] pci 0000:02:00.0: reg 0x20: [io  size 0x0010]
[    3.075564] pci 0000:02:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    3.081833] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    3.090571] PCI: bus2: Fast back to back transfers disabled
[    3.096159] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.102796] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    3.109597] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    3.116829] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    3.123614] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    3.130855] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    3.137658] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    3.144458] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    3.150552] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x6001ffff 64bit]
[    3.157882] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    3.165111] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.170074] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    3.176872] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    3.184110] pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
[    3.191328] pci 0000:02:00.0: BAR 5: assigned [mem 0x60200000-0x602001ff]
[    3.198128] pci 0000:02:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    3.204234] pci 0000:02:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    3.210326] pci 0000:02:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    3.216432] pci 0000:02:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    3.222524] pci 0000:02:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    3.228629] pci 0000:00:01.0: PCI bridge to [bus 02]
[    3.233588] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    3.239692] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    3.246489] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    3.253904] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    3.260167] pcieport 0000:00:00.0: PME: Signaling with IRQ 224
[    3.266404] pcieport 0000:00:00.0: AER: enabled with IRQ 224
[    3.272399] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    3.278650] pcieport 0000:00:01.0: PME: Signaling with IRQ 225
[    3.284892] pcieport 0000:00:01.0: AER: enabled with IRQ 225
[    3.527471] libphy: dsa slave smi: probed
[    3.531785] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    3.541091] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    3.550408] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    3.559691] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    3.568577] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    3.577680] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    3.587191] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    3.587753] DSA: tree 0 setup
[    3.597591] 9 cmdlinepart partitions found on MTD device SD
[    3.603156] Creating 9 MTD partitions on "SD":
[    3.607971] 0x000000000000-0x000000080000 : "mbr"
[    3.613998] 0x000000080000-0x000000100000 : "uboot"
[    3.619983] 0x000000100000-0x000000180000 : "config"
[    3.626123] 0x000000180000-0x000000200000 : "factory"
[    3.632269] 0x000000200000-0x000002200000 : "kernel"
[    3.637800] 0x000002200000-0x000004200000 : "recovery"
[    3.643478] 0x000004200000-0x000044200000 : "rootfs"
[    3.649018] mtd: device 6 (rootfs) set to be root filesystem
[    3.659280] 1 squashfs-split partitions found on MTD device rootfs
[    3.665478] 0x000005350000-0x000044200000 : "rootfs_data"
[    3.671458] 0x000044200000-0x0000c4200000 : "usrdata"
[    3.677335] 0x0000c4200000-0x0000ec580000 : "bmtpool"
[    3.683105] block2mtd: mtd0: [SD] erase_size = 64KiB [65536]
[    3.688970] hctosys: unable to open rtc device (rtc0)
[    3.748579] Freeing unused kernel memory: 67584K
[    3.753344] Run /init as init process
[    3.808028] init: Console is alive
[    3.812225] init: - watchdog -
[    3.832711] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.846745] SCSI subsystem initialized
[    3.856553] ahci 0000:02:00.0: enabling device (0140 -> 0143)
[    3.862395] ahci 0000:02:00.0: SSS flag set, parallel bus scan disabled
[    3.869236] ahci 0000:02:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
[    3.879909] ahci 0000:02:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs 
[    3.889289] scsi host0: ahci
[    3.892617] scsi host1: ahci
[    3.895733] ata1: SATA max UDMA/133 abar m512@0x60200000 port 0x60200100 irq 225
[    3.903196] ata2: SATA max UDMA/133 abar m512@0x60200000 port 0x60200180 irq 225
[    4.238610] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    4.256627] ata1.00: ATA-9: SSD 1TB, S0628A0, max UDMA/133
[    4.262116] ata1.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    4.284687] ata1.00: configured for UDMA/133
[    4.289810] scsi 0:0:0:0: Direct-Access     ATA      SSD 1TB          8A0  PQ: 0 ANSI: 5
[    4.300594] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    4.308434] sd 0:0:0:0: [sda] Write Protect is off
[    4.313350] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.323627]  sda: sda1
[    4.326727] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.624183] ata2: SATA link down (SStatus 0 SControl 300)
[    4.641943] usbcore: registered new interface driver usb-storage
[    4.648689] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.660951] init: - preinit -
[    4.738015] mtk_soc_eth 1b100000.ethernet: PPE started
[    4.743213] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/trgmii link mode
[    4.751262] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    4.779389] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[    4.786459] 8021q: adding VLAN 0 to HW filter on device lan1
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
f
- failsafe -
Generating 1024 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDiLCZ6fILwVK/MLA5zc6+afseKZVrThtFuOmBr0GpJTgfDxmTgBomEa2dlX6l5QtEjH33Ixh6ImH2fPV2pBeRbZ3waeC1GlUc0kJS2ox++wsJ6LuTBUFJXem5ba5Zo/ptSQ8TV4m86srx44KjLK6w+W3A819zIBY02AUJ24CP3rQ)
Fingerprint: sha1!! 81:16:ca:60:90:6f:69:f9:6f:de:1d:1f:5a:56:c3:85:2a:9b:02:65


BusyBox v1.31.1 () built-in shell (ash)

ash: can't access tty; job control turned off
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r12904-8514b6b42c
 -----------------------------------------------------
================= FAILSAFE MODE active ================
special commands:
* firstboot          reset settings to factory defaults
* mount_root     mount root-partition with config files

after mount_root:
* passwd                         change root's password
* /etc/config               directory with config files

for more help see:
https://openwrt.org/docs/guide-user/troubleshooting/
- failsafe_and_factory_reset
- root_password_reset
=======================================================

root@(none):/# firstboot
[   25.459737] jffs2reset: This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
[   30.289535] jffs2reset: /dev/mtdblock7 is not mounted
[   30.294731] jffs2reset: /dev/mtdblock7 will be erased on next mount
root@(none):/# [   33.754564] vusb: disabling
[   33.757492] vmc: disabling
[   33.760295] vmch: disabling
[   33.763188] vgp1: disabling
[   33.766382] vcamaf: disabling
dmesg | grep jffs
[    0.000000] Kernel command line: earlyprintk console=ttyS2,115200n8 vmalloc=496M block2mtd.block2mtd=/dev/mmcblk1,65536,SD,5 mtdparts=SD:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,32M(kernel),32
[    1.456575] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[   25.459737] jffs2reset: This will erase all settings and remove any installed packages. Are you sure? [N/y]
[   30.289535] jffs2reset: /dev/mtdblock7 is not mounted
[   30.294731] jffs2reset: /dev/mtdblock7 will be erased on next mount
root@(none):/# mount_root
[   80.656215] mount_root: loading kmods from internal overlay
[   80.674814] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   80.682574] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   84.251668] block: attempting to load /etc/config/fstab
[   84.257226] block: unable to load configuration (fstab: Entry not found)
[   84.264000] block: no usable configuration
[   84.268668] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   84.289286] mount_root: pivot_root failed /mnt /mnt/rom: Invalid argument
root@(none):/# firstboot
[   93.243431] This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
[   95.374625] opening /proc/filesystems failed: No such file or directory
[   95.381698] overlayfs not supported by kernel
root@(none):/#

I guess thrre are some options missing in kernel for using jiffs2/overlayfsand maybe others (missing /proc/filesystems). Main filesystems need to be builtin instead of module because you need it before loading modules that are located on rootfs

But config file for building is not changed between my old 4.19 and new 5.4. All options in kernel_menuconfig is saved! I try to build system with 4.19 and its boots and operate normaly, but when i make with only change to 5.4 its not use rootfs at all. Kernel just starts and working without rootfs, but if initramfs present kernel use it. But not use rootfs. I dont understend where i must search the problem. Also i check one more time in kernel_menuconfig - the overleyf, squashfs, squashfs-splits and jffs2 is still builtin checked. :frowning: May be something in bootargs

Nothing, krnel not wont use any rootfs. No errors, no attempts, only initramfs used. I wrote in bootargs root=/dev/mtdblock6 but no any attempts to mount something! What i missed? That is my kernel config config-5.4 (16.7 КБ)

# CONFIG_AIO is not set
CONFIG_ALIGNMENT_TRAP=y
CONFIG_ARCH_32BIT_OFF_T=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_ARCH_HAS_BINFMT_FLAT=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
CONFIG_ARCH_HAS_KCOV=y
CONFIG_ARCH_HAS_KEEPINITRD=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_HAS_PHYS_TO_DMA=y
CONFIG_ARCH_HAS_SETUP_DMA_OPS=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS=y
CONFIG_ARCH_HAS_TICK_BROADCAST=y
CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_KEEP_MEMBLOCK=y
CONFIG_ARCH_MEDIATEK=y
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
CONFIG_ARCH_MULTIPLATFORM=y
CONFIG_ARCH_MULTI_V6_V7=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_NR_GPIO=0
CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_ARM=y
CONFIG_ARM_APPENDED_DTB=y
CONFIG_ARM_ARCH_TIMER=y
CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
# CONFIG_ARM_ATAG_DTB_COMPAT is not set
CONFIG_ARM_CPU_SUSPEND=y
# CONFIG_ARM_CPU_TOPOLOGY is not set
CONFIG_ARM_CRYPTO=y
CONFIG_ARM_GIC=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_ARM_L1_CACHE_SHIFT=6
CONFIG_ARM_L1_CACHE_SHIFT_6=y
CONFIG_ARM_MEDIATEK_CPUFREQ=y
CONFIG_ARM_PATCH_IDIV=y
CONFIG_ARM_PATCH_PHYS_VIRT=y
# CONFIG_ARM_SMMU is not set
CONFIG_ARM_THUMB=y
CONFIG_ARM_THUMBEE=y
CONFIG_ARM_UNWIND=y
CONFIG_ARM_VIRT_EXT=y
CONFIG_ATAGS=y
CONFIG_AUTOFS_FS=y
CONFIG_AUTO_ZRELADDR=y
CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_MQ_PCI=y
CONFIG_BLK_PM=y
CONFIG_BOUNCE=y
CONFIG_BTRFS_FS=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_CACHE_L2X0 is not set
CONFIG_CC_HAS_KASAN_GENERIC=y
CONFIG_CLEANCACHE=y
CONFIG_CLKDEV_LOOKUP=y
CONFIG_CLKSRC_MMIO=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_CMDLINE="earlyprintk console=ttyS2,115200n8 vmalloc=496M bloearlyprintk console=ttyS2,115200n8 vmalloc=496M block2mtd.block2mtd=/dev/mmcblk1,65536,SD,5 mtdparts=SD:512k(mbr)ro,512k(uboot)ro,512k(config)ro,512k(factory)ro,32M(kernel),32M(recovery),1024M(rootfs) root=/dev/mtdblock6 rootfstype=squashfs,jffs2"
CONFIG_CMDLINE_FORCE=y
CONFIG_COMMON_CLK=y
CONFIG_COMMON_CLK_MEDIATEK=y
CONFIG_COMMON_CLK_MT2701=y
# CONFIG_COMMON_CLK_MT2701_AUDSYS is not set
CONFIG_COMMON_CLK_MT2701_BDPSYS=y
CONFIG_COMMON_CLK_MT2701_ETHSYS=y
# CONFIG_COMMON_CLK_MT2701_G3DSYS is not set
CONFIG_COMMON_CLK_MT2701_HIFSYS=y
CONFIG_COMMON_CLK_MT2701_IMGSYS=y
CONFIG_COMMON_CLK_MT2701_MMSYS=y
CONFIG_COMMON_CLK_MT2701_VDECSYS=y
# CONFIG_COMMON_CLK_MT7622 is not set
# CONFIG_COMMON_CLK_MT7629 is not set
# CONFIG_COMMON_CLK_MT8135 is not set
# CONFIG_COMMON_CLK_MT8173 is not set
CONFIG_COMMON_CLK_MT8516=y
# CONFIG_COMMON_CLK_MT8516_AUDSYS is not set
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_COREDUMP=y
# CONFIG_CPUFREQ_DT is not set
CONFIG_CPU_32v6K=y
CONFIG_CPU_32v7=y
CONFIG_CPU_ABRT_EV7=y
CONFIG_CPU_CACHE_V7=y
CONFIG_CPU_CACHE_VIPT=y
CONFIG_CPU_COPY_V6=y
CONFIG_CPU_CP15=y
CONFIG_CPU_CP15_MMU=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_HAS_ASID=y
CONFIG_CPU_PABRT_V7=y
CONFIG_CPU_PM=y
CONFIG_CPU_RMAP=y
CONFIG_CPU_SPECTRE=y
# CONFIG_CPU_THERMAL is not set
CONFIG_CPU_THUMB_CAPABLE=y
CONFIG_CPU_TLB_V7=y
CONFIG_CPU_V7=y
CONFIG_CRC16=y
# CONFIG_CRC32_SARWATE is not set
CONFIG_CRC32_SLICEBY8=y
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_AES_ARM=y
CONFIG_CRYPTO_AES_ARM_BS=y
CONFIG_CRYPTO_CHACHA20=y
CONFIG_CRYPTO_CHACHA20_NEON=y
CONFIG_CRYPTO_CRC32=y
CONFIG_CRYPTO_CRC32C=y
CONFIG_CRYPTO_CRC32_ARM_CE=y
CONFIG_CRYPTO_CRYPTD=y
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_DEV_MEDIATEK=y
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_DRBG_HMAC=y
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_GF128MUL=y
CONFIG_CRYPTO_GHASH_ARM_CE=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_JITTERENTROPY=y
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_LIB_SHA256=y
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
CONFIG_CRYPTO_NHPOLY1305=y
CONFIG_CRYPTO_NHPOLY1305_NEON=y
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
CONFIG_CRYPTO_POLY1305=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=y
CONFIG_CRYPTO_SEQIV=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA1_ARM=y
CONFIG_CRYPTO_SHA1_ARM_NEON=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA256_ARM=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_SHA512_ARM=y
CONFIG_CRYPTO_SIMD=y
CONFIG_CRYPTO_ZSTD=y
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_DEBUG_ALIGN_RODATA=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_GPIO=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_LL=y
CONFIG_DEBUG_LL_INCLUDE="debug/8250.S"
CONFIG_DEBUG_MISC=y
CONFIG_DEBUG_MT6589_UART0=y
# CONFIG_DEBUG_MT8127_UART0 is not set
# CONFIG_DEBUG_MT8135_UART3 is not set
CONFIG_DEBUG_PREEMPT=y
CONFIG_DEBUG_UART_8250=y
# CONFIG_DEBUG_UART_8250_FLOW_CONTROL is not set
CONFIG_DEBUG_UART_8250_SHIFT=2
# CONFIG_DEBUG_UART_8250_WORD is not set
CONFIG_DEBUG_UART_PHYS=0x11004000
CONFIG_DEBUG_UART_VIRT=0xf1004000
CONFIG_DEBUG_UNCOMPRESS=y
CONFIG_DMADEVICES=y
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y
CONFIG_DMA_REMAP=y
CONFIG_DTC=y
CONFIG_EARLY_PRINTK=y
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EINT_MTK=y
CONFIG_ELF_CORE=y
CONFIG_EXT4_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_STAT_FS=y
CONFIG_FIXED_PHY=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_FREEZER=y
CONFIG_FS_IOMAP=y
CONFIG_FS_MBCACHE=y
CONFIG_FW_LOADER_PAGED_BUF=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_EARLY_IOREMAP=y
CONFIG_GENERIC_IDLE_POLL_SETUP=y
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_GENERIC_IRQ_MULTI_HANDLER=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_PHY=y
CONFIG_GENERIC_PINCONF=y
CONFIG_GENERIC_PINCTRL_GROUPS=y
CONFIG_GENERIC_PINMUX_FUNCTIONS=y
CONFIG_GENERIC_SCHED_CLOCK=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_SYSFS=y
CONFIG_HANDLE_DOMAIN_IRQ=y
CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_HAS_DMA=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_HAVE_ARCH_BITREVERSE=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_HAVE_ARCH_PFN_VALID=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_ARM_ARCH_TIMER=y
CONFIG_HAVE_ARM_SMCCC=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_HAVE_COPY_THREAD_TLS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_IDE=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_HAVE_NET_DSA=y
CONFIG_HAVE_OPROFILE=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_PCI=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_SMP=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_UID16=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HIGHMEM=y
# CONFIG_HIGHPTE is not set
CONFIG_HOTPLUG_CPU=y
CONFIG_HWMON=y
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_MTK=y
CONFIG_HZ=100
CONFIG_HZ_100=y
CONFIG_HZ_FIXED=0
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MT65XX=y
CONFIG_ICPLUS_PHY=y
CONFIG_IIO=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_INITRAMFS_COMPRESSION=""
# CONFIG_INITRAMFS_FORCE is not set
CONFIG_INITRAMFS_ROOT_GID=1000
CONFIG_INITRAMFS_ROOT_UID=1000
CONFIG_INITRAMFS_SOURCE="/openwrt/trunk/build_dir/target-arm_cortex-a7_musl-1.1.14_eabi/root-mediatek /openwrt/trunk/target/linux/generic/image/initramfs-base-files.txt"
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_IO_PGTABLE_ARMV7S is not set
# CONFIG_IOMMU_IO_PGTABLE_LPAE is not set
CONFIG_IOMMU_SUPPORT=y
CONFIG_IO_URING=y
CONFIG_IRQCHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_IRQ_WORK=y
CONFIG_JBD2=y
CONFIG_JFFS2_FS_DEBUG=1
CONFIG_KALLSYMS=y
CONFIG_LEDS_MT6323=y
CONFIG_LIBCRC32C=y
CONFIG_LIBFDT=y
CONFIG_LOCK_DEBUGGING_SUPPORT=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
# CONFIG_MACH_MT2701 is not set
# CONFIG_MACH_MT6589 is not set
# CONFIG_MACH_MT6592 is not set
CONFIG_MACH_MT7623=y
# CONFIG_MACH_MT7629 is not set
# CONFIG_MACH_MT8127 is not set
# CONFIG_MACH_MT8135 is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_MDIO_BITBANG=y
CONFIG_MDIO_BUS=y
CONFIG_MDIO_DEVICE=y
CONFIG_MDIO_GPIO=y
CONFIG_MEDIATEK_MT6577_AUXADC=y
CONFIG_MEDIATEK_WATCHDOG=y
CONFIG_MEMFD_CREATE=y
CONFIG_MFD_CORE=y
CONFIG_MFD_MT6397=y
CONFIG_MFD_SYSCON=y
CONFIG_MIGHT_HAVE_CACHE_L2X0=y
CONFIG_MIGRATION=y
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_MTK=y
CONFIG_MMC_SDHCI=y
# CONFIG_MMC_SDHCI_PCI is not set
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_TIFM_SD is not set
CONFIG_MODULES_USE_ELF_REL=y
# CONFIG_MT753X_GSW is not set
CONFIG_MTD_BLOCK2MTD=y
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_SPI_NOR=y
CONFIG_MTD_SPLIT_FIRMWARE=y
CONFIG_MTD_SPLIT_UIMAGE_FW=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_BEB_LIMIT=20
CONFIG_MTD_UBI_BLOCK=y
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
CONFIG_MTD_UBI_WL_THRESHOLD=4096
# CONFIG_MTK_CMDQ is not set
# CONFIG_MTK_CQDMA is not set
CONFIG_MTK_EFUSE=y
# CONFIG_MTK_HSDMA is not set
CONFIG_MTK_INFRACFG=y
# CONFIG_MTK_IOMMU is not set
# CONFIG_MTK_IOMMU_V1 is not set
CONFIG_MTK_PMIC_WRAP=y
CONFIG_MTK_SCPSYS=y
CONFIG_MTK_THERMAL=y
CONFIG_MTK_TIMER=y
# CONFIG_MTK_UART_APDMA is not set
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEON=y
CONFIG_NET_DEVLINK=y
CONFIG_NET_DSA=y
CONFIG_NET_DSA_MT7530=y
CONFIG_NET_DSA_TAG_MTK=y
CONFIG_NET_FLOW_LIMIT=y
CONFIG_NET_MEDIATEK_OFFLOAD=y
CONFIG_NET_MEDIATEK_SOC=y
CONFIG_NET_SWITCHDEV=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_NET_VENDOR_AMAZON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_AURORA is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CIRRUS is not set
# CONFIG_NET_VENDOR_CISCO is not set
# CONFIG_NET_VENDOR_CORTINA is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
# CONFIG_NET_VENDOR_FARADAY is not set
# CONFIG_NET_VENDOR_GOOGLE is not set
# CONFIG_NET_VENDOR_HISILICON is not set
# CONFIG_NET_VENDOR_HP is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_NET_VENDOR_MARVELL is not set
CONFIG_NET_VENDOR_MEDIATEK=y
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETERION is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_NET_VENDOR_PACKET_ENGINES is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_NET_VENDOR_XILINX is not set
CONFIG_NLS=y
CONFIG_NO_HZ=y
CONFIG_NO_HZ_COMMON=y
CONFIG_NO_HZ_IDLE=y
CONFIG_NR_CPUS=4
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
CONFIG_OF=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_FLATTREE=y
CONFIG_OF_GPIO=y
CONFIG_OF_IRQ=y
CONFIG_OF_KOBJ=y
CONFIG_OF_MDIO=y
CONFIG_OF_NET=y
CONFIG_OLD_SIGACTION=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_PADATA=y
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_PCI=y
CONFIG_PCIEAER=y
CONFIG_PCIEPORTBUS=y
CONFIG_PCIE_MEDIATEK=y
CONFIG_PCIE_PME=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_DOMAINS_GENERIC=y
CONFIG_PCI_MSI=y
CONFIG_PCI_MSI_IRQ_DOMAIN=y
CONFIG_PERF_USE_VMALLOC=y
CONFIG_PGTABLE_LEVELS=2
CONFIG_PHYLIB=y
CONFIG_PHYLINK=y
CONFIG_PHY_MTK_TPHY=y
# CONFIG_PHY_MTK_UFS is not set
# CONFIG_PHY_MTK_XSPHY is not set
CONFIG_PINCTRL=y
CONFIG_PINCTRL_MT2701=y
CONFIG_PINCTRL_MT6397=y
CONFIG_PINCTRL_MT7623=y
CONFIG_PINCTRL_MTK=y
CONFIG_PINCTRL_MTK_MOORE=y
CONFIG_PM=y
CONFIG_PM_CLK=y
CONFIG_PM_GENERIC_DOMAINS=y
CONFIG_PM_GENERIC_DOMAINS_OF=y
CONFIG_PM_GENERIC_DOMAINS_SLEEP=y
CONFIG_PM_OPP=y
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_POWER_RESET=y
CONFIG_POWER_SUPPLY=y
CONFIG_POWER_SUPPLY_HWMON=y
CONFIG_PREEMPT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_RCU=y
CONFIG_PRINTK_TIME=y
CONFIG_PWM=y
CONFIG_PWM_MEDIATEK=y
# CONFIG_PWM_MTK_DISP is not set
CONFIG_PWM_SYSFS=y
CONFIG_RAID6_PQ=y
CONFIG_RAS=y
CONFIG_RATIONAL=y
CONFIG_RCU_CPU_STALL_TIMEOUT=21
# CONFIG_RCU_EXPERT is not set
CONFIG_RCU_NEED_SEGCBLIST=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_REFCOUNT_FULL=y
CONFIG_REGMAP=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_GPIO=y
CONFIG_REGULATOR_MT6323=y
# CONFIG_REGULATOR_MT6380 is not set
# CONFIG_REGULATOR_MT6397 is not set
# CONFIG_REGULATOR_QCOM_SPMI is not set
CONFIG_RESET_CONTROLLER=y
CONFIG_RFS_ACCEL=y
CONFIG_RPS=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_MT6397=y
CONFIG_RTC_DRV_MT7622=y
CONFIG_RTC_I2C_AND_SPI=y
CONFIG_RTC_MC146818_LIB=y
# CONFIG_RTL8367S_GSW is not set
CONFIG_RWSEM_SPIN_ON_OWNER=y
# CONFIG_SERIAL_8250_DMA is not set
CONFIG_SERIAL_8250_FSL=y
CONFIG_SERIAL_8250_MT6577=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SGL_ALLOC=y
CONFIG_SMP=y
# CONFIG_SMP_ON_UP is not set
CONFIG_SPARSE_IRQ=y
CONFIG_SPI=y
CONFIG_SPI_BITBANG=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_MEM=y
CONFIG_SPI_MT65XX=y
# CONFIG_SPI_MTK_NOR is not set
# CONFIG_SPI_MTK_SNFI is not set
CONFIG_SPMI=y
CONFIG_SQUASHFS_XATTR=y
CONFIG_SRCU=y
# CONFIG_STRIP_ASM_SYMS is not set
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_SWCONFIG=y
CONFIG_SWPHY=y
CONFIG_SWP_EMULATE=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_TASKS_RCU=y
CONFIG_THERMAL=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0
CONFIG_THERMAL_GOV_STEP_WISE=y
CONFIG_THERMAL_OF=y
CONFIG_TICK_CPU_ACCOUNTING=y
CONFIG_TIMER_OF=y
CONFIG_TIMER_PROBE=y
CONFIG_TREE_SRCU=y
CONFIG_UBIFS_FS=y
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_UNWINDER_ARM=y
CONFIG_USB=y
CONFIG_USB_COMMON=y
# CONFIG_USB_EHCI_HCD is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_MTK=y
CONFIG_USB_XHCI_PLATFORM=y
CONFIG_USE_OF=y
CONFIG_VFP=y
CONFIG_VFPv3=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_WATCHDOG_CORE=y
CONFIG_WLAN_VENDOR_MEDIATEK=y
CONFIG_XOR_BLOCKS=y
CONFIG_XPS=y
CONFIG_XXHASH=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_BCJ=y
CONFIG_ZBOOT_ROM_BSS=0
CONFIG_ZBOOT_ROM_TEXT=0
CONFIG_ZLIB_DEFLATE=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y

You could try booting with your initrd and try manual mount…but missing /proc/filesystems is strange

Already tryed, same error /proc/filesystems not found. Now i do rm -rf my whole openwrt directory, do new git clone, defconfig, and will try reconstruct my configuration manually. Not from old config files.

Is anything in /proc? Maybe you need to mount this first…

mount proc /proc -t proc

Too late, im already recompile toolchain. After few hours of building i try again.

When kernel starts with initramfs the /proc is normally populated. In other cases i cant check it because kernel runs without rootfs and i cant reach any controlled console. In new instance of git clone the behavior is same - not mounting any rootfs. If initrams presented in the image - it runs, but not external rootfs. Now i trying compile kernel without initramfs supporting and without ‘splitting firmware to kernel+squashfs’ ability. But I leave feature ‘use ROOTFS mtd partition for root filesystem’ in it place. Now compilation in progress.

No luck. Kernel still not load any rootfs.

I make another instance of git clone. I just select target banana pi r2, make defconfig and in make kernel_menuconfig set properly block2mtd bootargs. In kernl 5.4 openwrt is automatically finding rootfs and data partitions from one big MTD partition ‘firmware’. This feature working perfect, but WHY KERNEL NOT MOUNT FOUNDED ROOTFS?! I guess in the kernel no VFS to serve for mounting enything? Where i can get help with it? There is bootlog…

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

Now i cant compile firmware at all.

drivers/net/ethernet/mediatek/mtk_eth_soc.c:70:5: error: conflicting types for 'mtk_m32'
 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
     ^~~~~~~
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:25:
drivers/net/ethernet/mediatek/mtk_eth_soc.h:964:6: note: previous declaration of 'mtk_m32' was here
 void mtk_m32(struct mtk_eth *eth, u32 clear, u32 set, unsigned reg);
      ^~~~~~~
make[9]: *** [scripts/Makefile.build:266: drivers/net/ethernet/mediatek/mtk_eth_soc.o] Error 1
make[8]: *** [scripts/Makefile.build:500: drivers/net/ethernet/mediatek] Error 2
make[7]: *** [scripts/Makefile.build:500: drivers/net/ethernet] Error 2
make[7]: *** Waiting for unfinished jobs....
.
.
.
make[6]: *** [scripts/Makefile.build:500: drivers/net] Error 2
make[6]: *** Waiting for unfinished jobs....
.
.
.
make[5]: *** [Makefile:1692: drivers] Error 2
make[5]: *** Waiting for unfinished jobs....
.
.
.
make[5]: Leaving directory '/home/andrey/eMMC/banana-pi/openwrt/build_dir/target-arm_cortex-    a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-5.4.35'
make[4]: *** [Makefile:19: /home/andrey/eMMC/banana-pi/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-5.4.35/.image] Error 2
make[4]: Leaving directory '/home/andrey/eMMC/banana-pi/openwrt/target/linux/mediatek'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/home/andrey/eMMC/banana-pi/openwrt/target/linux'
time: target/linux/install#179.14#30.07#58.04
make[2]: *** [target/Makefile:25: target/linux/install] Error 2
make[2]: Leaving directory '/home/andrey/eMMC/banana-pi/openwrt'
make[1]: *** [target/Makefile:19: /home/andrey/eMMC/banana-pi/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/andrey/eMMC/banana-pi/openwrt'
make: *** [/home/andrey/eMMC/banana-pi/openwrt/include/toplevel.mk:220: world] Ошибка 2

What im do wrong?

I got the same. Looks like some bug in one of patch. Comment whole function

u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)

In file drivers/net/ethernet/mediatek/mtk_eth_soc.c:70

I guess you cannot comment out the function…

You have different return-types and one parameter differs.

First look in c-file if mask or clear is used and the if a return-statement is used (use u32 instead of void in header file)

I mannually edited this file

> 32 mtk_r32(struct mtk_eth *eth, unsigned reg)
{
	return __raw_readl(eth->base + reg);
}

/*u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
{
	u32 val;

	val = mtk_r32(eth, reg);
	val &= ~mask;
	val |= set;
	mtk_w32(eth, val, reg);
	return reg;
}*/

void mtk_m32(struct mtk_eth *eth, u32 clear, u32 set, unsigned reg)
{
	u32 val;

	spin_lock(&eth->page_lock);
	val = __raw_readl(eth->base + reg);
	val &= ~clear;
	val |= set;
	__raw_writel(val, eth->base + reg);
	spin_unlock(&eth->page_lock);
}

and it worked

PS. :slight_smile: How to correct paste code here on forum?