[BPI-R2 Pro] Kernel loads but fails to find SD card

Rockwell RK3568 with MT7531, BPI R2 Pro board v1.1. SD card is Samsung EVO Plus 32GB UHS-I U1 (https://www.amazon.ca/dp/B074KWJNW8)

I’m new to the R2 Pro after my R2 died, and I’m really struggling to get it to boot off the SD card while waiting for a USB male-to-male cable I ordered to come in (though I’d rather use SD if I can). I’ve tried various means of building the SD card, including using the Windows tool and images provided in the Getting Started wiki, building frank-w’s u-boot (2023-04-bpi-r2p branch) and BPI-Router-Image (6.1-main branch), and using his r2pro-ubuntu2204.tar.gz image from his Google Drive (https://drive.google.com/drive/folders/1pnTxSquZL-7n0xx4Bx1xJl7LqEKfa71Y).

U-Boot is able to load the kernel off the boot partition, but once the kernel tries to find the SD card, it fails. When booting frank-w’s r2pro-ubuntu2204.tar.gz image and holding down the MASKROOM button, I get the following output on the debug UART:

DDR Version V1.11 20211103
In
ddrconfig:0
LP4 MR14:0x4d
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 385ps, dqs1: 313ps, dqs2: 337ps, dqs3: 241ps,

change to: 324MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 528MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x78

change to: 780MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x5d

change to: 1560MHz(final freq)
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:29%
dram drv:40,odt:80
vref_ca:00000068
clk skew:0x12
cs 0:
the read training result:
DQS0:0x36, DQS1:0x35, DQS2:0x37, DQS3:0x33,
min  : 0xf 0x10 0x13  0xe  0x2  0x5  0x9  0x3 , 0xe  0xa  0x5  0x2  0xe  0xb  0xc  0x9 ,
      0x13 0x13  0xe  0xc  0x5  0x2  0x2  0x5 , 0xf  0xb  0xc  0x3 0x12 0x11 0x11 0x13 ,
mid  :0x2b 0x2b 0x2d 0x29 0x1e 0x21 0x24 0x1e ,0x27 0x26 0x1e 0x1d 0x29 0x26 0x27 0x24 ,
      0x2e 0x2d 0x27 0x25 0x1f 0x1d 0x1d 0x20 ,0x28 0x27 0x24 0x1f 0x2d 0x2c 0x29 0x2e ,
max  :0x47 0x46 0x47 0x44 0x3a 0x3e 0x3f 0x39 ,0x40 0x42 0x38 0x39 0x44 0x42 0x42 0x3f ,
      0x49 0x48 0x41 0x3e 0x3a 0x39 0x39 0x3b ,0x42 0x43 0x3c 0x3b 0x48 0x47 0x42 0x49 ,
range:0x38 0x36 0x34 0x36 0x38 0x39 0x36 0x36 ,0x32 0x38 0x33 0x37 0x36 0x37 0x36 0x36 ,
      0x36 0x35 0x33 0x32 0x35 0x37 0x37 0x36 ,0x33 0x38 0x30 0x38 0x36 0x36 0x31 0x36 ,
the write training result:
DQS0:0x5e, DQS1:0x50, DQS2:0x55, DQS3:0x42,
min  :0xa6 0xaa 0xab 0xa8 0x9c 0x9e 0xa1 0x9f 0x9e ,0x96 0x97 0x8f 0x90 0x9a 0x97 0x98 0x97 0x93 ,
      0x9e 0x9f 0x9a 0x98 0x91 0x8f 0x91 0x94 0x94 ,0x8c 0x8d 0x89 0x83 0x92 0x93 0x8d 0x92 0x87 ,
mid  :0xc2 0xc4 0xc6 0xc2 0xb4 0xb8 0xbb 0xb9 0xb8 ,0xb1 0xb0 0xa8 0xa8 0xb3 0xb0 0xb1 0xb0 0xac ,
      0xbb 0xbc 0xb5 0xb3 0xac 0xa9 0xab 0xaf 0xaf ,0xa7 0xa5 0xa2 0x9c 0xab 0xac 0xa7 0xac 0xa0 ,
max  :0xde 0xdf 0xe2 0xdd 0xcd 0xd2 0xd5 0xd3 0xd3 ,0xcc 0xca 0xc2 0xc0 0xcd 0xc9 0xca 0xc9 0xc5 ,
      0xd9 0xd9 0xd1 0xcf 0xc7 0xc4 0xc6 0xca 0xcb ,0xc2 0xbe 0xbb 0xb6 0xc4 0xc6 0xc2 0xc7 0xb9 ,
range:0x38 0x35 0x37 0x35 0x31 0x34 0x34 0x34 0x35 ,0x36 0x33 0x33 0x30 0x33 0x32 0x32 0x32 0x32 ,
      0x3b 0x3a 0x37 0x37 0x36 0x35 0x35 0x36 0x37 ,0x36 0x31 0x32 0x33 0x32 0x33 0x35 0x35 0x32 ,
CA Training result:
cs:0 min  :0x40 0x40 0x36 0x34 0x34 0x32 0x39 ,0x42 0x3c 0x37 0x36 0x36 0x32 0x3d ,
cs:0 mid  :0x7f 0x7e 0x74 0x6f 0x73 0x6e 0x65 ,0x7f 0x7b 0x74 0x71 0x72 0x6f 0x67 ,
cs:0 max  :0xbe 0xbd 0xb2 0xab 0xb2 0xaa 0x91 ,0xbc 0xbb 0xb2 0xac 0xaf 0xac 0x92 ,
cs:0 range:0x7e 0x7d 0x7c 0x77 0x7e 0x78 0x58 ,0x7a 0x7f 0x7b 0x76 0x79 0x7a 0x55 ,
out
rockchip_sdram_size fdc20208 1000e2c1
rank 1 cs0_col 10 bk 3 cs0_row 16 bw 2 row_3_4 0
SDRAM base=0, size=80000000

U-Boot SPL 2022.04-bpi (May 24 2022 - 13:02:35 +0200)
Trying to boot from MMC1
INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-135-gcda1658bc-dirty:xsf
NOTICE:  BL31: Built : 14:19:26, Jun  1 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1560MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2022.04-rc5+ (May 22 2022 - 09:29:19 +0200)

Model: Rockchip RK3568 EVB1 DDR4 V10 Board
DRAM:  rockchip_sdram_size fdc20208 1000e2c1
rank 1 cs0_col 10 bk 3 cs0_row 16 bw 2 row_3_4 0
SDRAM base=0, size=80000000
2 GiB
Core:  155 devices, 14 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Rockchip RK3568 EVB1 DDR4 V10 Board
Hit any key to stop autoboot:  0
Interface:  mmc
  Device 1: Vendor: Man 00001b Snr 2553a301 Rev: 1.3 Prod: EB1QT0
            Type: Removable Hard Disk
            Capacity: 30528.0 MB = 29.8 GB (62521344 x 512)
Filesystem: FAT16 "BPI-BOOT   "
Boot from SD
file not found

  *** U-Boot Boot Menu ***

     1. Run extlinux.
     U-Boot console


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      linux
Retrieving file: /extlinux/Image.gz
append: earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 root=/dev/mmcblk0p3 rootwait rw
Retrieving file: /extlinux/r2pro.dtb
   Uncompressing Kernel Image
Moving Image from 0x2080000 to 0x2200000, end=3dd0000
## Flattened Device Tree blob at 0a100000
   Booting using the fdt blob at 0xa100000
   Loading Device Tree to 000000007df2c000, end 000000007df3cf77 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 5.18.0-bpi-r2pro-main (frank@frank-G5-U20) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #2 SMP PREEMPT Tue May 24 15:04:25 CEST 2022
[    0.000000] Machine model: Bananapi-R2 Pro (RK3568) DDR4 Board
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000fe660000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fba5a40-0x7fba7fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 32 MiB at 0x0000000079c00000
[    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.2
[    0.000000] percpu: Embedded 28 pages/cpu s75048 r8192 d31448 u114688
[    0.000000] pcpu-alloc: s75048 r8192 d31448 u114688 alloc=28*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: Virtualization Host Extensions
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: patching kernel code
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 515592
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0xfe660000 console=ttyS2,1500000n8 root=/dev/mmcblk0p3 rootwait rw
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1993048K/2095104K available (14464K kernel code, 2736K rwdata, 5420K rodata, 5056K init, 581K bss, 69288K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 49327 entries in 193 pages
[    0.000000] ftrace: allocated 193 pages with 3 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_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: 320 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: MBI range [296:319]
[    0.000000] GICv3: Using MBI frame 0x00000000fd410000
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    0.000000] /interrupt-controller@fd400000/interrupt-controller@fd440000: no regs?
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] random: get_random_bytes called from start_kernel+0x77c/0x96c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001644] Console: colour dummy device 80x25
[    0.002210] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.003229] pid_max: default: 32768 minimum: 301
[    0.003796] LSM: Security Framework initializing
[    0.004416] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.005165] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.008396] cblist_init_generic: Setting adjustable number of callback queues.
[    0.009123] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.009879] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.010852] rcu: Hierarchical SRCU implementation.
[    0.011799] interrupt-controller@fd440000: unable to locate ITS domain
[    0.012788] interrupt-controller@fd440000: Unable to locate ITS domain
[    0.013708] EFI services will not be available.
[    0.014900] smp: Bringing up secondary CPUs ...
[    0.016306] Detected VIPT I-cache on CPU1
[    0.016357] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    0.016427] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.017538] Detected VIPT I-cache on CPU2
[    0.017584] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    0.017637] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.018733] Detected VIPT I-cache on CPU3
[    0.018778] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    0.018827] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.018997] smp: Brought up 1 node, 4 CPUs
[    0.024568] SMP: Total of 4 processors activated.
[    0.025035] CPU features: detected: 32-bit EL0 Support
[    0.025540] CPU features: detected: 32-bit EL1 Support
[    0.026047] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.026948] CPU features: detected: Common not Private translations
[    0.027569] CPU features: detected: CRC32 instructions
[    0.028078] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.028642] CPU features: detected: LSE atomic instructions
[    0.029189] CPU features: detected: Privileged Access Never
[    0.029735] CPU features: detected: RAS Extension Support
[    0.030268] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.050044] CPU: All CPU(s) started at EL2
[    0.053171] devtmpfs: initialized
[    0.069683] KASLR disabled due to lack of seed
[    0.070394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.071371] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.073191] pinctrl core: initialized pinctrl subsystem
[    0.074310] regulator-dummy: no parameters, enabled
[    0.075322] DMI not present or invalid.
[    0.076384] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.079447] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.080413] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.081449] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.082360] audit: initializing netlink subsys (disabled)
[    0.083171] audit: type=2000 audit(0.080:1): state=initialized audit_enabled=0 res=1
[    0.085370] thermal_sys: Registered thermal governor 'fair_share'
[    0.085385] thermal_sys: Registered thermal governor 'bang_bang'
[    0.085988] thermal_sys: Registered thermal governor 'step_wise'
[    0.086578] thermal_sys: Registered thermal governor 'user_space'
[    0.087167] thermal_sys: Registered thermal governor 'power_allocator'
[    0.088513] cpuidle: using governor menu
[    0.089835] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.090693] ASID allocator initialised with 65536 entries
[    0.109289] platform fe0a0000.hdmi: Fixing up cyclic dependency with fe040000.vop
[    0.134332] rockchip-gpio fdd60000.gpio: probed /pinctrl/gpio@fdd60000
[    0.135870] rockchip-gpio fe740000.gpio: probed /pinctrl/gpio@fe740000
[    0.137366] rockchip-gpio fe750000.gpio: probed /pinctrl/gpio@fe750000
[    0.138963] rockchip-gpio fe760000.gpio: probed /pinctrl/gpio@fe760000
[    0.140420] rockchip-gpio fe770000.gpio: probed /pinctrl/gpio@fe770000
[    0.150275] platform hdmi-con: Fixing up cyclic dependency with fe0a0000.hdmi
[    0.173440] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.174122] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.174864] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.175529] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.177386] cryptd: max_cpu_qlen set to 1000
[    0.178776] ACPI: Interpreter disabled.
[    0.179897] dc_12v: 12000 mV, enabled
[    0.180491] reg-fixed-voltage dc-12v: dc_12v supplying 12000000uV
[    0.181337] vcc3v3_sys: will resolve supply early: vin
[    0.181853] reg-fixed-voltage vcc3v3-sys: Looking up vin-supply from device tree
[    0.182594] vcc3v3_sys: supplied by dc_12v
[    0.183008] dc_12v: could not add device link regulator.2: -ENOENT
[    0.183776] vcc3v3_sys: 3300 mV, enabled
[    0.184365] reg-fixed-voltage vcc3v3-sys: vcc3v3_sys supplying 3300000uV
[    0.185255] vcc5v0_sys: will resolve supply early: vin
[    0.185770] reg-fixed-voltage vcc5v0-sys: Looking up vin-supply from device tree
[    0.186506] vcc5v0_sys: supplied by dc_12v
[    0.186919] dc_12v: could not add device link regulator.3: -ENOENT
[    0.187592] vcc5v0_sys: 5000 mV, enabled
[    0.188192] reg-fixed-voltage vcc5v0-sys: vcc5v0_sys supplying 5000000uV
[    0.189065] pcie30_avdd0v9: will resolve supply early: vin
[    0.189613] reg-fixed-voltage pcie30-avdd0v9: Looking up vin-supply from device tree
[    0.190383] pcie30_avdd0v9: supplied by vcc3v3_sys
[    0.190862] vcc3v3_sys: could not add device link regulator.4: -ENOENT
[    0.191604] pcie30_avdd0v9: 900 mV, enabled
[    0.192217] reg-fixed-voltage pcie30-avdd0v9: pcie30_avdd0v9 supplying 900000uV
[    0.193169] pcie30_avdd1v8: will resolve supply early: vin
[    0.193716] reg-fixed-voltage pcie30-avdd1v8: Looking up vin-supply from device tree
[    0.194486] pcie30_avdd1v8: supplied by vcc3v3_sys
[    0.194966] vcc3v3_sys: could not add device link regulator.5: -ENOENT
[    0.195672] pcie30_avdd1v8: 1800 mV, enabled
[    0.196296] reg-fixed-voltage pcie30-avdd1v8: pcie30_avdd1v8 supplying 1800000uV
[    0.197268] vcc3v3_pcie: 3300 mV, disabled
[    0.197861] reg-fixed-voltage vcc3v3-pi6c-05-regulator: Looking up vin-supply from device tree
[    0.198721] vcc3v3_pcie: supplied by vcc5v0_sys
[    0.199256] reg-fixed-voltage vcc3v3-pi6c-05-regulator: vcc3v3_pcie supplying 3300000uV
[    0.200323] vcc3v3_minipcie: 3300 mV, disabled
[    0.200979] reg-fixed-voltage vcc3v3-minipcie-regulator: Looking up vin-supply from device tree
[    0.201850] vcc3v3_minipcie: supplied by vcc3v3_pcie
[    0.202412] reg-fixed-voltage vcc3v3-minipcie-regulator: vcc3v3_minipcie supplying 3300000uV
[    0.203499] vcc3v3_ngff: 3300 mV, disabled
[    0.204078] reg-fixed-voltage vcc3v3-ngff-regulator: Looking up vin-supply from device tree
[    0.204940] vcc3v3_ngff: supplied by vcc3v3_pcie
[    0.205485] reg-fixed-voltage vcc3v3-ngff-regulator: vcc3v3_ngff supplying 3300000uV
[    0.206462] vbus: will resolve supply early: vin
[    0.206924] reg-fixed-voltage vbus: Looking up vin-supply from device tree
[    0.207610] vbus: supplied by dc_12v
[    0.207973] dc_12v: could not add device link regulator.9: -ENOENT
[    0.208644] vbus: 5000 mV, enabled
[    0.209193] reg-fixed-voltage vbus: vbus supplying 5000000uV
[    0.209987] vcc5v0_usb: will resolve supply early: vin
[    0.210501] reg-fixed-voltage vcc5v0_usb: Looking up vin-supply from device tree
[    0.211237] vcc5v0_usb: supplied by dc_12v
[    0.211648] dc_12v: could not add device link regulator.10: -ENOENT
[    0.212363] vcc5v0_usb: 5000 mV, enabled
[    0.212939] reg-fixed-voltage vcc5v0_usb: vcc5v0_usb supplying 5000000uV
[    0.213984] vcc5v0_usb_host: 5000 mV, disabled
[    0.214615] reg-fixed-voltage vcc5v0-usb-host: Looking up vin-supply from device tree
[    0.215405] vcc5v0_usb_host: supplied by vcc5v0_usb
[    0.215967] reg-fixed-voltage vcc5v0-usb-host: vcc5v0_usb_host supplying 5000000uV
[    0.217046] vcc5v0_usb_otg: 5000 mV, disabled
[    0.217685] reg-fixed-voltage vcc5v0-usb-otg: Looking up vin-supply from device tree
[    0.218468] vcc5v0_usb_otg: supplied by vcc5v0_usb
[    0.219018] reg-fixed-voltage vcc5v0-usb-otg: vcc5v0_usb_otg supplying 5000000uV
[    0.220279] iommu: Default domain type: Passthrough
[    0.221178] SCSI subsystem initialized
[    0.221874] libata version 3.00 loaded.
[    0.222534] usbcore: registered new interface driver usbfs
[    0.223143] usbcore: registered new interface driver hub
[    0.223727] usbcore: registered new device driver usb
[    0.225481] pps_core: LinuxPPS API ver. 1 registered
[    0.226002] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.226920] PTP clock support registered
[    0.227356] EDAC MC: Ver: 3.0.0
[    0.228796] arm-scmi firmware:scmi: Enabled polling mode TX channel - prot_id:16
[    0.229727] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    0.230483] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    0.232244] Advanced Linux Sound Architecture Driver Initialized.
[    0.234158] vgaarb: loaded
[    0.235066] clocksource: Switched to clocksource arch_sys_counter
[    0.324827] pnp: PnP ACPI: disabled
[    0.338433] NET: Registered PF_INET protocol family
[    0.339191] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.341480] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.342438] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.343396] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.344360] TCP: Hash tables configured (established 16384 bind 16384)
[    0.345144] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.345852] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.346768] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.348002] RPC: Registered named UNIX socket transport module.
[    0.348594] RPC: Registered udp transport module.
[    0.349061] RPC: Registered tcp transport module.
[    0.349524] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.351198] PCI: CLS 0 bytes, default 64
[    0.353013] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    0.354927] kvm [1]: IPA Size Limit: 40 bits
[    0.355419] kvm [1]: GICv3: no GICV resource entry
[    0.355898] kvm [1]: disabling GICv2 emulation
[    0.356357] kvm [1]: GIC system register CPU interface enabled
[    0.357153] kvm [1]: vgic interrupt IRQ9
[    0.357844] kvm [1]: VHE mode initialized successfully
[    0.361602] Initialise system trusted keyrings
[    0.362348] workingset: timestamp_bits=42 max_order=19 bucket_order=0
[    0.374430] NFS: Registering the id_resolver key type
[    0.374971] Key type id_resolver registered
[    0.375424] Key type id_legacy registered
[    0.375948] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.376616] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.377745] ksmbd: The ksmbd server is experimental
[    0.432255] Key type asymmetric registered
[    0.432671] Asymmetric key parser 'x509' registered
[    0.433224] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.433958] io scheduler mq-deadline registered
[    0.434408] io scheduler kyber registered
[    0.438276] phy phy-fe8a0000.usb2phy.0: Looking up phy-supply from device tree
[    0.439195] vcc5v0_usb_host: could not add device link phy-fe8a0000.usb2phy.0: -ENOENT
[    0.440262] phy phy-fe8a0000.usb2phy.1: Looking up phy-supply from device tree
[    0.441006] vcc5v0_usb_otg: could not add device link phy-fe8a0000.usb2phy.1: -ENOENT
[    0.443969] phy phy-fe8b0000.usb2phy.2: Looking up phy-supply from device tree
[    0.444700] phy phy-fe8b0000.usb2phy.2: Looking up phy-supply property in node /usb2phy@fe8b0000/host-port failed
[    0.445858] phy phy-fe8b0000.usb2phy.3: Looking up phy-supply from device tree
[    0.446580] phy phy-fe8b0000.usb2phy.3: Looking up phy-supply property in node /usb2phy@fe8b0000/otg-port failed
[    0.449544] phy phy-fe830000.phy.4: Looking up phy-supply from device tree
[    0.450243] phy phy-fe830000.phy.4: Looking up phy-supply property in node /phy@fe830000 failed
[    0.451819] phy phy-fe840000.phy.5: Looking up phy-supply from device tree
[    0.452509] phy phy-fe840000.phy.5: Looking up phy-supply property in node /phy@fe840000 failed
[    0.454159] phy phy-fe820000.phy.6: Looking up phy-supply from device tree
[    0.454849] phy phy-fe820000.phy.6: Looking up phy-supply property in node /phy@fe820000 failed
[    0.457034] rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap
[    0.457862] phy phy-fe8c0000.phy.7: Looking up phy-supply from device tree
[    0.458547] phy phy-fe8c0000.phy.7: Looking up phy-supply property in node /phy@fe8c0000 failed
[    0.463899] rockchip-dw-pcie 3c0400000.pcie: Looking up vpcie3v3-supply from device tree
[    0.731283] phy phy-fe8c0000.phy.7: lane number 0, val 1
[    0.731822] phy phy-fe8c0000.phy.7: lane number 1, val 2
[    0.732349] phy phy-fe8c0000.phy.7: bifurcation enabled
[    0.733030] rockchip-dw-pcie 3c0400000.pcie: host bridge /pcie@fe270000 ranges:
[    0.733785] rockchip-dw-pcie 3c0400000.pcie: Parsing ranges property...
[    0.734458] rockchip-dw-pcie 3c0400000.pcie:       IO 0x0341000000..0x03410fffff -> 0x0001000000
[    0.735374] rockchip-dw-pcie 3c0400000.pcie:      MEM 0x0341100000..0x037fffffff -> 0x0002000000
[    0.744849] rockchip-dw-pcie 3c0400000.pcie: iATU unroll: enabled
[    0.745458] rockchip-dw-pcie 3c0400000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    1.851375] rockchip-dw-pcie 3c0400000.pcie: Phy link never came up
[    1.852231] rockchip-dw-pcie 3c0400000.pcie: PCI host bridge to bus 0001:00
[    1.852927] pci_bus 0001:00: root bus resource [bus 00-0f]
[    1.853476] pci_bus 0001:00: root bus resource [io  0x0000-0xfffff] (bus address [0x1000000-0x10fffff])
[    1.854400] pci_bus 0001:00: root bus resource [mem 0x341100000-0x37fffffff] (bus address [0x02000000-0x40efffff])
[    1.855462] pci_bus 0001:00: scanning bus
[    1.855915] pci 0001:00:00.0: [1d87:3566] type 01 class 0x060400
[    1.856551] pci 0001:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    1.857340] pci 0001:00:00.0: supports D1 D2
[    1.857768] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    1.858342] pci 0001:00:00.0: PME# disabled
[    1.858996] pci 0001:00:00.0: vgaarb: pci_notify
[    1.864929] pci_bus 0001:00: fixups for bus
[    1.865360] pci 0001:00:00.0: scanning [bus 01-ff] behind bridge, pass 0
[    1.866177] pci_bus 0001:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f])
[    1.867277] pci_bus 0001:01: scanning bus
[    1.872579] pci_bus 0001:01: fixups for bus
[    1.873001] pci_bus 0001:01: bus scan returning with max=01
[    1.873562] pci 0001:00:00.0: scanning [bus 01-ff] behind bridge, pass 1
[    1.874235] pci_bus 0001:00: bus scan returning with max=ff
[    1.874807] pci 0001:00:00.0: BAR 6: assigned [mem 0x341100000-0x34110ffff pref]
[    1.875573] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    1.876612] rockchip-dw-pcie 3c0800000.pcie: Looking up vpcie3v3-supply from device tree
[    1.935415] rockchip-dw-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
[    1.936171] rockchip-dw-pcie 3c0800000.pcie: Parsing ranges property...
[    1.936847] rockchip-dw-pcie 3c0800000.pcie:       IO 0x0381000000..0x03810fffff -> 0x0001000000
[    1.937734] rockchip-dw-pcie 3c0800000.pcie:      MEM 0x0381100000..0x03bfffffff -> 0x0002000000
[    1.946741] rockchip-dw-pcie 3c0800000.pcie: iATU unroll: enabled
[    1.947370] rockchip-dw-pcie 3c0800000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    3.055387] rockchip-dw-pcie 3c0800000.pcie: Phy link never came up
[    3.056193] rockchip-dw-pcie 3c0800000.pcie: PCI host bridge to bus 0002:00
[    3.056888] pci_bus 0002:00: root bus resource [bus 00-0f]
[    3.057438] pci_bus 0002:00: root bus resource [io  0x100000-0x1fffff] (bus address [0x1000000-0x10fffff])
[    3.058389] pci_bus 0002:00: root bus resource [mem 0x381100000-0x3bfffffff] (bus address [0x02000000-0x40efffff])
[    3.059450] pci_bus 0002:00: scanning bus
[    3.059899] pci 0002:00:00.0: [1d87:3566] type 01 class 0x060400
[    3.060518] pci 0002:00:00.0: reg 0x10: [mem 0x00000000-0x3fffffff]
[    3.061149] pci 0002:00:00.0: reg 0x14: [mem 0x00000000-0x3fffffff]
[    3.061778] pci 0002:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    3.062567] pci 0002:00:00.0: supports D1 D2
[    3.062996] pci 0002:00:00.0: PME# supported from D0 D1 D3hot
[    3.063596] pci 0002:00:00.0: PME# disabled
[    3.064248] pci 0002:00:00.0: vgaarb: pci_notify
[    3.069825] pci_bus 0002:00: fixups for bus
[    3.070257] pci 0002:00:00.0: scanning [bus 01-ff] behind bridge, pass 0
[    3.071106] pci_bus 0002:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f])
[    3.072176] pci_bus 0002:01: scanning bus
[    3.077432] pci_bus 0002:01: fixups for bus
[    3.077856] pci_bus 0002:01: bus scan returning with max=01
[    3.078417] pci 0002:00:00.0: scanning [bus 01-ff] behind bridge, pass 1
[    3.079113] pci_bus 0002:00: bus scan returning with max=ff
[    3.079688] pci 0002:00:00.0: BAR 0: no space for [mem size 0x40000000]
[    3.080345] pci 0002:00:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    3.081035] pci 0002:00:00.0: BAR 1: no space for [mem size 0x40000000]
[    3.081688] pci 0002:00:00.0: BAR 1: failed to assign [mem size 0x40000000]
[    3.082377] pci 0002:00:00.0: BAR 6: assigned [mem 0x381100000-0x38110ffff pref]
[    3.083138] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
[    3.084974] EINJ: ACPI disabled.
[    3.092251] dma-pl330 fe530000.dma-controller: Loaded driver for PL330 DMAC-241330
[    3.093017] dma-pl330 fe530000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    3.097274] dma-pl330 fe550000.dma-controller: Loaded driver for PL330 DMAC-241330
[    3.098032] dma-pl330 fe550000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    3.101286] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active.
[    3.107541] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    3.111520] printk: console [ttyS2] disabled
[    3.112041] fe660000.serial: ttyS2 at MMIO 0xfe660000 (irq = 36, base_baud = 1500000) is a 16550A
[    3.113189] printk: console [ttyS2] enabled
[    3.113189] printk: console [ttyS2] enabled
[    3.113977] printk: bootconsole [uart8250] disabled
[    3.113977] printk: bootconsole [uart8250] disabled
[    3.119540] rockchip-vop2 fe040000.vop: Adding to iommu group 0
[    3.120112] iommu: Failed to allocate default IOMMU domain of type 4 for group (null) - Falling back to IOMMU_DOMAIN_DMA
[    3.126691] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    3.139879] brd: module loaded
[    3.148947] loop: module loaded
[    3.149988] zram: Added device: zram0
[    3.151960] ahci fc800000.sata: Looking up ahci-supply from device tree
[    3.152568] ahci fc800000.sata: Looking up ahci-supply property in node /sata@fc800000 failed
[    3.153366] ahci fc800000.sata: supply ahci not found, using dummy regulator
[    3.154190] ahci fc800000.sata: Looking up phy-supply from device tree
[    3.154782] ahci fc800000.sata: Looking up phy-supply property in node /sata@fc800000 failed
[    3.155602] ahci fc800000.sata: supply phy not found, using dummy regulator
[    3.156437] ahci fc800000.sata: Looking up target-supply from device tree
[    3.157051] ahci fc800000.sata: Looking up target-supply property in node /sata@fc800000 failed
[    3.157847] ahci fc800000.sata: supply target not found, using dummy regulator
[    3.158702] ahci fc800000.sata: forcing port_map 0x0 -> 0x1
[    3.159278] ahci fc800000.sata: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    3.160044] ahci fc800000.sata: flags: ncq sntf pm led clo only pmp fbs pio slum part ccc apst
[    3.160844] ahci fc800000.sata: port 0 is not capable of FBS
[    3.162970] scsi host0: ahci
[    3.163708] ata1: SATA max UDMA/133 mmio [mem 0xfc800000-0xfc800fff] port 0x100 irq 18
[    3.168878] tun: Universal TUN/TAP device driver, 1.6
[    3.170880] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
[    3.171761] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply from device tree
[    3.172469] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply property in node /ethernet@fe010000 failed
[    3.173388] rk_gmac-dwmac fe010000.ethernet: no regulator found
[    3.173919] rk_gmac-dwmac fe010000.ethernet: clock input or output? (output).
[    3.174554] rk_gmac-dwmac fe010000.ethernet: TX delay(0x3c).
[    3.175087] rk_gmac-dwmac fe010000.ethernet: RX delay(0x2f).
[    3.175606] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
[    3.181252] rk_gmac-dwmac fe010000.ethernet: init for RGMII
[    3.182073] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    3.182720] rk_gmac-dwmac fe010000.ethernet:         DWMAC4/5
[    3.183226] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
[    3.183893] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
[    3.184553] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
[    3.185178] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
[    3.185844] rk_gmac-dwmac fe010000.ethernet: TSO supported
[    3.186337] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.187084] rk_gmac-dwmac fe010000.ethernet: device MAC address ba:a6:e4:48:e8:48
[    3.187758] rk_gmac-dwmac fe010000.ethernet: Enabled RFS Flow TC (entries=10)
[    3.188394] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
[    3.188929] rk_gmac-dwmac fe010000.ethernet: Using 32 bits DMA width
[    3.326802] rk_gmac-dwmac fe2a0000.ethernet: IRQ eth_lpi not found
[    3.328002] rk_gmac-dwmac fe2a0000.ethernet: Looking up phy-supply from device tree
[    3.328730] rk_gmac-dwmac fe2a0000.ethernet: Looking up phy-supply property in node /ethernet@fe2a0000 failed
[    3.329645] rk_gmac-dwmac fe2a0000.ethernet: no regulator found
[    3.330177] rk_gmac-dwmac fe2a0000.ethernet: clock input or output? (input).
[    3.330805] rk_gmac-dwmac fe2a0000.ethernet: TX delay(0x4f).
[    3.331347] rk_gmac-dwmac fe2a0000.ethernet: RX delay(0xf).
[    3.331858] rk_gmac-dwmac fe2a0000.ethernet: integrated PHY? (no).
[    3.332500] rk_gmac-dwmac fe2a0000.ethernet: clock input from PHY
[    3.338060] rk_gmac-dwmac fe2a0000.ethernet: init for RGMII
[    3.338876] rk_gmac-dwmac fe2a0000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    3.339557] rk_gmac-dwmac fe2a0000.ethernet:         DWMAC4/5
[    3.340024] rk_gmac-dwmac fe2a0000.ethernet: DMA HW capability register supported
[    3.340689] rk_gmac-dwmac fe2a0000.ethernet: RX Checksum Offload Engine supported
[    3.341348] rk_gmac-dwmac fe2a0000.ethernet: TX Checksum insertion supported
[    3.341973] rk_gmac-dwmac fe2a0000.ethernet: Wake-Up On Lan supported
[    3.342630] rk_gmac-dwmac fe2a0000.ethernet: TSO supported
[    3.343146] rk_gmac-dwmac fe2a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.343867] rk_gmac-dwmac fe2a0000.ethernet: device MAC address c6:24:7f:06:e1:44
[    3.344539] rk_gmac-dwmac fe2a0000.ethernet: Enabled RFS Flow TC (entries=10)
[    3.345173] rk_gmac-dwmac fe2a0000.ethernet: TSO feature enabled
[    3.345709] rk_gmac-dwmac fe2a0000.ethernet: Using 32 bits DMA width
[    3.477707] ata1: SATA link down (SStatus 0 SControl 300)
[    3.482414] VFIO - User Level meta-driver version: 0.3
[    3.492351] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.492950] ehci-pci: EHCI PCI platform driver
[    3.493418] ehci-platform: EHCI generic platform driver
[    3.496344] ehci-platform fd800000.usb: EHCI Host Controller
[    3.496881] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
[    3.497729] ehci-platform fd800000.usb: irq 21, io mem 0xfd800000
[    3.511117] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
[    3.512678] hub 1-0:1.0: USB hub found
[    3.513074] hub 1-0:1.0: 1 port detected
[    3.516360] ehci-platform fd880000.usb: EHCI Host Controller
[    3.516893] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
[    3.517725] ehci-platform fd880000.usb: irq 23, io mem 0xfd880000
[    3.531111] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
[    3.532548] hub 2-0:1.0: USB hub found
[    3.532950] hub 2-0:1.0: 1 port detected
[    3.534240] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.534822] ohci-pci: OHCI PCI platform driver
[    3.535367] ohci-platform: OHCI generic platform driver
[    3.536271] ohci-platform fd840000.usb: Generic Platform OHCI controller
[    3.536893] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[    3.537772] ohci-platform fd840000.usb: irq 22, io mem 0xfd840000
[    3.600020] hub 3-0:1.0: USB hub found
[    3.600412] hub 3-0:1.0: 1 port detected
[    3.601619] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
[    3.602239] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
[    3.603133] ohci-platform fd8c0000.usb: irq 24, io mem 0xfd8c0000
[    3.668037] hub 4-0:1.0: USB hub found
[    3.668426] hub 4-0:1.0: 1 port detected
[    3.670783] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.671345] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5
[    3.672208] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    3.673124] xhci-hcd xhci-hcd.0.auto: irq 19, io mem 0xfcc00000
[    3.674905] hub 5-0:1.0: USB hub found
[    3.675348] hub 5-0:1.0: 1 port detected
[    3.676173] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.676681] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 6
[    3.677374] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    3.678062] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.679680] hub 6-0:1.0: USB hub found
[    3.680069] hub 6-0:1.0: 1 port detected
[    3.681236] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.681754] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 7
[    3.682608] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    3.683558] xhci-hcd xhci-hcd.1.auto: irq 20, io mem 0xfd000000
[    3.685264] hub 7-0:1.0: USB hub found
[    3.685655] hub 7-0:1.0: 1 port detected
[    3.686484] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.686991] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8
[    3.687742] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    3.688431] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.690001] hub 8-0:1.0: USB hub found
[    3.690391] hub 8-0:1.0: 1 port detected
[    3.691571] usbcore: registered new interface driver usb-storage
[    3.692935] i2c_dev: i2c /dev entries driver
[    3.696704] rk808 0-0020: failed to read the chip id at 0x17
[    3.702212] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 0
[    4.707108] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    4.719099] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 1
[    5.731148] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    5.743100] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 2
[    6.755104] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    6.767098] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 3
[    7.779128] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    7.791098] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 4
[    8.803103] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    8.815099] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 5
[    9.827103] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[    9.839098] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 6
[   10.851104] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[   10.863097] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 7
[   11.875103] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[   11.887098] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 8
[   12.899102] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[   12.911099] rtc-hym8563 3-0051: hym8563_init_device: probe attempt 9
[   13.923105] rk3x-i2c fe5c0000.i2c: timeout, ipd: 0x00, state: 1
[   13.935098] rtc-hym8563 3-0051: could not init device, -110
[   13.939322] rtc-hym8563: probe of 3-0051 failed with error -110
[   13.941182] arm-scmi firmware:scmi: Failed. SCMI protocol 21 not active.
[   13.943817] rockchip-thermal fe710000.tsadc: Missing tshut mode property, using default (gpio)
[   13.944591] rockchip-thermal fe710000.tsadc: Missing tshut-polarity property, using default (low)
[   13.951323] arm-scmi firmware:scmi: Failed. SCMI protocol 19 not active.
[   13.953942] sdhci: Secure Digital Host Controller Interface driver
[   13.954505] sdhci: Copyright(c) Pierre Ossman
[   13.955671] Synopsys Designware Multimedia Card Interface Driver
[   13.957203] sdhci-pltfm: SDHCI platform and OF driver helper
[   13.959584] sdhci-dwcmshc fe310000.mmc: Looking up vmmc-supply from device tree
[   13.960263] sdhci-dwcmshc fe310000.mmc: Looking up vmmc-supply property in node /mmc@fe310000 failed
[   13.961132] sdhci-dwcmshc fe310000.mmc: Looking up vqmmc-supply from device tree
[   13.961705] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[   13.961798] sdhci-dwcmshc fe310000.mmc: Looking up vqmmc-supply property in node /mmc@fe310000 failed
[   13.962459] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[   13.964455] usbcore: registered new interface driver usbhid
[   13.964960] usbhid: USB HID core driver
[   13.966208] SPI driver st-accel-spi has no spi_device_id for st,lis302dl-spi
[   13.966838] SPI driver st-accel-spi has no spi_device_id for st,lis3lv02dl-accel
[   13.967527] SPI driver st-accel-spi has no spi_device_id for st,lis3dh-accel
[   13.968153] SPI driver st-accel-spi has no spi_device_id for st,lsm330d-accel
[   13.968782] SPI driver st-accel-spi has no spi_device_id for st,lsm330dl-accel
[   13.969419] SPI driver st-accel-spi has no spi_device_id for st,lsm330dlc-accel
[   13.970063] SPI driver st-accel-spi has no spi_device_id for st,lis331dlh-accel
[   13.970707] SPI driver st-accel-spi has no spi_device_id for st,lsm330-accel
[   13.971342] SPI driver st-accel-spi has no spi_device_id for st,lsm303agr-accel
[   13.971984] SPI driver st-accel-spi has no spi_device_id for st,lis2dh12-accel
[   13.972616] SPI driver st-accel-spi has no spi_device_id for st,lng2dm-accel
[   13.973232] SPI driver st-accel-spi has no spi_device_id for st,h3lis331dl-accel
[   13.973877] SPI driver st-accel-spi has no spi_device_id for st,lis331dl-accel
[   13.981341] NET: Registered PF_INET6 protocol family
[   13.982891] Segment Routing with IPv6
[   13.983275] In-situ OAM (IOAM) with IPv6
[   13.983661] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   13.984541] NET: Registered PF_PACKET protocol family
[   13.985207] Key type dns_resolver registered
[   13.985900] registered taskstats version 1
[   13.986267] Loading compiled-in X.509 certificates
[   13.991465] zswap: loaded using pool zstd/zsmalloc
[   13.995125] mmc1: SDHCI controller on fe310000.mmc [fe310000.mmc] using ADMA
[   14.052923] mmc1: error -84 whilst initialising MMC card
[   14.073658] mt7530 stmmac-0:00: no interrupt support
[   14.097064] mt7530 stmmac-0:00: configuring for fixed/rgmii link mode
[   14.100312] mt7530 stmmac-0:00: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.139860] mt7530 stmmac-0:00 lan0 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=POLL)
[   14.141560] mmc1: error -84 whilst initialising MMC card
[   14.184351] mt7530 stmmac-0:00 lan1 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=POLL)
[   14.233692] mt7530 stmmac-0:00 lan2 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=POLL)
[   14.234770] mmc1: error -84 whilst initialising MMC card
[   14.277026] mt7530 stmmac-0:00 lan3 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=POLL)
[   14.281343] DSA: tree 0 setup
[   14.293272] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   14.295594] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   14.296913] ALSA device list:
[   14.297187]   No soundcards found.
[   14.297705] dw-apb-uart fe660000.serial: forbid DMA for kernel console
[   14.298470] Waiting for root device /dev/mmcblk0p3...
[   14.299032] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   14.299833] cfg80211: failed to load regulatory.db
[   14.324823] mmc1: error -84 whilst initialising MMC card

I’ve tried two different SD cards (both Samsung EVO Plus) with the same results. Is this a board issue, or am I missing something? Is it possible it’s the brand of SD card I’m using and, if so, can someone recommend a better SD card?

I had noticed roblems with samsung cards too,so most of my cards are sandisk now. But if there is basicly bootup and only error in linux it looks like a linux bug for such cards…maybe incomatible mode/clock setting.

This is good to know. I’ll pick up some SanDisk cards. Impatience got the better of me, so instead of waiting for the male-to-male USB cable, I ended up copying my root partition to a SATA drive and then booted from u-boot on the SD card to a root on /dev/sda1 I debootstrap’d with Ubuntu 22.04, which at least got me to an emergency mode shell. Then I wiped the eMMC and installed u-boot on it built from the 2023-04-bpi-r2p branch of your GitHub u-boot repo, created a FAT32 boot partition on the eMMC and installed the kernel built from the 6.3-main branch of your GitHub BPI-Router-Linux repo. (As an aside, your contributions to the BPI community are incredible.) Even once booted into jammy properly, the Samsung SD card is nowhere to be seen.

I’ll post an update here regarding SD booting when I get my hands on some non-Samsung cards.

Ok, so I received the USB male-to-male cable today and it seems that there’s potentially a separate issue that I had mistakenly dismissed. When I had previously used the Windows SD card creation tool with the Ubuntu-22.04-Server-Only-SDBoot-update-MT7531SW-DSA-20220623 image from the wiki, I got the following (power management?) error. Since frank-w’s builds didn’t produce this issue (and, when booting to a root on sda1, run stably), I assumed it was an issue with the SD upload tool and/or the SD card. But now that I flashed to the eMMC and tested several different images using the Rockchip USB Download Tool, I can confirm that this error occurs for the Ubuntu 22.04 and the Android 11 images among others.

DDR Version V1.13 20220218
In
ddrconfig:0
LP4 MR14:0x4d
LPDDR4, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss: cs0 dqs0: 385ps, dqs1: 313ps, dqs2: 337ps, dqs3: 241ps,

change to: 324MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 528MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x78

change to: 780MHz
PHY drv:clk:38,ca:38,DQ:30,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x5d

change to: 1560MHz(final freq)
PHY drv:clk:38,ca:38,DQ:30,odt:60
vrefinner:16%, vrefout:29%
dram drv:40,odt:80
vref_ca:00000068
clk skew:0x13
cs 0:
the read training result:
DQS0:0x36, DQS1:0x36, DQS2:0x38, DQS3:0x34,
min  : 0xf  0xf 0x13  0xe  0x2  0x4  0x8  0x2 , 0xe  0xa  0x4  0x2  0xf  0xb  0xd  0x9 ,
      0x12 0x12  0xe  0xb  0x5  0x1  0x2  0x4 , 0xf  0xb  0xb  0x2 0x11 0x12 0x11 0x12 ,
mid  :0x2b 0x2b 0x2d 0x29 0x1e 0x21 0x23 0x1d ,0x28 0x26 0x1e 0x1e 0x2a 0x27 0x28 0x24 ,
      0x2d 0x2d 0x28 0x25 0x1f 0x1d 0x1d 0x1f ,0x29 0x27 0x24 0x1f 0x2d 0x2d 0x2a 0x2e ,
max  :0x48 0x47 0x48 0x45 0x3b 0x3f 0x3f 0x39 ,0x42 0x43 0x38 0x3b 0x45 0x43 0x44 0x40 ,
      0x49 0x49 0x42 0x3f 0x3a 0x3a 0x39 0x3b ,0x44 0x44 0x3d 0x3c 0x49 0x49 0x44 0x4b ,
range:0x39 0x38 0x35 0x37 0x39 0x3b 0x37 0x37 ,0x34 0x39 0x34 0x39 0x36 0x38 0x37 0x37 ,
      0x37 0x37 0x34 0x34 0x35 0x39 0x37 0x37 ,0x35 0x39 0x32 0x3a 0x38 0x37 0x33 0x39 ,
the write training result:
DQS0:0x5f, DQS1:0x51, DQS2:0x56, DQS3:0x43,
min  :0xa6 0xa9 0xab 0xa8 0x9c 0x9f 0xa1 0x9f 0x9e ,0x96 0x97 0x8f 0x90 0x99 0x97 0x98 0x97 0x92 ,
      0x9e 0xa0 0x9a 0x99 0x91 0x8f 0x91 0x94 0x94 ,0x8d 0x8e 0x8a 0x85 0x93 0x95 0x8f 0x93 0x88 ,
mid  :0xc2 0xc4 0xc6 0xc2 0xb5 0xb9 0xbb 0xb9 0xb8 ,0xb1 0xb0 0xa8 0xa7 0xb3 0xb0 0xb0 0xaf 0xab ,
      0xbb 0xbc 0xb5 0xb4 0xac 0xa9 0xab 0xae 0xaf ,0xa8 0xa7 0xa3 0x9e 0xad 0xae 0xa9 0xad 0xa2 ,
max  :0xdf 0xdf 0xe2 0xdd 0xce 0xd3 0xd6 0xd3 0xd3 ,0xcc 0xca 0xc1 0xbf 0xcd 0xc9 0xc9 0xc7 0xc5 ,
      0xd9 0xd9 0xd0 0xd0 0xc7 0xc4 0xc6 0xc9 0xcb ,0xc4 0xc1 0xbd 0xb8 0xc7 0xc8 0xc3 0xc8 0xbc ,
range:0x39 0x36 0x37 0x35 0x32 0x34 0x35 0x34 0x35 ,0x36 0x33 0x32 0x2f 0x34 0x32 0x31 0x30 0x33 ,
      0x3b 0x39 0x36 0x37 0x36 0x35 0x35 0x35 0x37 ,0x37 0x33 0x33 0x33 0x34 0x33 0x34 0x35 0x34 ,
CA Training result:
cs:0 min  :0x3f 0x40 0x35 0x34 0x35 0x31 0x39 ,0x42 0x3c 0x37 0x35 0x35 0x31 0x3c ,
cs:0 mid  :0x7e 0x7e 0x73 0x6f 0x73 0x6d 0x65 ,0x7e 0x7b 0x74 0x70 0x72 0x6e 0x67 ,
cs:0 max  :0xbd 0xbc 0xb2 0xab 0xb2 0xaa 0x91 ,0xbb 0xba 0xb2 0xac 0xaf 0xac 0x92 ,
cs:0 range:0x7e 0x7c 0x7d 0x77 0x7d 0x79 0x58 ,0x79 0x7e 0x7b 0x77 0x7a 0x7b 0x56 ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-gaaca6ffec1-211203 #zzz (Dec 03 2021 - 18:42:16)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
Magic is incorrect.
Error validating A/B metadata from disk. Resetting and writing new A/B metadata to disk.
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(fe4f274c06...) + OK
## Checking uboot 0x00a00000 ... sha256(7d40b8a80c...) + OK
## Checking fdt 0x00b2a000 ... sha256(0aa3cef35d...) + OK
## Checking atf-2 0x00068000 ... sha256(8d44036095...) + OK
## Checking atf-3 0xfdcd0000 ... sha256(e410275b51...) + OK
## Checking atf-4 0xfdcc9000 ... sha256(990c53fc01...) + OK
## Checking atf-5 0x00066000 ... sha256(315a4195a9...) + OK
## Checking optee 0x08400000 ... sha256(66bbd17352...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 264.334 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE:  BL31: Built : 10:55:41, Oct 18 2021
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid
INFO:    dfs DDR fsp_param[0].freq_mhz= 1560MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-641-g4167319d3 #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #8 Wed Mar 16 15:14:56 CST 2022 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2017.09 (Jun 12 2022 - 15:51:39 +0800)

Model: BPI-R2PRO RK3568 Board
PreSerial: 2, raw, 0xfe660000
DRAM:  2 GiB
Sysmem: init
Relocation Offset: 7d34e000
Relocation fdt: 7b9f8ce0 - 7b9fece0
CR: M/C/I
Using default environment

no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
DM: v1
boot mode: recovery (misc)
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
I2c0 speed: 100000Hz
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (pmuio1-supply) regulator: /i2c@fdd40000/pmic@20/regulators/LDO_REG6 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (pmuio2-supply) regulator: /i2c@fdd40000/pmic@20/regulators/LDO_REG6 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio1-supply) regulator: /i2c@fdd40000/pmic@20/regulators/LDO_REG4 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio3-supply) regulator: /i2c@fdd40000/pmic@20/regulators/LDO_REG5 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio4-supply) regulator: /i2c@fdd40000/pmic@20/regulators/SWITCH_REG1 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio5-supply) regulator: /i2c@fdd40000/pmic@20/regulators/SWITCH_REG1 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio6-supply) regulator: /i2c@fdd40000/pmic@20/regulators/DCDC_REG5 failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
of_get_regulator: Get (vccio7-supply) regulator: /i2c@fdd40000/pmic@20/regulators/SWITCH_REG1 failed, ret=-121
io-domain: OK
Warn: can't find connect driver
Could not find baseparameter partition
Model: BananaPi RK3568-BPI-R2PRO-PC HDMI (Linux)
rk8xx_read: read reg 0xed failed, ret=-121
rk8xx_read: read reg 0xed failed, ret=-121
Rockchip UBOOT DRM driver version: v1.0.1
VOP have 2 active VP
vp0 have layer nr:3[0 2 4 ], primary plane: 4
vp1 have layer nr:3[1 3 5 ], primary plane: 5
vp2 have layer nr:0[], primary plane: 0
hdmi@fe0a0000 disconnected
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 780000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  npll 1200000 KHz
  vpll 24000 KHz
  hpll 24000 KHz
  ppll 200000 KHz
  armclk 816000 KHz
  aclk_bus 150000 KHz
  pclk_bus 100000 KHz
  aclk_top_high 500000 KHz
  aclk_top_low 400000 KHz
  hclk_top 150000 KHz
  pclk_top 100000 KHz
  aclk_perimid 300000 KHz
  hclk_perimid 150000 KHz
  pclk_pmu 100000 KHz
Net:   FEC: can't find phy-handle
eth1: ethernet@fe010000, eth0: ethernet@fe2a0000
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
optee api revision: 2.0
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
No valid android hdr
Android image load failed
Android boot failed, error -1.
## Booting FIT Image at 0x7922c0c0 with size 0x025cbc00
Fdt Ramdisk skip relocation
## Loading kernel from FIT Image at 7922c0c0 ...
   Using 'conf' configuration
## Verified-boot: 0
   Trying 'kernel' kernel subimage
     Description:  unavailable
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x79246cc0
     Data Size:    32544776 Bytes = 31 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x00280000
     Entry Point:  0x00280000
     Hash algo:    sha256
     Hash value:   d85b4c9da3d677fcb36a2e6b38666850d86506eb503e4bbd78e68afe04f4beee
   Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk from FIT Image at 7922c0c0 ...
   Using 'conf' configuration
   Trying 'ramdisk' ramdisk subimage
     Description:  unavailable
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0x7b1506c0
     Data Size:    6976719 Bytes = 6.7 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x0a200000
     Entry Point:  unavailable
     Hash algo:    sha256
     Hash value:   d6d9a19e6a33641079c17e4f220c582c797117d74852582e976eb91f07a8942c
   Verifying Hash Integrity ... sha256+ OK
   Loading ramdisk from 0x7b1506c0 to 0x0a200000
## Loading fdt from FIT Image at 7922c0c0 ...
   Using 'conf' configuration
   Trying 'fdt' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x7922c8c0
     Data Size:    107052 Bytes = 104.5 KiB
     Architecture: AArch64
     Load Address: 0x0a100000
     Hash algo:    sha256
     Hash value:   18720b47941de61562e78c5fdc5dcd373e483c99fe2c608b69ae26abb46ee500
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x0a100000 to 0x0a100000
   Booting using the fdt blob at 0x0a100000
   Loading Kernel Image from 0x79246cc0 to 0x00280000 ... OK
   kernel loaded at 0x00280000, end = 0x02189808
  'reserved-memory' ramoops@110000: addr=110000 size=f0000
   Using Device Tree in place at 000000000a100000, end 000000000a11d22b
vp0, plane_mask:0x15, primary-id:4, curser-id:-1
vp1, plane_mask:0x2a, primary-id:5, curser-id:-1
vp2, plane_mask:0x0, primary-id:0, curser-id:-1
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x09400000 - 0x80000000 (size: 0x76c00000)
== DO RELOCATE == Kernel from 0x00280000 to 0x00200000
Total: 9624.465 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 5.10.66 ([email protected]) (aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.05) 6.3.1 20170404, GNU ld (Linaro_Binutils-2017.05) 2.27.0.20161019) #1 SMP Sun Jun 12 15:52:44 CST 2022
[    0.000000] Machine model: BananaPi RK3568-BPI-R2PRO-PC HDMI (Linux)
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000fe660000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000083fffff]
[    0.000000]   node   0: [mem 0x0000000009400000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000007fffffff]
[    0.000000] cma: Reserved 16 MiB at 0x000000007e800000
[    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: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s82856 r8192 d31832 u122880
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: patching kernel code
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 511496
[    0.000000] Kernel command line: storagemedia=sd androidboot.storagemedia=sd androidboot.mode=normal  androidboot.verifiedbootstate=orange rw rootwait earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 root=PARTUUID=614e0000-0000
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1978696K/2078720K available (15998K kernel code, 3366K rwdata, 6200K rodata, 6144K init, 568K bss, 83640K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 60670 entries in 237 pages
[    0.000000] ftrace: allocated 237 pages with 6 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_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: 320 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    0.000000] ITS [mem 0xfd440000-0xfd45ffff]
[    0.000000] ITS@0x00000000fd440000: allocated 8192 Devices @25e0000 (indirect, esz 8, psz 64K, shr 0)
[    0.000000] ITS@0x00000000fd440000: allocated 32768 Interrupt Collections @25f0000 (flat, esz 2, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000002600000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000002610000
[    0.000000] random: get_random_bytes called from start_kernel+0x3f0/0x588 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002146] Console: colour dummy device 80x25
[    0.002599] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.003544] pid_max: default: 32768 minimum: 301
[    0.004172] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.004863] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.008010] rcu: Hierarchical SRCU implementation.
[    0.009687] Platform MSI: interrupt-controller@fd440000 domain created
[    0.010781] PCI/MSI: /interrupt-controller@fd400000/interrupt-controller@fd440000 domain created
[    0.012444] smp: Bringing up secondary CPUs ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
[    0.014553] Detected VIPT I-cache on CPU1
[    0.014606] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    0.014634] GICv3: CPU1: using allocated LPI pending table @0x0000000002620000
[    0.014709] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.016552] Detected VIPT I-cache on CPU2
[    0.016598] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    0.016623] GICv3: CPU2: using allocated LPI pending table @0x0000000002630000
[    0.016680] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.018416] Detected VIPT I-cache on CPU3
[    0.018460] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    0.018483] GICv3: CPU3: using allocated LPI pending table @0x0000000002640000
[    0.018538] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.018719] smp: Brought up 1 node, 4 CPUs
[    0.025872] SMP: Total of 4 processors activated.
[    0.026338] CPU features: detected: Privileged Access Never
[    0.026852] CPU features: detected: User Access Override
[    0.027338] CPU features: detected: 32-bit EL0 Support
[    0.027813] CPU features: detected: Common not Private translations
[    0.028387] CPU features: detected: RAS Extension Support
[    0.028879] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.029682] CPU features: detected: CRC32 instructions
[    0.030155] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.030794] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.031446] CPU: All CPU(s) started at EL2
[    0.033053] devtmpfs: initialized
[    0.061003] Registered cp15_barrier emulation handler
[    0.061493] Registered setend emulation handler
[    0.062201] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.063103] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.064776] pinctrl core: initialized pinctrl subsystem
[    0.066753] NET: Registered protocol family 16
[    0.070578] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.071548] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.073391] thermal_sys: Registered thermal governor 'fair_share'
[    0.073402] thermal_sys: Registered thermal governor 'step_wise'
[    0.074446] cpuidle: using governor menu
[    0.075414] Registered FIQ tty driver
[    0.076450] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.077270] ASID allocator initialised with 65536 entries
[    0.080486] printk: console [ramoops-1] enabled
[    0.080912] pstore: Registered ramoops as persistent store backend
[    0.081484] ramoops: using 0xf0000@0x110000, ecc: 0
[    0.149622] rockchip-gpio fdd60000.gpio0: probed /pinctrl/gpio0@fdd60000
[    0.151148] rockchip-gpio fe740000.gpio1: probed /pinctrl/gpio1@fe740000
[    0.152771] rockchip-gpio fe750000.gpio2: probed /pinctrl/gpio2@fe750000
[    0.154521] rockchip-gpio fe760000.gpio3: probed /pinctrl/gpio3@fe760000
[    0.156113] rockchip-gpio fe770000.gpio4: probed /pinctrl/gpio4@fe770000
[    0.156877] rockchip-pinctrl pinctrl: probed pinctrl
[    0.240878] fiq_debugger fiq_debugger.0: IRQ fiq not found
[    0.241413] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    0.241950] fiq_debugger_probe: could not install nmi irq handler
[ [    0.242650] printk: console [ttyFIQ0] enabled
   0.242650] printk: console [ttyFIQ0] enabled
[    0.243484] printk: bootconsole [uart8250] disabled
[    0.243484] printk: bootconsole [uart8250] disabled
[    0.244219] Registered fiq debugger ttyFIQ0
[    0.245589] vcc3v3_sys: supplied by dc_12v
[    0.246179] vcc5v0_sys: supplied by dc_12v
[    0.249464] vcc2v5-sys: supplied by vcc3v3_sys
[    0.250074] pcie30_avdd0v9: supplied by vcc3v3_sys
[    0.250699] pcie30_avdd1v8: supplied by vcc3v3_sys
[    0.251263] vcc3v3_bu: supplied by vcc5v0_sys
[    0.251904] vcc3v3_minipcie: supplied by vcc3v3_sys
[    0.252554] vcc3v3_ngff: supp[    0.255322] iommu: Default domain type: Translated
[    0.267953] rockchip-pm-domain fdd90000.power-management:power-controller: failed to get ack on domain 'npu', target_idle = 0, target_ack = 0, val=0x6
[    0.267976] Kernel panic - lnot syncing: panic_on_set_idle set ...
[    0.270123] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.66 #1
[    0.270657] Hardware name: BananaPi RK3568-BPI-R2PRO-PC HDMI (Linux) (DT)
[    0.271260] Call trace:
[    0.271503]  dump_backtrace+0x0/0x1a8
[    0.271843]  show_stack+0x2c/0x38
[    0.272150]  dump_stack_lvl+0xc8/0xf4
[    0.272490]  dump_stack+0x14/0x2c
ied by vcc3v3_sys
[    0.272941]  panic+0x174/0x36c
[    0.273226]  rockchip_pmu_set_idle_request+0x1b4/0x1cc
[    0.273692]  rockchip_pd_power+0x2c0/0x40c
[    0.274065]  rockchip_pd_power_on+0x2c/0x40
[    0.274453]  _genpd_power_on+0x80/0x12c
[    0.274803]  genpd_power_on.part.25+0x50/0x14c
[    0.275210]  __genpd_dev_pm_attach+0x1ac/0x200
[    0.275617]  genpd_dev_pm_attach+0x60/0x64
[    0.275992]  dev_pm_domain_attach+0x28/0x44
[    0.276379]  platform_drv_probe+0x40/0xa4
[    0.276742]  really_probe+0x2e0/0x47c
[    0.277080]  driver_probe_device+0x130/0x140
[    0.277465]  device_driver_attach+0x50/0x7c
[    0.277849]  __driver_attach+0x140/0x144
[    0.278210]  bus_for_each_dev+0x8c/0xd4
[    0.278561]  driver_attach+0x30/0x3c
[    0.278887]  bus_add_driver+0x1b0/0x1f4
[    0.279238]  driver_register+0xb8/0xf0
[    0.279578]  __platform_driver_register+0x58/0x64
[    0.280011]  rk_iommu_init+0x20/0x28
[    0.280339]  do_one_initcall+0xb0/0x1f8
[    0.280691]  kernel_init_freeable+0x288/0x290
[    0.281088]  kernel_init+0x18/0x110
[    0.281403]  ret_from_fork+0x10/0x18
[    0.281735] SMP: stopping secondary CPUs
[    0.282102] PMU CRU:
[    0.282325] 00000000: 00006064 00001481 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.283089] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.283852] 00000040: 00002063 00001481 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.284616] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.285379] 00000080: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.286142] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.286906] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.287670] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.288432] 00000100: 00000080 0040b71b 00000001 00000001 00000800 00000000 00000001 00000009
[    0.289195] 00000120: 0000050f 00008bbb 00000000 00000000 00000000 00000000 00000000 00000000
[    0.289958] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.290722] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.291485] 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.292248] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.293012] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.293775] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.294538] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.295302] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.296058] 00000240: 00040020 00000000
[    0.296404] CRU:
[    0.296587] 00000000: 00002044 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.297350] 00000020: 00004082 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.298113] 00000040: 00002063 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.298877] 00000060: 0000107d 00001443 00000000 00000007 00007f00 00000000 00000000 00000000
[    0.299639] 00000080: 00002064 00001441 00000000 00000000 00000000 00000000 00000000 00000000
[    0.300402] 000000a0: 0000307d 00001442 00000000 00000000 00000000 00000000 00000000 00000000
[    0.301164] 000000c0: 00000455 00000000 00000000 00000000 00640064 00000000 00000000 00000103
[    0.301926] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.302689] 00000100: 00000000 00000000 00000001 00000303 00000303 00000111 00004191 00000011
[    0.303452] 00000120: 00000053 00000100 00000001 00008000 00040004 00008000 00040004 00008000
[    0.304215] 00000140: 00040004 00008000 00040004 00008000 00040004 00008000 00040004 00004000
[    0.304976] 00000160: 00040004 0000000b 00000000 00000010 00001031 00001c30 00000420 00000000
[    0.305738] 00000180: 00000020 00000000 00000310 0000c001 0000c0c0 00003100 00000001 00000000
[    0.306502] 000001a0: 00000001 00000003 00000103 00002100 00000203 00000003 00000000 00000103
[    0.307265] 000001c0: 00000003 00000301 00000001 00001300 0000200b 00000000 0000200b 00000000
[    0.308027] 000001e0: 0000200b 00000000 0000200b 00000000 0000200b 00000000 0000200b 00000000
[    0.308791] 00000200: 0000200b 00000000 0000200b 00000000 0000200b 00000000 00000303 00000203
[    0.309555] 00000220: 00001500 00000000 0000001f 00000302 00000705 00000f0b 0000013b 00000303
[    0.310319] 00000240: 00000f07 00002713 00001f09 00008000 00040004 00003b2f 00000101 00000302
[    0.311082] 00000260: 00000704 0000130f 00001f27 00000000 00000000 00000000 00000000 00000000
[    0.311845] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.312608] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.313371] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.314135] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.314897] 00000300: 00000000 00000000 00000000 00000000 00000000 00000000 00003333 0000c333
[    0.315660] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.316422] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.317184] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.317946] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.318708] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.319469] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.320231] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.320994] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.321756] 00000420: 00000000 00000000 00000002 00000002 00000002 00000000 00000000 00000000
[    0.322518] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.323280] 00000460: 00000000 00000000 00000400 00000000 000002a0 00000000 00000000 00000000
[    0.324042] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.324804] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.325566] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.326328] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.327091] 00000500: 00040020 00000000 00040020 00000000 00040020 00000000 00040020 00000000
[    0.327856] 00000520: 00040020 00000000 00040020 00000000 00040020 00000000 00040020 00000000
[    0.328619] 00000540: 00040020 00000000 00040020 00000000 00000000 00000000 00000000 00000000
[    0.329382] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.330138] 00000580: 00000004 00000000
[    0.330485] PMU:
[    0.330669] 00000000: 03003566 00000e0c 00000000 00000000 00000000 00000000 00000000 00000000
[    0.331433] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.332195] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.332958] 00000060: 00000006 00000000 00000006 00000000 0000ffff 0000000f 00000000 00000000
[    0.333721] 00000080: 00000000 00000000 00000000 00000002 00000000 00000000 00000001 00000000
[    0.334484] 000000a0: 00000001 00000000 00000003 00000000 00000000 00000000 00000000 00000000
[    0.335246] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.336010] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.338596] ---[ end Kernel panic - not syncing: panic_on_set_idle set ... ]---

I’ve also noted that when booting frank-w’s 6.1-main or 6.3-main kernel builds, everything works correctly except for the WAN port, which detects a link when a cable is plugged in but neither sends nor receives any data (the four ports on the MT7531 work fine). Could the issues I’ve been having all stem from a pmu problem, or am I better off treating them independently?

1 Like

Update: So, I acquired a SanDisk microSD card https://www.westerndigital.com/products/memory-cards/sandisk-extreme-uhs-i-microsd#SDSQXAH-064G-GN6MA and it did not produce different behaviour: I’m still getting ‘mmc1: error -84 whilst initialising MMC card’ and the kernel is unable to find the root partition. Unfortunately, I’m coming to the conclusion that my board is (somewhat) a lemon.

If i understand correctly, the mmc-issue is only with image/kernel from sinovoip and works with “mine” (nearly mainline),right?

And my kernel has issues with wan-port? Do you get any error/warning/info about it or only no traffic? What does ethtool say?

Hi Frank,

No, I can’t boot anything from the SD card (u-boot sees it though), but only “your” kernel gets far enough into the boot to attempt mounting the rootfs.

When booting (any of) the sinovoip images, they don’t even get to the point of trying to mount the rootfs. They fail early on with:

[    0.267953] rockchip-pm-domain fdd90000.power-management:power-controller: failed to get ack on domain 'npu', target_idle = 0, target_ack = 0, val=0x6
[    0.267976] Kernel panic - lnot syncing: panic_on_set_idle set ...

whether I’m booting either from the SD card or the eMMC.

I should mention that I tried using your build script from BPI-Router-Images and writing that image to the emmc, but u-boot fails to find bpi-r2pro.itb (it’s not in the BPI-BOOT partition). This is the output:

U-Boot 2023.07-rc4-bpi (Jun 26 2023 - 15:13:48 +0000)

Model: Rockchip RK3568 EVB1 DDR4 V10 Board
DRAM:  2 GiB
Core:  300 devices, 22 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Rockchip RK3568 EVB1 DDR4 V10 Board
can't get vref-supply: -121
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
** Bad device specification mmc 1 **
Boot from eMMC
file not found
Card did not respond to voltage select! : -110
Failed to load EFI variables

  *** U-Boot Boot Menu ***

      1. Boot from SD/EMMC.
      mmc 0:2
      mmc 0:3
      U-Boot consoleHit any key to stop autoboot: 2 Hit any key to stop autoboot: 1

  Press UP/DOWN to move, ENTER to select, ESC to quit
## Error: "initrd" not defined
fit=bpi-r2pro.itb
Failed to load 'bpi-r2pro.itb'
BPI-R2PRO>

I’m not very familiar with U-Boot, but it looks like the u-boot image being used doesn’t have support for the sysboot command (typing ‘help’ at the prompt doesn’t list it) and/or doesn’t have a uEnv.txt baked in that searches for/boots an extlinux/extlinux.conf file. So I built u-boot from your 2023-04-bpi-r2p branch and put that on an SD card to boot your BPI-Router-Images image off the mmc (6.1, jammy).

All this to say I’m able to circumvent the SD card issue I’m having while still booting the unmodified image created with your buildimg.sh script. If I use any of the ports on eth1 (lan0, lan1, lan2, lan3), they work just fine, I can configure the lanbr0 interface and connect to the internet. But the wan interface (renamed from eth0) is down on system startup, and bringing it up with

ip link set wan up

causes it to only able to receive packets (tshark confirms this), not transmit them. I don’t see any errors or warnings in the logs.

# grep fe010000 /var/log/dmesg

[    2.185893] kernel: rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
[    2.186719] kernel: rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply from device tree
[    2.187469] kernel: rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply property in node /ethernet@fe010000 failed
[    2.188388] kernel: rk_gmac-dwmac fe010000.ethernet: supply phy not found, using dummy regulator
[    2.189299] kernel: rk_gmac-dwmac fe010000.ethernet: clock input or output? (output).
[    2.189940] kernel: rk_gmac-dwmac fe010000.ethernet: TX delay(0x3c).
[    2.190448] kernel: rk_gmac-dwmac fe010000.ethernet: RX delay(0x2f).
[    2.190989] kernel: rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
[    2.196627] kernel: rk_gmac-dwmac fe010000.ethernet: init for RGMII
[    2.197467] kernel: rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    2.198113] kernel: rk_gmac-dwmac fe010000.ethernet:         DWMAC4/5
[    2.198576] kernel: rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
[    2.199273] kernel: rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
[    2.199936] kernel: rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
[    2.200557] kernel: rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
[    2.201210] kernel: rk_gmac-dwmac fe010000.ethernet: TSO supported
[    2.201702] kernel: rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    2.202412] kernel: rk_gmac-dwmac fe010000.ethernet: Enabled RFS Flow TC (entries=10)
[    2.203072] kernel: rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
[    2.203611] kernel: rk_gmac-dwmac fe010000.ethernet: Using 32/32 bits DMA host/device width
[   15.093224] kernel: rk_gmac-dwmac fe010000.ethernet wan: renamed from eth0

# ip link set wan up

# grep fe010000 /var/log/kern.log

Jun 27 01:38:01 bpi-r2pro kernel: [  257.235561] rk_gmac-dwmac fe010000.ethernet wan: Register MEM_TYPE_PAGE_POOL RxQ-0
Jun 27 01:38:01 bpi-r2pro kernel: [  257.236675] rk_gmac-dwmac fe010000.ethernet wan: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
Jun 27 01:38:01 bpi-r2pro kernel: [  257.242921] rk_gmac-dwmac fe010000.ethernet wan: No Safety Features support found
Jun 27 01:38:01 bpi-r2pro kernel: [  257.242948] rk_gmac-dwmac fe010000.ethernet wan: IEEE 1588-2008 Advanced Timestamp supported
Jun 27 01:38:01 bpi-r2pro kernel: [  257.243199] rk_gmac-dwmac fe010000.ethernet wan: registered PTP clock
Jun 27 01:38:01 bpi-r2pro kernel: [  257.243756] rk_gmac-dwmac fe010000.ethernet wan: configuring for phy/rgmii link mode
Jun 27 01:38:03 bpi-r2pro kernel: [  259.303728] rk_gmac-dwmac fe010000.ethernet wan: Link is Up - 100Mbps/Full - flow control rx/tx

# ethtool wan

Settings for wan:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: MII
        PHYAD: 0
        Transceiver: external
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes

# ethtool -i wan

driver: st_gmac
version: 6.1.34-bpi-r2pro-main
firmware-version:
expansion-rom-version:
bus-info:
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

# ethtool -S wan

NIC statistics:
     mmc_tx_octetcount_gb: 854
     mmc_tx_framecount_gb: 7
     mmc_tx_broadcastframe_g: 0
     mmc_tx_multicastframe_g: 0
     mmc_tx_64_octets_gb: 0
     mmc_tx_65_to_127_octets_gb: 0
     mmc_tx_128_to_255_octets_gb: 0
     mmc_tx_256_to_511_octets_gb: 0
     mmc_tx_512_to_1023_octets_gb: 0
     mmc_tx_1024_to_max_octets_gb: 0
     mmc_tx_unicast_gb: 0
     mmc_tx_multicast_gb: 0
     mmc_tx_broadcast_gb: 0
     mmc_tx_underflow_error: 0
     mmc_tx_singlecol_g: 0
     mmc_tx_multicol_g: 0
     mmc_tx_deferred: 0
     mmc_tx_latecol: 0
     mmc_tx_exesscol: 0
     mmc_tx_carrier_error: 0
     mmc_tx_octetcount_g: 854
     mmc_tx_framecount_g: 7
     mmc_tx_excessdef: 0
     mmc_tx_pause_frame: 0
     mmc_tx_vlan_frame_g: 0
     mmc_rx_framecount_gb: 131
     mmc_rx_octetcount_gb: 13875
     mmc_rx_octetcount_g: 13875
     mmc_rx_broadcastframe_g: 0
     mmc_rx_multicastframe_g: 53
     mmc_rx_crc_error: 0
     mmc_rx_align_error: 0
     mmc_rx_run_error: 0
     mmc_rx_jabber_error: 0
     mmc_rx_undersize_g: 0
     mmc_rx_oversize_g: 0
     mmc_rx_64_octets_gb: 0
     mmc_rx_65_to_127_octets_gb: 0
     mmc_rx_128_to_255_octets_gb: 0
     mmc_rx_256_to_511_octets_gb: 0
     mmc_rx_512_to_1023_octets_gb: 0
     mmc_rx_1024_to_max_octets_gb: 0
     mmc_rx_unicast_g: 0
     mmc_rx_length_error: 0
     mmc_rx_autofrangetype: 0
     mmc_rx_pause_frames: 0
     mmc_rx_fifo_overflow: 0
     mmc_rx_vlan_frames_gb: 0
     mmc_rx_watchdog_error: 0
     mmc_rx_ipc_intr_mask: 708979299
     mmc_rx_ipc_intr: 0
     mmc_rx_ipv4_gd: 103
     mmc_rx_ipv4_hderr: 0
     mmc_rx_ipv4_nopay: 0
     mmc_rx_ipv4_frag: 0
     mmc_rx_ipv4_udsbl: 0
     mmc_rx_ipv4_gd_octets: 0
     mmc_rx_ipv4_hderr_octets: 0
     mmc_rx_ipv4_nopay_octets: 0
     mmc_rx_ipv4_frag_octets: 0
     mmc_rx_ipv4_udsbl_octets: 0
     mmc_rx_ipv6_gd_octets: 0
     mmc_rx_ipv6_hderr_octets: 0
     mmc_rx_ipv6_nopay_octets: 0
     mmc_rx_ipv6_gd: 1
     mmc_rx_ipv6_hderr: 0
     mmc_rx_ipv6_nopay: 0
     mmc_rx_udp_gd: 0
     mmc_rx_udp_err: 0
     mmc_rx_tcp_gd: 0
     mmc_rx_tcp_err: 0
     mmc_rx_icmp_gd: 0
     mmc_rx_icmp_err: 0
     mmc_rx_udp_gd_octets: 0
     mmc_rx_udp_err_octets: 0
     mmc_rx_tcp_gd_octets: 0
     mmc_rx_tcp_err_octets: 0
     mmc_rx_icmp_gd_octets: 0
     mmc_rx_icmp_err_octets: 0
     mmc_tx_fpe_fragment_cntr: 0
     mmc_tx_hold_req_cntr: 0
     mmc_rx_packet_assembly_err_cntr: 0
     mmc_rx_packet_smd_err_cntr: 0
     mmc_rx_packet_assembly_ok_cntr: 0
     mmc_rx_fpe_fragment_cntr: 0
     tx_underflow: 0
     tx_carrier: 0
     tx_losscarrier: 0
     vlan_tag: 0
     tx_deferred: 0
     tx_vlan: 0
     tx_jabber: 0
     tx_frame_flushed: 0
     tx_payload_error: 0
     tx_ip_header_error: 0
     rx_desc: 0
     sa_filter_fail: 0
     overflow_error: 0
     ipc_csum_error: 0
     rx_collision: 0
     rx_crc_errors: 0
     dribbling_bit: 0
     rx_length: 0
     rx_mii: 0
     rx_multicast: 0
     rx_gmac_overflow: 0
     rx_watchdog: 0
     da_rx_filter_fail: 0
     sa_rx_filter_fail: 0
     rx_missed_cntr: 0
     rx_overflow_cntr: 0
     rx_vlan: 0
     rx_split_hdr_pkt_n: 0
     tx_undeflow_irq: 0
     tx_process_stopped_irq: 0
     tx_jabber_irq: 0
     rx_overflow_irq: 0
     rx_buf_unav_irq: 0
     rx_process_stopped_irq: 0
     rx_watchdog_irq: 0
     tx_early_irq: 0
     fatal_bus_error_irq: 0
     rx_early_irq: 0
     threshold: 1
     tx_pkt_n: 7
     rx_pkt_n: 131
     normal_irq_n: 117
     rx_normal_irq_n: 117
     napi_poll: 241
     tx_normal_irq_n: 0
     tx_clean: 124
     tx_set_ic_bit: 0
     irq_receive_pmt_irq_n: 0
     mmc_tx_irq_n: 0
     mmc_rx_irq_n: 0
     mmc_rx_csum_offload_irq_n: 0
     irq_tx_path_in_lpi_mode_n: 0
     irq_tx_path_exit_lpi_mode_n: 0
     irq_rx_path_in_lpi_mode_n: 0
     irq_rx_path_exit_lpi_mode_n: 0
     phy_eee_wakeup_error_n: 0
     ip_hdr_err: 0
     ip_payload_err: 0
     ip_csum_bypassed: 27
     ipv4_pkt_rcvd: 103
     ipv6_pkt_rcvd: 1
     no_ptp_rx_msg_type_ext: 131
     ptp_rx_msg_type_sync: 0
     ptp_rx_msg_type_follow_up: 0
     ptp_rx_msg_type_delay_req: 0
     ptp_rx_msg_type_delay_resp: 0
     ptp_rx_msg_type_pdelay_req: 0
     ptp_rx_msg_type_pdelay_resp: 0
     ptp_rx_msg_type_pdelay_follow_up: 0
     ptp_rx_msg_type_announce: 0
     ptp_rx_msg_type_management: 0
     ptp_rx_msg_pkt_reserved_type: 0
     ptp_frame_type: 0
     ptp_ver: 0
     timestamp_dropped: 0
     av_pkt_rcvd: 0
     av_tagged_pkt_rcvd: 0
     vlan_tag_priority_val: 0
     l3_filter_match: 0
     l4_filter_match: 0
     l3_l4_filter_no_match: 0
     irq_pcs_ane_n: 0
     irq_pcs_link_n: 0
     irq_rgmii_n: 0
     mtl_tx_status_fifo_full: 0
     mtl_tx_fifo_not_empty: 0
     mmtl_fifo_ctrl: 0
     mtl_tx_fifo_read_ctrl_write: 0
     mtl_tx_fifo_read_ctrl_wait: 0
     mtl_tx_fifo_read_ctrl_read: 0
     mtl_tx_fifo_read_ctrl_idle: 0
     mac_tx_in_pause: 0
     mac_tx_frame_ctrl_xfer: 0
     mac_tx_frame_ctrl_idle: 0
     mac_tx_frame_ctrl_wait: 0
     mac_tx_frame_ctrl_pause: 0
     mac_gmii_tx_proto_engine: 0
     mtl_rx_fifo_fill_level_full: 0
     mtl_rx_fifo_fill_above_thresh: 0
     mtl_rx_fifo_fill_below_thresh: 0
     mtl_rx_fifo_fill_level_empty: 0
     mtl_rx_fifo_read_ctrl_flush: 0
     mtl_rx_fifo_read_ctrl_read_data: 0
     mtl_rx_fifo_read_ctrl_status: 0
     mtl_rx_fifo_read_ctrl_idle: 0
     mtl_rx_fifo_ctrl_active: 0
     mac_rx_frame_ctrl_fifo: 0
     mac_gmii_rx_proto_engine: 0
     tx_tso_frames: 0
     tx_tso_nfrags: 0
     mtl_est_cgce: 0
     mtl_est_hlbs: 0
     mtl_est_hlbf: 0
     mtl_est_btre: 0
     mtl_est_btrlm: 0
     q0_tx_pkt_n: 7
     q0_tx_irq_n: 0
     q0_rx_pkt_n: 131
     q0_rx_irq_n: 117

Using my own debootstrap’d rootfs with either 6.1-main or 6.3-main and netplan yields the same behaviour, although I don’t need to bring the interface up manually.

I’m a bit out of my depth with this issue (and I’m fairly new to systemd-networkd), so I apologize in advance if I’ve missed something obvious.

Last uboot versions had a change with sysboot,maybe i missed a config option for it,but i wanted to switch to builtin-environment like the other bpi-routers. But it was not ready yet.

BPI-Router images was also an unready project where i’m still fixing build errors and not yet tested resulting images.

What i see is that your link-partner only advertise 100mbit/s so maybe this is the cause so you run at 100mbit,maybe there is a bug in ethernet driver with this mode…could you check if traffic goes through with an 1g link partner?

The u-boot and BPI-Router-Images issues don’t bother me as long as I can workaround them, which I can.

The same behaviour occurs connected to a 1 Gbps link partner.

# ip link set wan up

# grep fe010000 /var/log/kern.log

Jun 27 01:34:01 bpi-r2pro kernel: [    2.186344] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
Jun 27 01:34:01 bpi-r2pro kernel: [    2.187160] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply from device tree
Jun 27 01:34:01 bpi-r2pro kernel: [    2.187911] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply property in node /ethernet@fe010000 failed
Jun 27 01:34:01 bpi-r2pro kernel: [    2.188827] rk_gmac-dwmac fe010000.ethernet: supply phy not found, using dummy regulator
Jun 27 01:34:01 bpi-r2pro kernel: [    2.189806] rk_gmac-dwmac fe010000.ethernet: clock input or output? (output).
Jun 27 01:34:01 bpi-r2pro kernel: [    2.190448] rk_gmac-dwmac fe010000.ethernet: TX delay(0x3c).
Jun 27 01:34:01 bpi-r2pro kernel: [    2.190955] rk_gmac-dwmac fe010000.ethernet: RX delay(0x2f).
Jun 27 01:34:01 bpi-r2pro kernel: [    2.191503] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
Jun 27 01:34:01 bpi-r2pro kernel: [    2.197153] rk_gmac-dwmac fe010000.ethernet: init for RGMII
Jun 27 01:34:01 bpi-r2pro kernel: [    2.198027] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
Jun 27 01:34:01 bpi-r2pro kernel: [    2.198671] rk_gmac-dwmac fe010000.ethernet:       DWMAC4/5
Jun 27 01:34:01 bpi-r2pro kernel: [    2.199134] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
Jun 27 01:34:01 bpi-r2pro kernel: [    2.199831] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
Jun 27 01:34:01 bpi-r2pro kernel: [    2.200494] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
Jun 27 01:34:01 bpi-r2pro kernel: [    2.201117] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
Jun 27 01:34:01 bpi-r2pro kernel: [    2.201781] rk_gmac-dwmac fe010000.ethernet: TSO supported
Jun 27 01:34:01 bpi-r2pro kernel: [    2.202273] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
Jun 27 01:34:01 bpi-r2pro kernel: [    2.202983] rk_gmac-dwmac fe010000.ethernet: Enabled RFS Flow TC (entries=10)
Jun 27 01:34:01 bpi-r2pro kernel: [    2.203644] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
Jun 27 01:34:01 bpi-r2pro kernel: [    2.204183] rk_gmac-dwmac fe010000.ethernet: Using 32/32 bits DMA host/device width
Jun 27 01:34:01 bpi-r2pro kernel: [   15.068998] rk_gmac-dwmac fe010000.ethernet wan: renamed from eth0
Jun 27 01:34:16 bpi-r2pro kernel: [   32.723399] rk_gmac-dwmac fe010000.ethernet wan: Register MEM_TYPE_PAGE_POOL RxQ-0
Jun 27 01:34:16 bpi-r2pro kernel: [   32.724530] rk_gmac-dwmac fe010000.ethernet wan: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
Jun 27 01:34:16 bpi-r2pro kernel: [   32.724575] rk_gmac-dwmac fe010000.ethernet wan: No Safety Features support found
Jun 27 01:34:16 bpi-r2pro kernel: [   32.724599] rk_gmac-dwmac fe010000.ethernet wan: IEEE 1588-2008 Advanced Timestamp supported
Jun 27 01:34:16 bpi-r2pro kernel: [   32.724895] rk_gmac-dwmac fe010000.ethernet wan: registered PTP clock
Jun 27 01:34:16 bpi-r2pro kernel: [   32.725316] rk_gmac-dwmac fe010000.ethernet wan: configuring for phy/rgmii link mode
Jun 27 01:34:20 bpi-r2pro kernel: [   36.839452] rk_gmac-dwmac fe010000.ethernet wan: Link is Up - 1Gbps/Full - flow control off

# ethtool wan

Settings for wan:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: MII
        PHYAD: 0
        Transceiver: external
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes

# ethtool -S wan

NIC statistics:
     mmc_tx_octetcount_gb: 1110
     mmc_tx_framecount_gb: 11
     mmc_tx_broadcastframe_g: 0
     mmc_tx_multicastframe_g: 0
     mmc_tx_64_octets_gb: 0
     mmc_tx_65_to_127_octets_gb: 0
     mmc_tx_128_to_255_octets_gb: 0
     mmc_tx_256_to_511_octets_gb: 0
     mmc_tx_512_to_1023_octets_gb: 0
     mmc_tx_1024_to_max_octets_gb: 0
     mmc_tx_unicast_gb: 0
     mmc_tx_multicast_gb: 0
     mmc_tx_broadcast_gb: 0
     mmc_tx_underflow_error: 0
     mmc_tx_singlecol_g: 0
     mmc_tx_multicol_g: 0
     mmc_tx_deferred: 0
     mmc_tx_latecol: 0
     mmc_tx_exesscol: 0
     mmc_tx_carrier_error: 0
     mmc_tx_octetcount_g: 1110
     mmc_tx_framecount_g: 11
     mmc_tx_excessdef: 0
     mmc_tx_pause_frame: 0
     mmc_tx_vlan_frame_g: 0
     mmc_rx_framecount_gb: 282
     mmc_rx_octetcount_gb: 42482
     mmc_rx_octetcount_g: 42482
     mmc_rx_broadcastframe_g: 0
     mmc_rx_multicastframe_g: 90
     mmc_rx_crc_error: 0
     mmc_rx_align_error: 0
     mmc_rx_run_error: 0
     mmc_rx_jabber_error: 0
     mmc_rx_undersize_g: 0
     mmc_rx_oversize_g: 0
     mmc_rx_64_octets_gb: 0
     mmc_rx_65_to_127_octets_gb: 0
     mmc_rx_128_to_255_octets_gb: 0
     mmc_rx_256_to_511_octets_gb: 0
     mmc_rx_512_to_1023_octets_gb: 0
     mmc_rx_1024_to_max_octets_gb: 0
     mmc_rx_unicast_g: 0
     mmc_rx_length_error: 0
     mmc_rx_autofrangetype: 0
     mmc_rx_pause_frames: 0
     mmc_rx_fifo_overflow: 0
     mmc_rx_vlan_frames_gb: 0
     mmc_rx_watchdog_error: 0
     mmc_rx_ipc_intr_mask: 708979299
     mmc_rx_ipc_intr: 0
     mmc_rx_ipv4_gd: 227
     mmc_rx_ipv4_hderr: 0
     mmc_rx_ipv4_nopay: 0
     mmc_rx_ipv4_frag: 0
     mmc_rx_ipv4_udsbl: 0
     mmc_rx_ipv4_gd_octets: 0
     mmc_rx_ipv4_hderr_octets: 0
     mmc_rx_ipv4_nopay_octets: 0
     mmc_rx_ipv4_frag_octets: 0
     mmc_rx_ipv4_udsbl_octets: 0
     mmc_rx_ipv6_gd_octets: 0
     mmc_rx_ipv6_hderr_octets: 0
     mmc_rx_ipv6_nopay_octets: 0
     mmc_rx_ipv6_gd: 3
     mmc_rx_ipv6_hderr: 0
     mmc_rx_ipv6_nopay: 0
     mmc_rx_udp_gd: 0
     mmc_rx_udp_err: 0
     mmc_rx_tcp_gd: 0
     mmc_rx_tcp_err: 0
     mmc_rx_icmp_gd: 0
     mmc_rx_icmp_err: 0
     mmc_rx_udp_gd_octets: 0
     mmc_rx_udp_err_octets: 0
     mmc_rx_tcp_gd_octets: 0
     mmc_rx_tcp_err_octets: 0
     mmc_rx_icmp_gd_octets: 0
     mmc_rx_icmp_err_octets: 0
     mmc_tx_fpe_fragment_cntr: 0
     mmc_tx_hold_req_cntr: 0
     mmc_rx_packet_assembly_err_cntr: 0
     mmc_rx_packet_smd_err_cntr: 0
     mmc_rx_packet_assembly_ok_cntr: 0
     mmc_rx_fpe_fragment_cntr: 0
     tx_underflow: 0
     tx_carrier: 0
     tx_losscarrier: 0
     vlan_tag: 0
     tx_deferred: 0
     tx_vlan: 0
     tx_jabber: 0
     tx_frame_flushed: 0
     tx_payload_error: 0
     tx_ip_header_error: 0
     rx_desc: 0
     sa_filter_fail: 0
     overflow_error: 0
     ipc_csum_error: 0
     rx_collision: 0
     rx_crc_errors: 0
     dribbling_bit: 0
     rx_length: 0
     rx_mii: 0
     rx_multicast: 0
     rx_gmac_overflow: 0
     rx_watchdog: 0
     da_rx_filter_fail: 0
     sa_rx_filter_fail: 0
     rx_missed_cntr: 0
     rx_overflow_cntr: 0
     rx_vlan: 0
     rx_split_hdr_pkt_n: 0
     tx_undeflow_irq: 0
     tx_process_stopped_irq: 0
     tx_jabber_irq: 0
     rx_overflow_irq: 0
     rx_buf_unav_irq: 0
     rx_process_stopped_irq: 0
     rx_watchdog_irq: 0
     tx_early_irq: 0
     fatal_bus_error_irq: 0
     rx_early_irq: 0
     threshold: 1
     tx_pkt_n: 11
     rx_pkt_n: 282
     normal_irq_n: 235
     rx_normal_irq_n: 235
     napi_poll: 481
     tx_normal_irq_n: 0
     tx_clean: 246
     tx_set_ic_bit: 0
     irq_receive_pmt_irq_n: 0
     mmc_tx_irq_n: 0
     mmc_rx_irq_n: 0
     mmc_rx_csum_offload_irq_n: 0
     irq_tx_path_in_lpi_mode_n: 0
     irq_tx_path_exit_lpi_mode_n: 0
     irq_rx_path_in_lpi_mode_n: 0
     irq_rx_path_exit_lpi_mode_n: 0
     phy_eee_wakeup_error_n: 0
     ip_hdr_err: 0
     ip_payload_err: 0
     ip_csum_bypassed: 52
     ipv4_pkt_rcvd: 227
     ipv6_pkt_rcvd: 3
     no_ptp_rx_msg_type_ext: 282
     ptp_rx_msg_type_sync: 0
     ptp_rx_msg_type_follow_up: 0
     ptp_rx_msg_type_delay_req: 0
     ptp_rx_msg_type_delay_resp: 0
     ptp_rx_msg_type_pdelay_req: 0
     ptp_rx_msg_type_pdelay_resp: 0
     ptp_rx_msg_type_pdelay_follow_up: 0
     ptp_rx_msg_type_announce: 0
     ptp_rx_msg_type_management: 0
     ptp_rx_msg_pkt_reserved_type: 0
     ptp_frame_type: 0
     ptp_ver: 0
     timestamp_dropped: 0
     av_pkt_rcvd: 0
     av_tagged_pkt_rcvd: 0
     vlan_tag_priority_val: 0
     l3_filter_match: 0
     l4_filter_match: 0
     l3_l4_filter_no_match: 0
     irq_pcs_ane_n: 0
     irq_pcs_link_n: 0
     irq_rgmii_n: 0
     mtl_tx_status_fifo_full: 0
     mtl_tx_fifo_not_empty: 0
     mmtl_fifo_ctrl: 0
     mtl_tx_fifo_read_ctrl_write: 0
     mtl_tx_fifo_read_ctrl_wait: 0
     mtl_tx_fifo_read_ctrl_read: 0
     mtl_tx_fifo_read_ctrl_idle: 0
     mac_tx_in_pause: 0
     mac_tx_frame_ctrl_xfer: 0
     mac_tx_frame_ctrl_idle: 0
     mac_tx_frame_ctrl_wait: 0
     mac_tx_frame_ctrl_pause: 0
     mac_gmii_tx_proto_engine: 0
     mtl_rx_fifo_fill_level_full: 0
     mtl_rx_fifo_fill_above_thresh: 0
     mtl_rx_fifo_fill_below_thresh: 0
     mtl_rx_fifo_fill_level_empty: 0
     mtl_rx_fifo_read_ctrl_flush: 0
     mtl_rx_fifo_read_ctrl_read_data: 0
     mtl_rx_fifo_read_ctrl_status: 0
     mtl_rx_fifo_read_ctrl_idle: 0
     mtl_rx_fifo_ctrl_active: 0
     mac_rx_frame_ctrl_fifo: 0
     mac_gmii_rx_proto_engine: 0
     tx_tso_frames: 0
     tx_tso_nfrags: 0
     mtl_est_cgce: 0
     mtl_est_hlbs: 0
     mtl_est_hlbf: 0
     mtl_est_btre: 0
     mtl_est_btrlm: 0
     q0_tx_pkt_n: 11
     q0_tx_irq_n: 0
     q0_rx_pkt_n: 282
     q0_rx_irq_n: 235

Pinging the R2 Pro’s wan port from the link partner with tshark running on the R2 Pro shows that it receives the ARP request and responds to it, but that’s never received at the other end.

yes, the itb was missing in the bpi-r2pro_6.1.*-main.tar.gz because of missing variable assignment in build.sh (prepare_SD) for r2pro…i uploaded fix for it to 6.4-main (maybe not r2pro-ready) and 6.1-main (CI-pipeline needs ~1h to build)

mhm, strange…in tar.gz uploaded by ci it is still missing :frowning: - its and some changes to build.sh were missing…pushed it and put itb on my card…also added sysboot to uboot defconfig

now i am on same state as you…

i see emergency mode where rootfs seems mounted…but this is from root-var in cmdline…fstab is wrongly set to mmcblk1 (0 seems to be SD card).

wonder about strange interface naming…

[    8.219075] rk_gmac-dwmac fe2a0000.ethernet end0: renamed from eth1          

and yes wan seems not to work…looks like something has changed in ethernet-driver

root@bpi-r2pro:~# ip -s link show end0                                          
3: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP mode DEFAU
LT group default qlen 1000                                                      
    link/ether 76:95:00:96:b3:88 brd ff:ff:ff:ff:ff:ff                          
    RX:  bytes packets errors dropped  missed   mcast                           
             0       0      0       0       0       0                           
    TX:  bytes packets errors dropped carrier collsns                           
          3620      29      0       0       0       0

lanports seems also not working ;(

Probably this:

PredictableNetworkInterfaceNames (www.freedesktop.org)

i know predictable netnames from ubuntu, but endX is new to me

root@bpi-r2pro:~# dmesg | grep 'eth\|mt75'                                      
[    0.000000] psci: probing for conduit method from DT.                        
[    3.106762] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found           
[    3.107608] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply from devic
e tree                                                                          
[    3.108334] rk_gmac-dwmac fe010000.ethernet: Looking up phy-supply property i
n node /ethernet@fe010000 failed                                                
[    3.109310] rk_gmac-dwmac fe010000.ethernet: supply phy not found, using dumm
y regulator                                                                     
[    3.110279] rk_gmac-dwmac fe010000.ethernet: clock input or output? (output).
[    3.110938] rk_gmac-dwmac fe010000.ethernet: TX delay(0x3c).                 
[    3.111460] rk_gmac-dwmac fe010000.ethernet: RX delay(0x2f).                 
[    3.111990] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).           
[    3.117648] rk_gmac-dwmac fe010000.ethernet: init for RGMII                  
[    3.118508] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    3.119170] rk_gmac-dwmac fe010000.ethernet:         DWMAC4/5                
[    3.119647] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register suppo
rted                                                                            
[    3.120326] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine suppo
rted                                                                            
[    3.121041] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported 
[    3.121682] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported        
[    3.122352] rk_gmac-dwmac fe010000.ethernet: TSO supported                   
[    3.122858] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watc
hdog Timer                                                                      
[    3.123585] rk_gmac-dwmac fe010000.ethernet: Enabled RFS Flow TC (entries=10)
[    3.124233] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled             
[    3.124811] rk_gmac-dwmac fe010000.ethernet: Using 32/32 bits DMA host/device
 width                                                                          
[    3.264834] rk_gmac-dwmac fe2a0000.ethernet: IRQ eth_lpi not found           
[    3.265870] rk_gmac-dwmac fe2a0000.ethernet: Looking up phy-supply from devic
e tree                                                                          
[    3.266616] rk_gmac-dwmac fe2a0000.ethernet: Looking up phy-supply property i
n node /ethernet@fe2a0000 failed                                                
[    3.267550] rk_gmac-dwmac fe2a0000.ethernet: supply phy not found, using dumm
y regulator                                                                     
[    3.268473] rk_gmac-dwmac fe2a0000.ethernet: clock input or output? (input). 
[    3.269162] rk_gmac-dwmac fe2a0000.ethernet: TX delay(0x4f).                 
[    3.269687] rk_gmac-dwmac fe2a0000.ethernet: RX delay(0xf).                  
[    3.270208] rk_gmac-dwmac fe2a0000.ethernet: integrated PHY? (no).           
[    3.270841] rk_gmac-dwmac fe2a0000.ethernet: clock input from PHY            
[    3.276412] rk_gmac-dwmac fe2a0000.ethernet: init for RGMII                  
[    3.277321] rk_gmac-dwmac fe2a0000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    3.277984] rk_gmac-dwmac fe2a0000.ethernet:         DWMAC4/5                
[    3.278460] rk_gmac-dwmac fe2a0000.ethernet: DMA HW capability register suppo
rted                                                                            
[    3.279139] rk_gmac-dwmac fe2a0000.ethernet: RX Checksum Offload Engine suppo
rted                                                                            
[    3.279815] rk_gmac-dwmac fe2a0000.ethernet: TX Checksum insertion supported 
[    3.280452] rk_gmac-dwmac fe2a0000.ethernet: Wake-Up On Lan supported        
[    3.281159] rk_gmac-dwmac fe2a0000.ethernet: TSO supported                   
[    3.281669] rk_gmac-dwmac fe2a0000.ethernet: Enable RX Mitigation via HW Watc
hdog Timer                                                                      
[    3.282396] rk_gmac-dwmac fe2a0000.ethernet: Enabled RFS Flow TC (entries=10)
[    3.283045] rk_gmac-dwmac fe2a0000.ethernet: TSO feature enabled             
[    3.283592] rk_gmac-dwmac fe2a0000.ethernet: Using 32/32 bits DMA host/device
 width                                                                          
[    3.841674] mt7530 stmmac-0:00: no interrupt support                         
[    3.865216] mt7530 stmmac-0:00: configuring for fixed/rgmii link mode        
[    3.868528] mt7530 stmmac-0:00: Link is Up - 1Gbps/Full - flow control rx/tx 
[    3.912638] mt7530 stmmac-0:00 lan0 (uninitialized): PHY [mt7530-0:01] driver
 [MediaTek MT7531 PHY] (irq=POLL)                                               
[    3.965339] mt7530 stmmac-0:00 lan1 (uninitialized): PHY [mt7530-0:02] driver
 [MediaTek MT7531 PHY] (irq=POLL)                                               
[    4.016466] mt7530 stmmac-0:00 lan2 (uninitialized): PHY [mt7530-0:03] driver
 [MediaTek MT7531 PHY] (irq=POLL)                                               
[    4.067656] mt7530 stmmac-0:00 lan3 (uninitialized): PHY [mt7530-0:04] driver
 [MediaTek MT7531 PHY] (irq=POLL)                                               
[    8.189936] rk_gmac-dwmac fe010000.ethernet wan: renamed from eth0           
[    8.219075] rk_gmac-dwmac fe2a0000.ethernet end0: renamed from eth1          
[    8.459786] rk_gmac-dwmac fe2a0000.ethernet end0: Register MEM_TYPE_PAGE_POOL
 RxQ-0                                                                          
[    8.461696] rk_gmac-dwmac fe2a0000.ethernet end0: No Safety Features support 
found                                                                           
[    8.461727] rk_gmac-dwmac fe2a0000.ethernet end0: IEEE 1588-2008 Advanced Tim
estamp supported                                                                
[    8.465649] rk_gmac-dwmac fe2a0000.ethernet end0: registered PTP clock       
[    8.468525] rk_gmac-dwmac fe2a0000.ethernet end0: configuring for fixed/rgmii
 link mode                                                                      
[    8.469910] rk_gmac-dwmac fe2a0000.ethernet end0: Link is Up - 1Gbps/Full - f
low control rx/tx                                                               
[    8.473884] mt7530 stmmac-0:00 lan3: configuring for phy/gmii link mode      
[    8.484694] mt7530 stmmac-0:00 lan2: configuring for phy/gmii link mode      
[    8.494531] mt7530 stmmac-0:00 lan1: configuring for phy/gmii link mode      
[    8.503281] mt7530 stmmac-0:00 lan0: configuring for phy/gmii link mode      
[  571.739791] mt7530 stmmac-0:00 lan0: Link is Up - 1Gbps/Full - flow control r
x/tx

has anyone idea about network-issue here?

I have seen it on RK3288 before:

noticed that wan is still wan and not the end0-interface…end0 is the gmac for the switch…

wan is working for me on 6.1-main, but it needs manually ip and link-state-setup

root@bpi-r2pro:~# uname -a
Linux bpi-r2pro 6.1.34-bpi-r2pro-main #8 SMP PREEMPT Thu Jun 29 17:55:51 CEST 2023 aarch64 GNU/Linux
root@bpi-r2pro:~# ip a add 192.168.0.19/24 dev wan
root@bpi-r2pro:~# ip link set wan up
[   81.572930] rk_gmac-dwmac fe010000.ethernet wan: Register MEM_TYPE_PAGE_POOL RxQ-0
[   81.574700] rk_gmac-dwmac fe010000.ethernet wan: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
[   81.575521] dwmac4: Master AXI performs any burst length
[   81.576010] rk_gmac-dwmac fe010000.ethernet wan: No Safety Features support found
[   81.576736] rk_gmac-dwmac fe010000.ethernet wan: IEEE 1588-2008 Advanced Timestamp supported
[   81.577752] rk_gmac-dwmac fe010000.ethernet wan: registered PTP clock
[   81.578918] rk_gmac-dwmac fe010000.ethernet wan: configuring for phy/rgmii link mode
root@bpi-r2pro:~# ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
[   85.672495] rk_gmac-dwmac fe010000.ethernet wan: Link is Up - 1Gbps/Full - flow control rx/tx
[   85.673372] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
From 192.168.0.19 icmp_seq=1 Destination Host Unreachable
From 192.168.0.19 icmp_seq=2 Destination Host Unreachable
From 192.168.0.19 icmp_seq=3 Destination Host Unreachable
64 bytes from 192.168.0.10: icmp_seq=4 ttl=64 time=1025 ms
64 bytes from 192.168.0.10: icmp_seq=5 ttl=64 time=1.34 ms
64 bytes from 192.168.0.10: icmp_seq=6 ttl=64 time=0.812 ms
64 bytes from 192.168.0.10: icmp_seq=7 ttl=64 time=0.882 ms
64 bytes from 192.168.0.10: icmp_seq=8 ttl=64 time=0.864 ms
^C
--- 192.168.0.10 ping statistics ---
8 packets transmitted, 5 received, +3 errors, 37.5% packet loss, time 7101ms
rtt min/avg/max/mdev = 0.812/205.753/1024.869/409.557 ms, pipe 4
root@bpi-r2pro:~# 

was a bit too fast with ping :smiley:

and lan works too…i had assigned lan0 to lanbr0 and assigned ip to lan0 instead of the bridge…and bridge was not admin-down…

so i need to rework systemd-networkd for r2pro…all other is fine

Looks like it … just the BindCarrier=end0 you mean…

i prefer “net.ifnames=0” in cmdline :slight_smile:

This should also do the trick:

/etc/systemd/networkd/10-eth0.link:

[Match]
OriginalName=eth0

[Link]
NamePolicy=kernel
1 Like

i hope i addressed now all the problems with the buildimg :slight_smile:

@technocratik can you please pull my changes and generate a new image (deleting the bpi-r2pro.img.gz, bpi-r2pro_6.1.34-main.tar.gz and the bpi-r2pro_bookworm_6.1.img.gz)?

edit: btw. the systemd-file works (except it is “/etc/systemd/network” - no “d” after network), thx for it

I still can’t boot from the SD card, so I imaged to the emmc and dropped to the U-Boot console to change the root to mmcblk1p3:

BPI-R2PRO> setenv root /dev/mmcblk1p3 rootfstype=ext4 rootwait
BPI-R2PRO> boot

as well as modified fstab. Other than that the image booted correctly—no itb issues.

No dice on the wan interface in bookworm:

root@bpi-r2pro:~# uname -a
Linux bpi-r2pro 6.1.34-bpi-r2pro-main #5 SMP PREEMPT Thu Jun 29 15:35:08 UTC 2023 aarch64 GNU/Linux
root@bpi-r2pro:~# ip a add 192.168.31.2/24 dev wan
root@bpi-r2pro:~# ip link set wan up
root@bpi-r2pro:~# ping 192.168.31.1
PING 192.168.31.1 (192.168.31.1) 56(84) bytes of data.
From 192.168.31.2 icmp_seq=1 Destination Host Unreachable
From 192.168.31.2 icmp_seq=2 Destination Host Unreachable
From 192.168.31.2 icmp_seq=3 Destination Host Unreachable
From 192.168.31.2 icmp_seq=4 Destination Host Unreachable
From 192.168.31.2 icmp_seq=5 Destination Host Unreachable
From 192.168.31.2 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.31.1 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7161ms
pipe 4
root@bpi-r2pro:~#

and a packet capture on the other end confirms no data received. For reference, the (start of the) output from buildimg.sh was:

$ ./buildimg.sh bpi-r2pro bookworm
create image for bpi-r2pro (arm64) bookworm 6.1
board  : bpi-r2pro
kernel : 6.1
board:bpi-r2pro ubootfile: https://github.com/frank-w/u-boot/releases/download/CI-BUILD-2023-07-bpi-2023.07-rc4-2023-06-29_1650/bpi-r2pro.img.gz
board:bpi-r2pro kernelfile: https://github.com/frank-w/BPI-Router-Linux/releases/download/CI-BUILD-6.1-main-6.1.34-2023-06-29_1409/bpi-r2pro_6.1.34-main.tar.gz
ubootfile: https://github.com/frank-w/u-boot/releases/download/CI-BUILD-2023-07-bpi-2023.07-rc4-2023-06-29_1650/bpi-r2pro.img.gz filename: bpi-r2pro.img.gz
kernelfile: https://github.com/frank-w/BPI-Router-Linux/releases/download/CI-BUILD-6.1-main-6.1.34-2023-06-29_1409/bpi-r2pro_6.1.34-main.tar.gz filename: bpi-r2pro_6.1.34-main.tar.gz
image-file:bpi-r2pro.img.gz
kernel-file:bpi-r2pro_6.1.34-main.tar.gz
checking for needed packages...
$1:arm64
setting arch
$2:bookworm
isdebian:1,isubuntu:0
setting distro
create chroot 'debian bookworm' for arm64

I’ve also noticed that I’m sometimes having a clock issue with the eMMC where it gets set to 375 kHz (thus also limiting transfer rates). I’m really starting to lean heavily toward this being a hardware issue. Since the switch ports are working, I might just use the board with those, but I’m happy to do more testing if anyone has any ideas. Before giving up completely though, I’ll see if I can hook up the WAN port to an oscilloscope just to get see what the signals are on the TX pairs.

Is eth0 (end0) up? Make sure this is up, before setting wan up.