Just built openwrt with for BPI-R4 w/ 8gb of RAM. Couple questions?

I just built openwrt with the 8gb files from frank-w, bpi-r4_sdmmc_8GB_bl2.img and bpi-r4_sdmmc_8GB_fip.img. I also did the appropriate patch for 8gb in the u-boot the build was successful and boots perfectly. however my RAM still only shows 4gb of RAM but i have 4gb of buffered RAM also?? is this my other 4gb of RAM. just asking because I am pretty sure i built and applied patch correctly. See my screenshot below. also links to my openwrt build/repo below.

https://github.com/bpawnzZ/openwrt/actions/runs/18609473398

same files from github drive link

https://github.com/bpawnzZ/openwrt/tree/bpi-r4-8gb

How have you flashed the bl2? Are you (really) sure,you have a 8gb board (but 4gb would not bootup with 8gb bl2)?

It boots just fine

BL2/FIP File Integration

The custom 8GB RAM bootloader files (bpi-r4_sdmmc_8GB_bl2.img and bpi-r4_sdmmc_8GB_fip.bin) are integrated into the OpenWrt build through the Makefile.local configuration. This file overrides the default BL2 and FIP files specifically for the Banana Pi R4 8GB variant, ensuring the bootloader properly initializes the 8GB RAM configuration.

Device Tree Memory Configuration

A patch (450-add-bpi-r4.patch) modifies the device tree to properly configure 8GB RAM. The memory region is set to <0x00 0x40000000 0x02 0x00000000>, which represents 8GB of RAM starting at address 0x40000000 using proper 64-bit addressing format. This ensures the kernel can access and utilize the full 8GB RAM capacity.

Build Process

During the OpenWrt build, the custom bootloader files are copied to the staging directory and the device tree is compiled with the 8GB memory configuration. The final firmware image includes both the custom bootloader and the properly configured kernel, creating a complete 8GB-compatible OpenWrt system for the Banana Pi R4.

Thanks for responding bro! So to be clear I am not flashing them… i built a custom openwrt build with the files already in the image. But it is not showing the RAM how i would expect it to? but it is showing 4gb of buffer RAM?

We already had someone on the forum who had the R4 4gb version, but it was sold as the 8gb version.

When using the 8gb bl2 on a 4gb board, the board does not boot, it shows 0 gb

So can you show a bootlog? It looks like you are still using the 4gb bl2.

I need to flash my arduino to give you from serial boot log. i can do that here shortly. but for now does below help??

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd090]
[    0.000000] Linux version 6.12.51 (runner@runnervmzdgdc) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r0-0f724d7) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Fri Oct 17 20:18:25 2025
[    0.000000] Machine model: Banana Pi BPI-R4 (2x SFP+)
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004304ffff (320 KiB) nomap non-reusable secmon@43000000
[    0.000000] OF: reserved mem: 0x0000000047cc0000..0x0000000047dbffff (1024 KiB) nomap non-reusable wmcpu-reserved@47cc0000
[    0.000000] OF: reserved mem: 0x000000004f600000..0x000000004f63ffff (256 KiB) nomap non-reusable wo-emi@4f600000
[    0.000000] OF: reserved mem: 0x000000004f640000..0x000000004f67ffff (256 KiB) nomap non-reusable wo-emi@4f640000
[    0.000000] OF: reserved mem: 0x000000004f680000..0x000000004f6bffff (256 KiB) nomap non-reusable wo-emi@4f680000
[    0.000000] OF: reserved mem: 0x000000004f700000..0x000000004fefffff (8192 KiB) nomap non-reusable wo-data@4f700000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004304ffff]
[    0.000000]   node   0: [mem 0x0000000043050000-0x0000000047cbffff]
[    0.000000]   node   0: [mem 0x0000000047cc0000-0x0000000047dbffff]
[    0.000000]   node   0: [mem 0x0000000047dc0000-0x000000004f5fffff]
[    0.000000]   node   0: [mem 0x000000004f600000-0x000000004f6bffff]
[    0.000000]   node   0: [mem 0x000000004f6c0000-0x000000004f6fffff]
[    0.000000]   node   0: [mem 0x000000004f700000-0x000000004fefffff]
[    0.000000]   node   0: [mem 0x000000004ff00000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.5
[    0.000000] percpu: Embedded 20 pages/cpu s42520 r8192 d31208 u81920
[    0.000000] pcpu-alloc: s42520 r8192 d31208 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa7d1000-0x00000000fe7d1000] (64MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 416 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000067] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000073] pid_max: default: 32768 minimum: 301
[    0.002148] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002161] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003661] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.004119] rcu: Hierarchical SRCU implementation.
[    0.004121] rcu: 	Max phase no-delay instances is 1000.
[    0.004211] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.004379] smp: Bringing up secondary CPUs ...
[    0.004595] Detected VIPT I-cache on CPU1
[    0.004634] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.004655] CPU1: Booted secondary processor 0x0000000001 [0x411fd090]
[    0.004925] Detected VIPT I-cache on CPU2
[    0.004945] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.004955] CPU2: Booted secondary processor 0x0000000002 [0x411fd090]
[    0.005184] Detected VIPT I-cache on CPU3
[    0.005206] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.005215] CPU3: Booted secondary processor 0x0000000003 [0x411fd090]
[    0.005249] smp: Brought up 1 node, 4 CPUs
[    0.005254] SMP: Total of 4 processors activated.
[    0.005256] CPU: All CPU(s) started at EL2
[    0.005258] CPU features: detected: 32-bit EL0 Support
[    0.005261] CPU features: detected: CRC32 instructions
[    0.005286] alternatives: applying system-wide alternatives
[    0.005363] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005465] Memory: 4019728K/4194304K available (9216K kernel code, 976K rwdata, 2740K rodata, 448K init, 300K bss, 171012K reserved, 0K cma-reserved)
[    0.008388] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008399] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.008450] 29296 pages in range for non-PLT usage
[    0.008451] 520816 pages in range for PLT usage
[    0.009564] pinctrl core: initialized pinctrl subsystem
[    0.010474] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010770] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.010872] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010968] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.011240] thermal_sys: Registered thermal governor 'fair_share'
[    0.011242] thermal_sys: Registered thermal governor 'bang_bang'
[    0.011244] thermal_sys: Registered thermal governor 'step_wise'
[    0.011246] thermal_sys: Registered thermal governor 'user_space'
[    0.011286] ASID allocator initialised with 65536 entries
[    0.011796] pstore: Using crash dump compression: deflate
[    0.011802] printk: legacy console [ramoops-1] enabled
[    0.012058] pstore: Registered ramoops as persistent store backend
[    0.012063] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.013940] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.017290] /soc/pcie@11280000: Fixed dependency cycle(s) with /soc/pcie@11280000/interrupt-controller
[    0.017393] /soc/pcie@11290000: Fixed dependency cycle(s) with /soc/pcie@11290000/interrupt-controller
[    0.017497] /soc/pcie@11300000: Fixed dependency cycle(s) with /soc/pcie@11300000/interrupt-controller
[    0.017592] /soc/pcie@11310000: Fixed dependency cycle(s) with /soc/pcie@11310000/interrupt-controller
[    0.027545] cryptd: max_cpu_qlen set to 1000
[    0.029210] SCSI subsystem initialized
[    0.029308] libata version 3.00 loaded.
[    0.030350] clocksource: Switched to clocksource arch_sys_counter
[    0.032029] NET: Registered PF_INET protocol family
[    0.032170] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.034471] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.034494] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.034504] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.034613] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.035079] TCP: Hash tables configured (established 32768 bind 32768)
[    0.035389] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.035504] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.035554] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.035762] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.035793] PCI: CLS 0 bytes, default 64
[    0.036647] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.040454] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.040461] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.072304] mtk-xsphy soc:xs-phy@11e10000: failed to get ref_clk(id-1)
[    0.072902] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.072920] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.072933] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.072946] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.073043] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.073054] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.073064] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.073074] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.073092] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.073102] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.073166] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.073176] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.073186] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.073196] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.073213] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.073221] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.073293] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.073304] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.073314] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.073324] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.073341] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.073349] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    0.077636] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.078356] printk: legacy console [ttyS0] disabled
[    0.098624] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 99, base_baud = 2500000) is a ST16650V2
[    0.098661] printk: legacy console [ttyS0] enabled
[    1.139651] random: crng init done
[    1.144447] loop: module loaded
[    1.148913] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.154248] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.162461] 2 fixed-partitions partitions found on MTD device spi0.0
[    1.168819] OF: Bad cell count for /soc/spi@11007000/flash@0/partitions
[    1.175483] OF: Bad cell count for /soc/spi@11007000/flash@0/partitions
[    1.182227] Creating 2 MTD partitions on "spi0.0":
[    1.187011] 0x000000000000-0x000000200000 : "bl2"
[    1.193152] 0x000000200000-0x000008000000 : "ubi"
[    1.264992] ubi0: default fastmap pool size: 50
[    1.269518] ubi0: default fastmap WL pool size: 25
[    1.274310] ubi0: attaching mtd1
[    1.702163] ubi0: scanning is finished
[    1.710494] ubi0: attached mtd1 (name "ubi", size 126 MiB)
[    1.715974] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.722843] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.729619] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.736572] ubi0: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
[    1.742655] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.749863] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 660246019
[    1.758897] ubi0: available PEBs: 0, total reserved PEBs: 1008, PEBs reserved for bad PEB handling: 20
[    1.768197] ubi0: background thread "ubi_bgt0d" started, PID 211
[    1.901839] i2c_dev: i2c /dev entries driver
[    1.906534] /soc/i2c@11003000/rt5190a@64: Fixed dependency cycle(s) with /soc/i2c@11003000/rt5190a@64/regulators/buck1
[    1.918254] mtk-lvts-thermal 1100a000.lvts: golden temp=60
[    1.925186] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.934948] mtk-msdc 11230000.mmc: Got CD GPIO
[    1.940400] NET: Registered PF_INET6 protocol family
[    1.945759] Segment Routing with IPv6
[    1.949426] In-situ OAM (IOAM) with IPv6
[    1.953374] NET: Registered PF_PACKET protocol family
[    1.958474] 8021q: 802.1Q VLAN Support v1.8
[    1.963631] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=52 arg=00000C00; host->error=0x00000002
[    1.973282] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=52 arg=80000C08; host->error=0x00000002
[    1.975087] phy phy-soc:[email protected]: type_sw - reg 0x194, index 0
[    1.987428] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    1.989641] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    1.998453] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.005233] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.014697] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.020434] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.029899] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.037788] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.077924] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.087965] mmc0: new high speed SDHC card at address 0001
[    2.094030] mmcblk0: mmc0:0001 00000 7.38 GiB
[    2.107755] Alternate GPT is invalid, using primary GPT.
[    2.113092]  mmcblk0: p1 p2 p3 p4 p5 p6 p7
[    2.370361] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    2.379164] mtk-pcie-gen3 11280000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    2.388171] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    2.395487] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    2.401755] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    2.410187] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    2.648503] mtk-pcie-gen3 11290000.pcie: set IO trans window[0]: cpu_addr = 0x28000000, pci_addr = 0x28000000, size = 0x200000
[    2.659889] mtk-pcie-gen3 11290000.pcie: set MEM trans window[1]: cpu_addr = 0x28200000, pci_addr = 0x28200000, size = 0x200000
[    2.671354] mtk-pcie-gen3 11290000.pcie: set MEM trans window[2]: cpu_addr = 0x28400000, pci_addr = 0x28400000, size = 0x400000
[    2.682819] mtk-pcie-gen3 11290000.pcie: set MEM trans window[3]: cpu_addr = 0x28800000, pci_addr = 0x28800000, size = 0x800000
[    2.694282] mtk-pcie-gen3 11290000.pcie: set MEM trans window[4]: cpu_addr = 0x29000000, pci_addr = 0x29000000, size = 0x1000000
[    2.705831] mtk-pcie-gen3 11290000.pcie: set MEM trans window[5]: cpu_addr = 0x2a000000, pci_addr = 0x2a000000, size = 0x2000000
[    2.717380] mtk-pcie-gen3 11290000.pcie: set MEM trans window[6]: cpu_addr = 0x2c000000, pci_addr = 0x2c000000, size = 0x4000000
[    2.729168] mtk-pcie-gen3 11290000.pcie: PCI host bridge to bus 0002:00
[    2.735781] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.741260] pci_bus 0002:00: root bus resource [io  0x200000-0x3fffff] (bus address [0x28000000-0x281fffff])
[    2.751078] pci_bus 0002:00: root bus resource [mem 0x28200000-0x2fffffff]
[    2.757941] pci_bus 0002:00: scanning bus
[    2.761968] pci 0002:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port
[    2.769277] pci 0002:00:00.0: BAR 0 [mem 0x00000000-0x00007fff 64bit]
[    2.775714] pci 0002:00:00.0: PCI bridge to [bus 00]
[    2.780673] pci 0002:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.786755] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    2.793540] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    2.801326] pci 0002:00:00.0: PME# supported from D0 D3hot D3cold
[    2.807410] pci 0002:00:00.0: PME# disabled
[    2.812691] pci_bus 0002:00: fixups for bus
[    2.816866] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.823559] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.831556] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.838288] pci_bus 0002:01: scanning bus
[    2.842316] pci 0002:01:00.0: [144d:a802] type 00 class 0x010802 PCIe Endpoint
[    2.849546] pci 0002:01:00.0: BAR 0 [mem 0x00000000-0x00003fff 64bit]
[    2.855985] pci 0002:01:00.0: BAR 2 [io  0x0000-0x00ff]
[    2.861364] pci 0002:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    2.890384] pci_bus 0002:01: fixups for bus
[    2.894558] pci_bus 0002:01: bus scan returning with max=01
[    2.900119] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    2.906731] pci_bus 0002:00: bus scan returning with max=01
[    2.912305] pci 0002:00:00.0: bridge window [mem 0x28200000-0x282fffff]: assigned
[    2.919776] pci 0002:00:00.0: BAR 0 [mem 0x28300000-0x28307fff 64bit]: assigned
[    2.927083] pci 0002:00:00.0: bridge window [io  0x200000-0x200fff]: assigned
[    2.934210] pci 0002:01:00.0: BAR 0 [mem 0x28200000-0x28203fff 64bit]: assigned
[    2.941516] pci 0002:01:00.0: BAR 2 [io  0x200000-0x2000ff]: assigned
[    2.947948] pci 0002:00:00.0: PCI bridge to [bus 01]
[    2.952904] pci 0002:00:00.0:   bridge window [io  0x200000-0x200fff]
[    2.959334] pci 0002:00:00.0:   bridge window [mem 0x28200000-0x282fffff]
[    2.966116] pci_bus 0002:00: resource 4 [io  0x200000-0x3fffff]
[    2.972026] pci_bus 0002:00: resource 5 [mem 0x28200000-0x2fffffff]
[    2.978280] pci_bus 0002:01: resource 0 [io  0x200000-0x200fff]
[    2.984189] pci_bus 0002:01: resource 1 [mem 0x28200000-0x282fffff]
[    2.990453] pci 0002:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.998892] pci 0002:01:00.0: Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[    3.007400] pcieport 0002:00:00.0: assign IRQ: got 114
[    3.012538] pcieport 0002:00:00.0: enabling device (0000 -> 0003)
[    3.018628] pcieport 0002:00:00.0: enabling bus mastering
[    3.024388] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.032824] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1
[    3.041252] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2
[    3.049677] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3
[    3.058103] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4
[    3.066529] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5
[    3.074955] mtk-pcie-gen3 11290000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11290c00 data 6
[    3.083380] mtk-pcie-gen3 11290000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11290c00 data 7
[    3.091806] mtk-pcie-gen3 11290000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11290c00 data 8
[    3.100230] mtk-pcie-gen3 11290000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11290c00 data 9
[    3.108655] mtk-pcie-gen3 11290000.pcie: msi#0xa address_hi 0x0 address_lo 0x11290c00 data 10
[    3.117173] mtk-pcie-gen3 11290000.pcie: msi#0xb address_hi 0x0 address_lo 0x11290c00 data 11
[    3.125688] mtk-pcie-gen3 11290000.pcie: msi#0xc address_hi 0x0 address_lo 0x11290c00 data 12
[    3.134203] mtk-pcie-gen3 11290000.pcie: msi#0xd address_hi 0x0 address_lo 0x11290c00 data 13
[    3.142716] mtk-pcie-gen3 11290000.pcie: msi#0xe address_hi 0x0 address_lo 0x11290c00 data 14
[    3.151229] mtk-pcie-gen3 11290000.pcie: msi#0xf address_hi 0x0 address_lo 0x11290c00 data 15
[    3.159740] mtk-pcie-gen3 11290000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11290c00 data 16
[    3.168340] mtk-pcie-gen3 11290000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11290c00 data 17
[    3.176941] mtk-pcie-gen3 11290000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11290c00 data 18
[    3.185540] mtk-pcie-gen3 11290000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11290c00 data 19
[    3.194139] mtk-pcie-gen3 11290000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11290c00 data 20
[    3.202739] mtk-pcie-gen3 11290000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11290c00 data 21
[    3.211339] mtk-pcie-gen3 11290000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11290c00 data 22
[    3.219936] mtk-pcie-gen3 11290000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11290c00 data 23
[    3.228536] mtk-pcie-gen3 11290000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11290c00 data 24
[    3.237137] mtk-pcie-gen3 11290000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11290c00 data 25
[    3.245737] mtk-pcie-gen3 11290000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11290c00 data 26
[    3.254339] mtk-pcie-gen3 11290000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11290c00 data 27
[    3.262939] mtk-pcie-gen3 11290000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11290c00 data 28
[    3.271537] mtk-pcie-gen3 11290000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11290c00 data 29
[    3.280136] mtk-pcie-gen3 11290000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11290c00 data 30
[    3.288736] mtk-pcie-gen3 11290000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11290c00 data 31
[    3.297730] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.306231] pcieport 0002:00:00.0: PME: Signaling with IRQ 115
[    3.312171] pcieport 0002:00:00.0: AER: enabled with IRQ 115
[    3.317866] pcieport 0002:00:00.0: save config 0x00: 0x798814c3
[    3.323788] pcieport 0002:00:00.0: save config 0x04: 0x00100407
[    3.329698] pcieport 0002:00:00.0: save config 0x08: 0x06040001
[    3.335611] pcieport 0002:00:00.0: save config 0x0c: 0x00010000
[    3.341522] pcieport 0002:00:00.0: save config 0x10: 0x28300004
[    3.347431] pcieport 0002:00:00.0: save config 0x14: 0x00000000
[    3.353342] pcieport 0002:00:00.0: save config 0x18: 0x00010100
[    3.359249] pcieport 0002:00:00.0: save config 0x1c: 0x00000101
[    3.365160] pcieport 0002:00:00.0: save config 0x20: 0x28202820
[    3.371073] pcieport 0002:00:00.0: save config 0x24: 0x0001fff1
[    3.376981] pcieport 0002:00:00.0: save config 0x28: 0x00000000
[    3.382892] pcieport 0002:00:00.0: save config 0x2c: 0x00000000
[    3.388799] pcieport 0002:00:00.0: save config 0x30: 0x28002800
[    3.394710] pcieport 0002:00:00.0: save config 0x34: 0x00000080
[    3.400620] pcieport 0002:00:00.0: save config 0x38: 0x00000000
[    3.406528] pcieport 0002:00:00.0: save config 0x3c: 0x00020172
[    3.412713] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.420018] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.426289] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.434723] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    3.760373] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.769155] mtk-pcie-gen3 11300000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    3.778063] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    3.785373] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    3.791638] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    3.800067] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.120367] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.129145] mtk-pcie-gen3 11310000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    4.139441] FIT: Detected U-Boot 2025.10-OpenWrt-r0-0f724d7
[    4.145012] FIT: Selected configuration: "config-mt7988a-bananapi-bpi-r4" (OpenWrt bananapi_bpi-r4)
[    4.154057] FIT:           kernel sub-image 0x00001000..0x005cdd09 "kernel-1" (ARM64 OpenWrt Linux-6.12.51) 
[    4.163882] FIT:          flat_dt sub-image 0x005ce000..0x005d8b07 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r4 device tree blob) 
[    4.175094] FIT:          flat_dt sub-image 0x005d9000..0x005d95fd "fdt-mt7988a-bananapi-bpi-r4-emmc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-emmc) 
[    4.191428] FIT:          flat_dt sub-image 0x005da000..0x005da11c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc) 
[    4.207584] FIT:          flat_dt sub-image 0x005db000..0x005db5b5 "fdt-mt7988a-bananapi-bpi-r4-sd" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd) 
[    4.223569] FIT:       filesystem sub-image 0x005dc000..0x011a4fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r4 rootfs) 
[    4.234390] block mmcblk0p7: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.242115] block mmcblk0p7: mapped remaining space as /dev/fitrw
[    4.361822] mtk_soc_eth 15100000.ethernet: generated random MAC address 20:08:02:00:00:00
[    4.375020] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082580000, irq 105
[    4.384651] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082580000, irq 105
[    4.394288] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082580000, irq 105
[    4.486199] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[    4.493713] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    4.520961] mt7530-mmio 15020000.switch wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=117)
[    4.559159] mt7530-mmio 15020000.switch lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7988 PHY] (irq=118)
[    4.597514] mt7530-mmio 15020000.switch lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7988 PHY] (irq=119)
[    4.636285] mt7530-mmio 15020000.switch lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7988 PHY] (irq=120)
[    4.647241] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    4.653953] DSA: tree 0 setup
[    4.657192] clk: Disabling unused clocks
[    4.661545] PM: genpd: Disabling unused power domains
[    4.682029] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    4.689262] Freeing unused kernel memory: 448K
[    4.693739] Run /sbin/init as init process
[    4.697826]   with arguments:
[    4.700786]     /sbin/init
[    4.703483]   with environment:
[    4.706612]     HOME=/
[    4.708961]     TERM=linux
[    4.881241] init: Console is alive
[    4.884732] init: - watchdog -
[    5.184876] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.201378] usbcore: registered new interface driver usbfs
[    5.206891] usbcore: registered new interface driver hub
[    5.212250] usbcore: registered new device driver usb
[    5.217802] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.227908] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    5.235323] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    5.243238] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.248463] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.258911] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[    5.268072] xhci-mtk 11200000.usb: irq 121, io mem 0x11200000
[    5.273880] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.279097] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.286487] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.293768] hub 1-0:1.0: USB hub found
[    5.297520] hub 1-0:1.0: 1 port detected
[    5.301601] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.309837] hub 2-0:1.0: USB hub found
[    5.313608] hub 2-0:1.0: 1 port detected
[    5.320369] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.331065] init: - preinit -
[    5.547630] mtk_soc_eth 15100000.ethernet sfp-lan: renamed from eth1
[    5.555680] mtk_soc_eth 15100000.ethernet sfp-wan: renamed from eth2
[    5.573633] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[    5.581803] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[    5.591655] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[    5.600950] mt7530-mmio 15020000.switch lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[    5.720560] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    5.742988] hub 2-1:1.0: USB hub found
[    5.746895] hub 2-1:1.0: 4 ports detected
[    5.880353] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.032693] hub 1-1:1.0: USB hub found
[    6.036618] hub 1-1:1.0: 5 ports detected
[    6.760361] usb 1-1.2: new full-speed USB device number 3 using xhci-mtk
[    6.990350] usb 1-1.5: new high-speed USB device number 4 using xhci-mtk
[   10.110960] F2FS-fs (fitrw): Mounted with checkpoint version = 3999c4fd
[   10.120320] mount_root: switching to f2fs overlay
[   10.127497] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   10.140030] urandom-seed: Seeding with /etc/urandom.seed
[   10.180632] mt7530-mmio 15020000.switch lan1: Link is Down
[   10.188582] procd: - early -
[   10.191535] procd: - watchdog -
[   10.737789] procd: - watchdog -
[   10.746323] procd: - ubus -
[   10.809667] procd: - init -
[   11.053463] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.072363] pca954x 1-0070: supply vdd not found, using dummy regulator
[   11.079573] i2c i2c-1: Added multiplexed i2c bus 2
[   11.084500] i2c i2c-1: Added multiplexed i2c bus 3
[   11.089357] i2c i2c-1: Added multiplexed i2c bus 4
[   11.094220] i2c i2c-1: Added multiplexed i2c bus 5
[   11.099003] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545
[   11.107014] urngd: v1.0.2 started.
[   11.112685] crypto-safexcel 15600000.crypto: EIP197:331(7,1,8,4)-HIA:272(2,5,5),PE:151/450(alg:7fe1fc00)/240/240/450
[   11.124024] crypto-safexcel 15600000.crypto: TRC init: 8704d,48a (32r,128h)
[   11.240448] at24 2-0057: supply vcc not found, using dummy regulator
[   11.247715] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[   11.255069] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[   11.262381] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[   11.274888] rtc-pcf8563 2-0051: registered as rtc0
[   11.280885] rtc-pcf8563 2-0051: setting system clock to 2025-10-18T07:51:15 UTC (1760773875)
[   11.291205] sfp sfp1: Host maximum power 3.0W
[   11.296073] sfp sfp2: Host maximum power 3.0W
[   11.329666] PPP generic driver version 2.4.2
[   11.334541] NET: Registered PF_PPPOX protocol family
[   11.341206] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.113133] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   13.146654] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[   13.154832] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   13.156946] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[   13.172361] br-lan: port 1(lan1) entered blocking state
[   13.177599] br-lan: port 1(lan1) entered disabled state
[   13.182903] mt7530-mmio 15020000.switch lan1: entered allmulticast mode
[   13.189518] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[   13.196528] mt7530-mmio 15020000.switch lan1: entered promiscuous mode
[   13.211762] mt7530-mmio 15020000.switch lan2: configuring for phy/internal link mode
[   13.220926] br-lan: port 2(lan2) entered blocking state
[   13.226166] br-lan: port 2(lan2) entered disabled state
[   13.231455] mt7530-mmio 15020000.switch lan2: entered allmulticast mode
[   13.238276] mt7530-mmio 15020000.switch lan2: entered promiscuous mode
[   13.248555] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
[   13.257119] br-lan: port 3(lan3) entered blocking state
[   13.262404] br-lan: port 3(lan3) entered disabled state
[   13.267659] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
[   13.274518] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
[   13.283868] mtk_soc_eth 15100000.ethernet sfp-lan: configuring for inband/10gbase-r link mode
[   13.318330] br-lan: port 4(sfp-lan) entered blocking state
[   13.323914] br-lan: port 4(sfp-lan) entered disabled state
[   13.329438] mtk_soc_eth 15100000.ethernet sfp-lan: entered allmulticast mode
[   13.336954] mtk_soc_eth 15100000.ethernet sfp-lan: entered promiscuous mode
[   13.347008] mtk_soc_eth 15100000.ethernet sfp-wan: configuring for inband/10gbase-r link mode
[   13.379517] br-wan: port 1(sfp-wan) entered blocking state
[   13.385071] br-wan: port 1(sfp-wan) entered disabled state
[   13.390607] mtk_soc_eth 15100000.ethernet sfp-wan: entered allmulticast mode
[   13.397821] mtk_soc_eth 15100000.ethernet sfp-wan: entered promiscuous mode
[   13.410709] mt7530-mmio 15020000.switch wan: configuring for phy/internal link mode
[   13.419305] br-wan: port 2(wan) entered blocking state
[   13.424530] br-wan: port 2(wan) entered disabled state
[   13.429707] mt7530-mmio 15020000.switch wan: entered allmulticast mode
[   13.436443] mt7530-mmio 15020000.switch wan: entered promiscuous mode
[   16.160630] mt7530-mmio 15020000.switch lan1: Link is Up - 100Mbps/Full - flow control rx/tx
[   16.161244] br-lan: port 1(lan1) entered blocking state
[   16.174296] br-lan: port 1(lan1) entered forwarding state
[   17.225252] mt7530-mmio 15020000.switch wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   17.225867] br-wan: port 2(wan) entered blocking state
[   17.238565] br-wan: port 2(wan) entered forwarding state

Be careful with arduino. Afaik they are all 5v which will kill your rx of debug uart. You can measure tx to gnd with multimeter to check if it is 3.3v or 5v.

But we need the output of bl2 so dmesg is not enough

got u. good heads up on the arduino. give me a couple hrs and i will get u that log. the serial the board came with I’ve been having issues with on my setup. But i will get u that.

full boot log @ericwoud

F0: 102B 0000

FA: 1042 0000

FA: 1042 0000 [0200]

F9: 1041 0000

F3: 1001 0000 [0200]

F3: 1001 0000

F6: 380E 5012

F5: 0000 0000

V0: 0000 0000 [0001]

00: 0000 0000

BP: 0600 0041 [0000]

G0: 1190 0000

EC: 0000 0000 [3000]

MK: 0000 0000 [0000]

T0: 0000 013D [0101]

Jump to BL


NOTICE:  BL2: v2.13.0(release):OpenWrt v2025.07.11~78a0dfd9-1 (mt7988-sdmmc-comb)
NOTICE:  BL2: Built : 20:18:25, Oct 17 2025
NOTICE:  WDT: Cold boot
NOTICE:  WDT: disabled
NOTICE:  CPU: MT7988
NOTICE:  EMI: Using DDR unknown settings
NOTICE:  EMI: Detected DRAM size: 4096 MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  LVTS: Enable thermal HW reset
NOTICE:  Located partition 'fip' at 0x680000, size 0x400000
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.13.0(release):OpenWrt v2025.07.11~78a0dfd9-1 (mt7988-sdmmc-comb)
NOTICE:  BL31: Built : 20:18:25, Oct 17 2025


U-Boot 2025.10-OpenWrt-r0-0f724d7 (Oct 17 2025 - 20:18:25 +0000)

CPU:   MediaTek MT7988
Model: Bananapi BPI-R4
DRAM:  4 GiB
Core:  64 devices, 24 uclasses, devicetree: embed
spi-nand: spi_nand spi_nand@0: CASN page check failed
spi-nand: spi_nand spi_nand@0: Fallback to read ID
spi-nand: spi_nand spi_nand@0: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
MMC:   mmc@11230000: 0
Loading Environment from MMC... Reading from redundant MMC(0)... OK
In:    serial@11000000
Out:   serial@11000000
Err:   serial@11000000
reset button found
Loading Environment from MMC... Reading from redundant MMC(0)... OK
Net:   MediaTek MT7988 built-in switch
eth0: ethernet@15110100
e[?25le[2Je[1;1He[1;1He[2Ke[2;3H      e[0;34m( ( ( e[1;39mOpenWrte[0;34m ) ) )  e[0;36m[SD card]e[0m       e[33mU-Boot 2025.10-OpenWrt-r0-0f724d7 (Oct 17 2025 - 20:18:25 +0000)e[0me[0Ke[3;1He[2Ke[15;1He[2Ke[16;3HPress UP/DOWN to move, ENTER to select, ESC to quite[0Ke[17;1He[2Ke[4;7He[7m1. Run default boot command.e[0me[5;7H2. Boot system via TFTP.e[6;7H3. Boot production system from SD card.e[7;7H4. Boot recovery system from SD card.e[8;7H5. Load production system via TFTP then write to SD card.e[9;7H6. Load recovery system via TFTP then write to SD card.e[10;7H7. e[31mInstall bootloader, recovery and production to NAND.e[0me[11;7H8. Reboot.e[12;7H9. Reset all settings to factory defaults.e[13;7H0. Exite[15;3HHit any key to stop autoboot: 3 e[15;3HHit any key to stop autoboot: 2 e[15;3HHit any key to stop autoboot: 1 e[15;1He[2Ke[?25he[2Je[1;1HMMC read: dev # 0, block # 131072, count 256 ... 256 blocks read: OK
MMC read: dev # 0, block # 131072, count 36136 ... 36136 blocks read: OK
## Loading kernel (any) from FIT Image at 50000000 ...
   Using 'config-mt7988a-bananapi-bpi-r4' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.12.51
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x50001000
     Data Size:    6081802 Bytes = 5.8 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x46000000
     Entry Point:  0x46000000
     Hash algo:    crc32
     Hash value:   c49d4fae
     Hash algo:    sha1
     Hash value:   7e71654b7ca1b5be8bfc5216e37b9143fa0c83d6
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt (any) from FIT Image at 50000000 ...
   Using 'config-mt7988a-bananapi-bpi-r4' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x505ce000
     Data Size:    43784 Bytes = 42.8 KiB
     Architecture: AArch64
     Load Address: 0x45f00000
     Hash algo:    crc32
     Hash value:   1ffe3ef6
     Hash algo:    sha1
     Hash value:   c6091c1c4aaef501949a290679aaa423738f540f
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x505ce000 to 0x45f00000
   Loading Device Tree to 00000000fe7de000, end 00000000fe7ebfff ... OK
Working FDT set to fe7de000
## Loading fdt (any) from FIT Image at 50000000 ...
   Using 'mt7988a-bananapi-bpi-r4-sd' configuration
   Trying 'fdt-mt7988a-bananapi-bpi-r4-sd' fdt subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x505db000
     Data Size:    1462 Bytes = 1.4 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   dc3d838d
     Hash algo:    sha1
     Hash value:   47c779b5fb7acc9baf4e57810ddca89a4bef2615
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt (any) from FIT Image at 50000000 ...
Could not find configuration node
load of <NULL> failed
   Booting using the fdt blob at 0xfe7de000
Working FDT set to fe7de000
## Loading loadables (any) from FIT Image at 50000000 ...
   Trying 'rootfs-1' loadables subimage
     Description:  ARM64 OpenWrt bananapi_bpi-r4 rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x505dc000
     Data Size:    12357632 Bytes = 11.8 MiB
     Hash algo:    crc32
     Hash value:   ad55c826
     Hash algo:    sha1
     Hash value:   896c461f34afbc567b78d6c1dbcb5f074c8970a6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Uncompressing Kernel Image to 46000000
   Loading Device Tree to 00000000fe7d1000, end 00000000fe7ddd92 ... OK
Working FDT set to fe7d1000
set /chosen/rootdisk to bootrom media: rootdisk-sd (phandle 0x0000009c)

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd090]
[    0.000000] Linux version 6.12.51 (runner@runnervmzdgdc) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r0-0f724d7) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Fri Oct 17 20:18:25 2025
[    0.000000] Machine model: Banana Pi BPI-R4 (2x SFP+)
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004304ffff (320 KiB) nomap non-reusable secmon@43000000
[    0.000000] OF: reserved mem: 0x0000000047cc0000..0x0000000047dbffff (1024 KiB) nomap non-reusable wmcpu-reserved@47cc0000
[    0.000000] OF: reserved mem: 0x000000004f600000..0x000000004f63ffff (256 KiB) nomap non-reusable wo-emi@4f600000
[    0.000000] OF: reserved mem: 0x000000004f640000..0x000000004f67ffff (256 KiB) nomap non-reusable wo-emi@4f640000
[    0.000000] OF: reserved mem: 0x000000004f680000..0x000000004f6bffff (256 KiB) nomap non-reusable wo-emi@4f680000
[    0.000000] OF: reserved mem: 0x000000004f700000..0x000000004fefffff (8192 KiB) nomap non-reusable wo-data@4f700000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004304ffff]
[    0.000000]   node   0: [mem 0x0000000043050000-0x0000000047cbffff]
[    0.000000]   node   0: [mem 0x0000000047cc0000-0x0000000047dbffff]
[    0.000000]   node   0: [mem 0x0000000047dc0000-0x000000004f5fffff]
[    0.000000]   node   0: [mem 0x000000004f600000-0x000000004f6bffff]
[    0.000000]   node   0: [mem 0x000000004f6c0000-0x000000004f6fffff]
[    0.000000]   node   0: [mem 0x000000004f700000-0x000000004fefffff]
[    0.000000]   node   0: [mem 0x000000004ff00000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.5
[    0.000000] percpu: Embedded 20 pages/cpu s42520 r8192 d31208 u81920
[    0.000000] pcpu-alloc: s42520 r8192 d31208 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa7d1000-0x00000000fe7d1000] (64MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 416 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000065] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000071] pid_max: default: 32768 minimum: 301
[    0.002143] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002157] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003654] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.004112] rcu: Hierarchical SRCU implementation.
[    0.004114] rcu: 	Max phase no-delay instances is 1000.
[    0.004204] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.004373] smp: Bringing up secondary CPUs ...
[    0.004588] Detected VIPT I-cache on CPU1
[    0.004627] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.004647] CPU1: Booted secondary processor 0x0000000001 [0x411fd090]
[    0.004917] Detected VIPT I-cache on CPU2
[    0.004937] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.004948] CPU2: Booted secondary processor 0x0000000002 [0x411fd090]
[    0.005181] Detected VIPT I-cache on CPU3
[    0.005202] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.005212] CPU3: Booted secondary processor 0x0000000003 [0x411fd090]
[    0.005247] smp: Brought up 1 node, 4 CPUs
[    0.005251] SMP: Total of 4 processors activated.
[    0.005253] CPU: All CPU(s) started at EL2
[    0.005255] CPU features: detected: 32-bit EL0 Support
[    0.005258] CPU features: detected: CRC32 instructions
[    0.005285] alternatives: applying system-wide alternatives
[    0.005363] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005467] Memory: 4019728K/4194304K available (9216K kernel code, 976K rwdata, 2740K rodata, 448K init, 300K bss, 171012K reserved, 0K cma-reserved)
[    0.008381] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008392] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.008441] 29296 pages in range for non-PLT usage
[    0.008443] 520816 pages in range for PLT usage
[    0.009545] pinctrl core: initialized pinctrl subsystem
[    0.010454] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010754] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.010857] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010952] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.011231] thermal_sys: Registered thermal governor 'fair_share'
[    0.011234] thermal_sys: Registered thermal governor 'bang_bang'
[    0.011235] thermal_sys: Registered thermal governor 'step_wise'
[    0.011237] thermal_sys: Registered thermal governor 'user_space'
[    0.011279] ASID allocator initialised with 65536 entries
[    0.011786] pstore: Using crash dump compression: deflate
[    0.011793] printk: legacy console [ramoops-1] enabled
[    0.012049] pstore: Registered ramoops as persistent store backend
[    0.012053] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.013929] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.017286] /soc/pcie@11280000: Fixed dependency cycle(s) with /soc/pcie@11280000/interrupt-controller
[    0.017389] /soc/pcie@11290000: Fixed dependency cycle(s) with /soc/pcie@11290000/interrupt-controller
[    0.017494] /soc/pcie@11300000: Fixed dependency cycle(s) with /soc/pcie@11300000/interrupt-controller
[    0.017590] /soc/pcie@11310000: Fixed dependency cycle(s) with /soc/pcie@11310000/interrupt-controller
[    0.027529] cryptd: max_cpu_qlen set to 1000
[    0.029229] SCSI subsystem initialized
[    0.029316] libata version 3.00 loaded.
[    0.030341] clocksource: Switched to clocksource arch_sys_counter
[    0.032028] NET: Registered PF_INET protocol family
[    0.032164] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.034456] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.034480] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.034490] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.034600] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.035059] TCP: Hash tables configured (established 32768 bind 32768)
[    0.035368] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.035484] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.035534] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.035733] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.035772] PCI: CLS 0 bytes, default 64
[    0.036631] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.040430] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.040437] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.072343] mtk-xsphy soc:xs-phy@11e10000: failed to get ref_clk(id-1)
[    0.072923] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.072939] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.072952] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.072966] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.073070] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.073082] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.073093] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.073104] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.073123] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.073132] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.073196] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.073206] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.073216] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.073226] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.073244] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.073252] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.073328] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.073337] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.073348] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.073358] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.073375] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.073383] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    0.077679] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.078403] printk: legacy console [ttyS0] disabled
[    0.098660] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 99, base_baud = 2500000) is a ST16650V2
[    0.098697] printk: legacy console [ttyS0] enabled
[    1.139626] random: crng init done
[    1.144781] loop: module loaded
[    1.149302] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.154639] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.162948] 2 fixed-partitions partitions found on MTD device spi0.0
[    1.169307] OF: Bad cell count for /soc/spi@11007000/flash@0/partitions
[    1.175923] OF: Bad cell count for /soc/spi@11007000/flash@0/partitions
[    1.182659] Creating 2 MTD partitions on "spi0.0":
[    1.187441] 0x000000000000-0x000000200000 : "bl2"
[    1.193485] 0x000000200000-0x000008000000 : "ubi"
[    1.268046] ubi0: default fastmap pool size: 50
[    1.272579] ubi0: default fastmap WL pool size: 25
[    1.277360] ubi0: attaching mtd1
[    1.754478] ubi0: scanning is finished
[    1.762800] ubi0: attached mtd1 (name "ubi", size 126 MiB)
[    1.768282] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.775151] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.781930] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.788878] ubi0: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
[    1.794961] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.802172] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 660246019
[    1.811206] ubi0: available PEBs: 0, total reserved PEBs: 1008, PEBs reserved for bad PEB handling: 20
[    1.820507] ubi0: background thread "ubi_bgt0d" started, PID 210
[    1.941818] i2c_dev: i2c /dev entries driver
[    1.946518] /soc/i2c@11003000/rt5190a@64: Fixed dependency cycle(s) with /soc/i2c@11003000/rt5190a@64/regulators/buck1
[    1.958270] mtk-lvts-thermal 1100a000.lvts: golden temp=60
[    1.965197] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.973677] mtk-msdc 11230000.mmc: Got CD GPIO
[    1.973824] NET: Registered PF_INET6 protocol family
[    1.983541] Segment Routing with IPv6
[    1.987212] In-situ OAM (IOAM) with IPv6
[    1.991180] NET: Registered PF_PACKET protocol family
[    1.996287] 8021q: 802.1Q VLAN Support v1.8
[    2.004527] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=52 arg=00000C00; host->error=0x00000002
[    2.014130] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=52 arg=80000C08; host->error=0x00000002
[    2.031163] phy phy-soc:[email protected]: type_sw - reg 0x194, index 0
[    2.038274] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.047584] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.054946] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.064034] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.073101] mtk-msdc 11230000.mmc: msdc_track_cmd_data: cmd=5 arg=00000000; host->error=0x00000002
[    2.082134] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.088407] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.096850] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.127898] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.137932] mmc0: new high speed SDHC card at address 0001
[    2.143959] mmcblk0: mmc0:0001 00000 7.38 GiB
[    2.157744] Alternate GPT is invalid, using primary GPT.
[    2.163122]  mmcblk0: p1 p2 p3 p4 p5 p6 p7
[    2.420350] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    2.429147] mtk-pcie-gen3 11280000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    2.438162] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    2.445477] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    2.451747] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    2.460178] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    2.699241] mtk-pcie-gen3 11290000.pcie: set IO trans window[0]: cpu_addr = 0x28000000, pci_addr = 0x28000000, size = 0x200000
[    2.710625] mtk-pcie-gen3 11290000.pcie: set MEM trans window[1]: cpu_addr = 0x28200000, pci_addr = 0x28200000, size = 0x200000
[    2.722091] mtk-pcie-gen3 11290000.pcie: set MEM trans window[2]: cpu_addr = 0x28400000, pci_addr = 0x28400000, size = 0x400000
[    2.733556] mtk-pcie-gen3 11290000.pcie: set MEM trans window[3]: cpu_addr = 0x28800000, pci_addr = 0x28800000, size = 0x800000
[    2.745020] mtk-pcie-gen3 11290000.pcie: set MEM trans window[4]: cpu_addr = 0x29000000, pci_addr = 0x29000000, size = 0x1000000
[    2.756570] mtk-pcie-gen3 11290000.pcie: set MEM trans window[5]: cpu_addr = 0x2a000000, pci_addr = 0x2a000000, size = 0x2000000
[    2.768120] mtk-pcie-gen3 11290000.pcie: set MEM trans window[6]: cpu_addr = 0x2c000000, pci_addr = 0x2c000000, size = 0x4000000
[    2.779920] mtk-pcie-gen3 11290000.pcie: PCI host bridge to bus 0002:00
[    2.786533] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.792014] pci_bus 0002:00: root bus resource [io  0x200000-0x3fffff] (bus address [0x28000000-0x281fffff])
[    2.801831] pci_bus 0002:00: root bus resource [mem 0x28200000-0x2fffffff]
[    2.808694] pci_bus 0002:00: scanning bus
[    2.812723] pci 0002:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port
[    2.820033] pci 0002:00:00.0: BAR 0 [mem 0x00000000-0x00007fff 64bit]
[    2.826471] pci 0002:00:00.0: PCI bridge to [bus 00]
[    2.831430] pci 0002:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.837514] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    2.844299] pci 0002:00:00.0:   bridge window [mem 0x00000000-0x000fffff 64bit pref]
[    2.852085] pci 0002:00:00.0: PME# supported from D0 D3hot D3cold
[    2.858169] pci 0002:00:00.0: PME# disabled
[    2.863438] pci_bus 0002:00: fixups for bus
[    2.867613] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.874306] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.882304] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.889041] pci_bus 0002:01: scanning bus
[    2.893069] pci 0002:01:00.0: [144d:a802] type 00 class 0x010802 PCIe Endpoint
[    2.900300] pci 0002:01:00.0: BAR 0 [mem 0x00000000-0x00003fff 64bit]
[    2.906739] pci 0002:01:00.0: BAR 2 [io  0x0000-0x00ff]
[    2.912117] pci 0002:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    2.940375] pci_bus 0002:01: fixups for bus
[    2.944548] pci_bus 0002:01: bus scan returning with max=01
[    2.950110] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    2.956721] pci_bus 0002:00: bus scan returning with max=01
[    2.962299] pci 0002:00:00.0: bridge window [mem 0x28200000-0x282fffff]: assigned
[    2.969771] pci 0002:00:00.0: BAR 0 [mem 0x28300000-0x28307fff 64bit]: assigned
[    2.977077] pci 0002:00:00.0: bridge window [io  0x200000-0x200fff]: assigned
[    2.984203] pci 0002:01:00.0: BAR 0 [mem 0x28200000-0x28203fff 64bit]: assigned
[    2.991511] pci 0002:01:00.0: BAR 2 [io  0x200000-0x2000ff]: assigned
[    2.997942] pci 0002:00:00.0: PCI bridge to [bus 01]
[    3.002899] pci 0002:00:00.0:   bridge window [io  0x200000-0x200fff]
[    3.009329] pci 0002:00:00.0:   bridge window [mem 0x28200000-0x282fffff]
[    3.016112] pci_bus 0002:00: resource 4 [io  0x200000-0x3fffff]
[    3.022022] pci_bus 0002:00: resource 5 [mem 0x28200000-0x2fffffff]
[    3.028277] pci_bus 0002:01: resource 0 [io  0x200000-0x200fff]
[    3.034191] pci_bus 0002:01: resource 1 [mem 0x28200000-0x282fffff]
[    3.040457] pci 0002:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    3.048895] pci 0002:01:00.0: Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[    3.057406] pcieport 0002:00:00.0: assign IRQ: got 114
[    3.062546] pcieport 0002:00:00.0: enabling device (0000 -> 0003)
[    3.068636] pcieport 0002:00:00.0: enabling bus mastering
[    3.074374] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.082812] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1
[    3.091240] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2
[    3.099665] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3
[    3.108092] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4
[    3.116519] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5
[    3.124945] mtk-pcie-gen3 11290000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11290c00 data 6
[    3.133372] mtk-pcie-gen3 11290000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11290c00 data 7
[    3.141798] mtk-pcie-gen3 11290000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11290c00 data 8
[    3.150222] mtk-pcie-gen3 11290000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11290c00 data 9
[    3.158648] mtk-pcie-gen3 11290000.pcie: msi#0xa address_hi 0x0 address_lo 0x11290c00 data 10
[    3.167162] mtk-pcie-gen3 11290000.pcie: msi#0xb address_hi 0x0 address_lo 0x11290c00 data 11
[    3.175675] mtk-pcie-gen3 11290000.pcie: msi#0xc address_hi 0x0 address_lo 0x11290c00 data 12
[    3.184191] mtk-pcie-gen3 11290000.pcie: msi#0xd address_hi 0x0 address_lo 0x11290c00 data 13
[    3.192710] mtk-pcie-gen3 11290000.pcie: msi#0xe address_hi 0x0 address_lo 0x11290c00 data 14
[    3.201223] mtk-pcie-gen3 11290000.pcie: msi#0xf address_hi 0x0 address_lo 0x11290c00 data 15
[    3.209734] mtk-pcie-gen3 11290000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11290c00 data 16
[    3.218334] mtk-pcie-gen3 11290000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11290c00 data 17
[    3.226935] mtk-pcie-gen3 11290000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11290c00 data 18
[    3.235535] mtk-pcie-gen3 11290000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11290c00 data 19
[    3.244136] mtk-pcie-gen3 11290000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11290c00 data 20
[    3.252736] mtk-pcie-gen3 11290000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11290c00 data 21
[    3.261337] mtk-pcie-gen3 11290000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11290c00 data 22
[    3.269934] mtk-pcie-gen3 11290000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11290c00 data 23
[    3.278535] mtk-pcie-gen3 11290000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11290c00 data 24
[    3.287135] mtk-pcie-gen3 11290000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11290c00 data 25
[    3.295735] mtk-pcie-gen3 11290000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11290c00 data 26
[    3.304338] mtk-pcie-gen3 11290000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11290c00 data 27
[    3.312937] mtk-pcie-gen3 11290000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11290c00 data 28
[    3.321537] mtk-pcie-gen3 11290000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11290c00 data 29
[    3.330135] mtk-pcie-gen3 11290000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11290c00 data 30
[    3.338734] mtk-pcie-gen3 11290000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11290c00 data 31
[    3.347734] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.356235] pcieport 0002:00:00.0: PME: Signaling with IRQ 115
[    3.362178] pcieport 0002:00:00.0: AER: enabled with IRQ 115
[    3.367877] pcieport 0002:00:00.0: save config 0x00: 0x798814c3
[    3.373798] pcieport 0002:00:00.0: save config 0x04: 0x00100407
[    3.379707] pcieport 0002:00:00.0: save config 0x08: 0x06040001
[    3.385619] pcieport 0002:00:00.0: save config 0x0c: 0x00010000
[    3.391530] pcieport 0002:00:00.0: save config 0x10: 0x28300004
[    3.397438] pcieport 0002:00:00.0: save config 0x14: 0x00000000
[    3.403349] pcieport 0002:00:00.0: save config 0x18: 0x00010100
[    3.409257] pcieport 0002:00:00.0: save config 0x1c: 0x00000101
[    3.415168] pcieport 0002:00:00.0: save config 0x20: 0x28202820
[    3.421080] pcieport 0002:00:00.0: save config 0x24: 0x0001fff1
[    3.426989] pcieport 0002:00:00.0: save config 0x28: 0x00000000
[    3.432899] pcieport 0002:00:00.0: save config 0x2c: 0x00000000
[    3.438806] pcieport 0002:00:00.0: save config 0x30: 0x28002800
[    3.444716] pcieport 0002:00:00.0: save config 0x34: 0x00000080
[    3.450627] pcieport 0002:00:00.0: save config 0x38: 0x00000000
[    3.456535] pcieport 0002:00:00.0: save config 0x3c: 0x00020172
[    3.462705] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.470009] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.476277] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.484711] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    3.810361] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.819144] mtk-pcie-gen3 11300000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    3.828054] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    3.835365] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    3.841630] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    3.850060] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.170348] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.179127] mtk-pcie-gen3 11310000.pcie: probe with driver mtk-pcie-gen3 failed with error -110
[    4.189427] FIT: Detected U-Boot 2025.10-OpenWrt-r0-0f724d7
[    4.194998] FIT: Selected configuration: "config-mt7988a-bananapi-bpi-r4" (OpenWrt bananapi_bpi-r4)
[    4.204042] FIT:           kernel sub-image 0x00001000..0x005cdd09 "kernel-1" (ARM64 OpenWrt Linux-6.12.51) 
[    4.213868] FIT:          flat_dt sub-image 0x005ce000..0x005d8b07 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r4 device tree blob) 
[    4.225080] FIT:          flat_dt sub-image 0x005d9000..0x005d95fd "fdt-mt7988a-bananapi-bpi-r4-emmc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-emmc) 
[    4.241413] FIT:          flat_dt sub-image 0x005da000..0x005da11c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc) 
[    4.257570] FIT:          flat_dt sub-image 0x005db000..0x005db5b5 "fdt-mt7988a-bananapi-bpi-r4-sd" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd) 
[    4.273555] FIT:       filesystem sub-image 0x005dc000..0x011a4fff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r4 rootfs) 
[    4.284364] block mmcblk0p7: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.292085] block mmcblk0p7: mapped remaining space as /dev/fitrw
[    4.411786] mtk_soc_eth 15100000.ethernet: generated random MAC address 20:08:02:00:00:00
[    4.424975] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082500000, irq 105
[    4.434616] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082500000, irq 105
[    4.444245] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082500000, irq 105
[    4.542913] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[    4.550423] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    4.577543] mt7530-mmio 15020000.switch wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=117)
[    4.616268] mt7530-mmio 15020000.switch lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7988 PHY] (irq=118)
[    4.655067] mt7530-mmio 15020000.switch lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7988 PHY] (irq=119)
[    4.693639] mt7530-mmio 15020000.switch lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7988 PHY] (irq=120)
[    4.704595] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    4.711305] DSA: tree 0 setup
[    4.714539] clk: Disabling unused clocks
[    4.718880] PM: genpd: Disabling unused power domains
[    4.739418] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    4.746657] Freeing unused kernel memory: 448K
[    4.751132] Run /sbin/init as init process
[    4.755218]   with arguments:
[    4.758174]     /sbin/init
[    4.760876]   with environment:
[    4.764006]     HOME=/
[    4.766355]     TERM=linux
[    4.938538] init: Console is alive
[    4.942061] init: - watchdog -
[    5.241989] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.258443] usbcore: registered new interface driver usbfs
[    5.263980] usbcore: registered new interface driver hub
[    5.269310] usbcore: registered new device driver usb
[    5.274895] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.285015] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    5.292439] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    5.300356] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.305584] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.316037] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[    5.325195] xhci-mtk 11200000.usb: irq 121, io mem 0x11200000
[    5.331014] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.336231] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.343620] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.350902] hub 1-0:1.0: USB hub found
[    5.354654] hub 1-0:1.0: 1 port detected
[    5.358724] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.366965] hub 2-0:1.0: USB hub found
[    5.370722] hub 2-0:1.0: 1 port detected
[    5.377425] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.388407] init: - preinit -
[    5.605927] mtk_soc_eth 15100000.ethernet sfp-lan: renamed from eth1
[    5.613972] mtk_soc_eth 15100000.ethernet sfp-wan: renamed from eth2
[    5.632115] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[    5.640279] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[    5.650066] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
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
[    5.800381] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    5.953031] hub 1-1:1.0: USB hub found
[    5.956988] hub 1-1:1.0: 5 ports detected
[    6.082744] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    6.103003] hub 2-1:1.0: USB hub found
[    6.106985] hub 2-1:1.0: 4 ports detected
[    6.680343] usb 1-1.2: new full-speed USB device number 3 using xhci-mtk
[    6.910343] usb 1-1.5: new high-speed USB device number 4 using xhci-mtk
[   10.200364] F2FS-fs (fitrw): Mounted with checkpoint version = 3999c50a
[   10.209701] mount_root: switching to f2fs overlay
[   10.217385] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[   10.229900] urandom-seed: Seeding with /etc/urandom.seed
[   10.273815] procd: - early -
[   10.276752] procd: - watchdog -
[   10.822768] procd: - watchdog -
[   10.831310] procd: - ubus -
[   10.899608] procd: - init -
Please press Enter to activate this console.
[   11.142373] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.161412] pca954x 1-0070: supply vdd not found, using dummy regulator
[   11.168620] i2c i2c-1: Added multiplexed i2c bus 2
[   11.173544] i2c i2c-1: Added multiplexed i2c bus 3
[   11.178386] i2c i2c-1: Added multiplexed i2c bus 4
[   11.183258] i2c i2c-1: Added multiplexed i2c bus 5
[   11.188042] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545
[   11.198887] crypto-safexcel 15600000.crypto: EIP197:331(7,1,8,4)-HIA:272(2,5,5),PE:151/450(alg:7fe1fc00)/240/240/450
[   11.199653] urngd: v1.0.2 started.
[   11.210498] crypto-safexcel 15600000.crypto: TRC init: 8704d,48a (32r,128h)
[   11.338806] at24 2-0057: supply vcc not found, using dummy regulator
[   11.346094] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[   11.353216] Loading modules backported from Linux version v6.16-0-g038d61fd6422
[   11.360535] Backport generated by backports.git v6.1.145-1-47-g6194bf852a3e
[   11.372813] rtc-pcf8563 2-0051: registered as rtc0
[   11.378815] rtc-pcf8563 2-0051: setting system clock to 2025-10-18T08:39:56 UTC (1760776796)
[   11.389222] sfp sfp1: Host maximum power 3.0W
[   11.394170] sfp sfp2: Host maximum power 3.0W
[   11.427882] PPP generic driver version 2.4.2
[   11.432722] NET: Registered PF_PPPOX protocol family
[   11.439337] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.219655] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   13.253487] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[   13.261654] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   13.263835] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[   13.279126] br-lan: port 1(lan1) entered blocking state
[   13.284397] br-lan: port 1(lan1) entered disabled state
[   13.289651] mt7530-mmio 15020000.switch lan1: entered allmulticast mode
[   13.296317] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[   13.303370] mt7530-mmio 15020000.switch lan1: entered promiscuous mode
[   13.318785] mt7530-mmio 15020000.switch lan2: configuring for phy/internal link mode
[   13.327250] br-lan: port 2(lan2) entered blocking state
[   13.332534] br-lan: port 2(lan2) entered disabled state
[   13.337781] mt7530-mmio 15020000.switch lan2: entered allmulticast mode
[   13.344683] mt7530-mmio 15020000.switch lan2: entered promiscuous mode
[   13.355032] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
[   13.364456] br-lan: port 3(lan3) entered blocking state
[   13.369699] br-lan: port 3(lan3) entered disabled state
[   13.375024] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
[   13.382052] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
[   13.391255] mtk_soc_eth 15100000.ethernet sfp-lan: configuring for inband/10gbase-r link mode
[   13.424395] br-lan: port 4(sfp-lan) entered blocking state
[   13.429897] br-lan: port 4(sfp-lan) entered disabled state
[   13.435461] mtk_soc_eth 15100000.ethernet sfp-lan: entered allmulticast mode
[   13.442777] mtk_soc_eth 15100000.ethernet sfp-lan: entered promiscuous mode
[   13.452756] mtk_soc_eth 15100000.ethernet sfp-wan: configuring for inband/10gbase-r link mode
[   13.485321] br-wan: port 1(sfp-wan) entered blocking state
[   13.490861] br-wan: port 1(sfp-wan) entered disabled state
[   13.496384] mtk_soc_eth 15100000.ethernet sfp-wan: entered allmulticast mode
[   13.504066] mtk_soc_eth 15100000.ethernet sfp-wan: entered promiscuous mode
[   13.516485] mt7530-mmio 15020000.switch wan: configuring for phy/internal link mode
[   13.524938] br-wan: port 2(wan) entered blocking state
[   13.530092] br-wan: port 2(wan) entered disabled state
[   13.535286] mt7530-mmio 15020000.switch wan: entered allmulticast mode
[   13.542007] mt7530-mmio 15020000.switch wan: entered promiscuous mode
[   17.304888] mt7530-mmio 15020000.switch wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   17.305503] br-wan: port 2(wan) entered blocking state
[   17.318207] br-wan: port 2(wan) entered forwarding state

Missing:

NOTICE: EMI: DDR4 4BG mode

From bl2 output, so you are using the bl2 for the 4gb board.

It is the default bl2 from openwrt,not mine…you have to flash bl2 to partition #1 of the sdcard.

when i write your bl2 and fip to card I can no longer boot??? @ericwoud

(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sudo fdisk -l /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
The backup GPT table is not on the end of the device.
Disk /dev/sdb: 7.38 GiB, 7929331712 bytes, 15486976 sectors
Disk model: Micro SD/M2     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5452574F-2211-4433-5566-778899AABB00

Device      Start     End Sectors  Size Type
/dev/sdb1      34    8191    8158    4M Linux filesystem
/dev/sdb2    8192    9215    1024  512K Linux filesystem
/dev/sdb3    9216   13311    4096    2M Linux filesystem
/dev/sdb4   13312   21503    8192    4M EFI System
/dev/sdb5   24576   90111   65536   32M EFI System
/dev/sdb6   90112  131071   40960   20M EFI System
/dev/sdb7  131072 1179647 1048576  512M unknown
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sudo dd if=bpi-r4_sdmmc_8GB_bl2.img of=/dev/sdb1 status=progress

488+1 records in
488+1 records out
250190 bytes (250 kB, 244 KiB) copied, 0.0827971 s, 3.0 MB/s
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sha256sum bpi-r4_sdmmc_8GB_bl2.img
e3a1f08c191969e307a00012e2638d338a7f932c7b7ba3cc561c1b0d50e08706  bpi-r4_sdmmc_8GB_bl2.img
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sudo dd if=/dev/sdb1 bs=1 count=$(stat -c%s bpi-r4_sdmmc_8GB_bl2.img) | sha256sum

250190+0 records in
250190+0 records out
250190 bytes (250 kB, 244 KiB) copied, 0.170731 s, 1.5 MB/s
e3a1f08c191969e307a00012e2638d338a7f932c7b7ba3cc561c1b0d50e08706  -
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sudo dd if=bpi-r4_sdmmc_8GB_fip.bin of=/dev/sdb4 status=progress

723+1 records in
723+1 records out
370453 bytes (370 kB, 362 KiB) copied, 0.0769057 s, 4.8 MB/s
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sha256sum bpi-r4_sdmmc_8GB_fip.bin
ab57e99d14e64dbd9a5446671e312a83d1b391acf2010cf7bff535ee6c877d8e  bpi-r4_sdmmc_8GB_fip.bin
(base) λ ~/git/bpir4/openwrt/ bpi-r4-8gb sudo dd if=/dev/sdb4 bs=1 count=$(stat -c%s bpi-r4_sdmmc_8GB_fip.bin) | sha256sum
370453+0 records in
370453+0 records out
370453 bytes (370 kB, 362 KiB) copied, 0.280015 s, 1.3 MB/s
ab57e99d14e64dbd9a5446671e312a83d1b391acf2010cf7bff535ee6c877d8e  -

what do u think??

I think, use archlinuxarm instead of openwrt :wink:

I do not use openwrt, but it should only be necessary to change bl2.

How does the bootlog looks like? Do not replace fip when using openwrt…only bl2! Openwrt uses different uboot to load their things

is there a way to build openwrt that has the 8gb built in? I build my openwrt builds from their git and I dont want to have to add an extra bl2?

To be clear I am a novice. When i build openwrt from the openwrt git it automatically gets the 4gb ram. What would I need to change/add to get it to build the 8gb.

you could try modify package/boot/arm-trusted-firmware-mediatek/Makefile to pass DDR4_4BG_MODE to ATF compile process and then tell openwrt build system to use the right file in target/linux/mediatek/image/filogic.mk .

had not yet tested it, but compile works now after full day working on it…

my current state:

if anyone wants to try it out here are my openwrt image binaries for 8G variants:

https://drive.google.com/drive/folders/12u0af8eUu-ATqse4-Qg5cTYfe2XXtwQu?usp=drive_link

I cherry picked the 4 commits and got it compile but im still only sitting at 4gb of memory.

The compile finished and I get an output that upgrades my build but I dont see the full 8gb.

You’ve selected the 8gb board?

tested my image created on sunday on my 8GB phy board (poe in openwrt)

NOTICE:  BL2: v2.10.0	(release):OpenWrt v2024.01.17~bacca82a-3 (mt7988-sdmmc-comb-8g)
NOTICE:  BL2: Built : 14:46:56, Oct 19 2025
NOTICE:  WDT: [40000000] Software reset (reboot)
NOTICE:  CPU: MT7988
NOTICE:  EMI: DDR4 4BG mode
NOTICE:  EMI: Using DDR unknown settings
NOTICE:  EMI: Detected DRAM size: 8192 MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.10.0	(release):OpenWrt v2024.01.17~bacca82a-3 (mt7988-sdmmc-comb-8g)
NOTICE:  BL31: Built : 14:46:56, Oct 19 2025


U-Boot 2024.10-OpenWrt-r28952-2174e3a54b53 (Oct 19 2025 - 15:34:01 +0000)

CPU:   MediaTek MT7988
Model: Bananapi BPI-R4
DRAM:  8 GiB

so i guess you have not selected one of the 2 new 8GB boards in menuconfig

I’m not sure it is the best way to add support for 8g as i’m new to openwrt build system and i do not mainly use openwrt. Just want to stop the discussion about 8gb support :stuck_out_tongue:

I selected the 8gb non poe version and after I didnt get 8gb after flash I did a make PROFILE=“bananapi_bpi-r4-8g” DDR4_4BG_MODE=1 -j21 and an additional make PROFILE=“bananapi_bpi-r4-8g” as well as a normal make each time i had is selected. this was my output dir:

config.buildinfo

feeds.buildinfo

mt7981-ram-ddr3-bl2.bin

mt7981-ram-ddr4-bl2.bin

mt7986-ram-ddr3-bl2.bin

mt7986-ram-ddr4-bl2.bin

mt7988-ram-comb-bl2.bin

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-emmc-bl31-uboot.fip

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-emmc-preloader.bin

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-initramfs-recovery.itb

openwrt-mediatek-filogic-bananapi_bpi-r4-8g.manifest

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-sdcard.img.gz

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-snand-bl31-uboot.fip

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-snand-preloader.bin

openwrt-mediatek-filogic-bananapi_bpi-r4-8g-squashfs-sysupgrade.itb

packages

profiles.json

sha256sums

version.buildinfo

config.buildinfo has this inside: CONFIG_TARGET_mediatek_filogic_DEVICE_bananapi_bpi-r4-8g=y

I am very new to all of this also. Do I have to do anything more than just upgrade my image. From what i’ve been reading the openwrt-mediatek-filogic-bananapi_bpi-r4-8g-squashfs-sysupgrade.itb should be all I have to complete. But Im not sure.