Booting 15.0 on Orange Pi RV2

From: Evgenii Ivanov <devivanov_at_proton.me>
Date: Tue, 27 May 2025 19:36:53 UTC
I've tried booting 15.0-Current memstick on the Orange Pi RV2 board, however it seems to result in a panic during boot. The board boots up on 14.2 but fails to mount root (expected), however there is no panic.
This chip seems to be a copy of the spacemit k1 chip after looking through the orange pi linux/u-boot drivers which are identical to those for banana pi f3 so the issue is probably present there as well.

Is there something I can try to figure out where this issue came from?

Thank you, logs attached below.

/ ______ ____ _____ _____
| ____| | _ \ / ____| __ \
| |___ _ __ ___ ___ | |_) | (___ | | | |
| ___| '__/ _ \/ _ \| _ < \___ \| | | |
| | | | | __/ __/| |_) |____) | |__| |
| | | | | | || | | |
|_| |_| \___|\___||____/|_____/|_____/

+-------- Welcome to FreeBSD ----------+ ``` `
| | s` `.....---.......--.``` -/
| 1. Boot Installer [Enter] | +o .--` /y:` +.
| 2. Boot Single user | yo`:. :o `+-
| 3. Escape to loader prompt | y/ -/` -o/
| 4. Reboot | .- ::/sy+:.
| 5. Cons: Video | / `-- /
| | `: :`
| Kernel: | `: :`
| 6. kernel (1 of 1) | / /
| | .- -.
| Options: | -- -.
| 7. Boot Options | `:` `:`
| | .-- `--.
+--------------------------------------+ .---.....----.

Exiting menu!

Type '?' for a list of commands, 'help' for more detailed help.
OK set console=comconsole
OK boot -v
Loading kernel...
/boot/kernel/kernel text=0x61b2f0 text=0x1ac79c data=0x129450 data=0xf60+0x287118 0x8+0x133338+0x8+0x11e239
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'
Using DTB provided by EFI at 0x7eed000.
Kernel entry at 0x75600030...
Kernel args: -v
Loading splash ok
EFI framebuffer information:
addr, size 0x7f700000, 0x7e9000
dimensions 1920 x 1080
stride 1920
masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
---<<BOOT>>---
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
Type Physical Virtual #Pages Attr
Reserved 000000000000 000000000000 00000080 WB
ConventionalMemory 000000080000 000000080000 00007e6d WB
ACPIReclaimMemory 000007eed000 000007eed000 00000026 WB
ConventionalMemory 000007f13000 000007f13000 0006d5d3 WB
BootServicesData 0000754e6000 0000754e6000 00000001 WB
LoaderCode 0000754e7000 0000754e7000 00004000 WB
LoaderData 0000794e7000 0000794e7000 000047ea WB
LoaderCode 00007dcd1000 00007dcd1000 000000ae WB
BootServicesData 00007dd7f000 00007dd7f000 00000008 WB
RuntimeServicesData 00007dd87000 00007dd87000 00000002 WB RUNTIME
BootServicesData 00007dd89000 00007dd89000 00000001 WB
RuntimeServicesData 00007dd8a000 00007dd8a000 00000002 WB RUNTIME
BootServicesData 00007dd8c000 00007dd8c000 00000001 WB
RuntimeServicesData 00007dd8d000 00007dd8d000 00000004 WB RUNTIME
BootServicesData 00007dd91000 00007dd91000 00000009 WB
LoaderData 00007dd9a000 00007dd9a000 00001114 WB
RuntimeServicesCode 00007eeae000 00007eeae000 00000001 WB RUNTIME
LoaderData 00007eeaf000 00007eeaf000 00000151 WB
BootServicesData 00007f000000 00007f000000 00001000 WB
BootServicesData 000100000000 000100000000 00080000 WB
Physical memory chunk(s):
0x00080000 - 0x7fffffff, 2047 MB ( 524160 pages)
0x100000000 - 0x17fffffff, 2048 MB ( 524288 pages)
Excluded memory regions:
0x07eed000 - 0x07f12fff, 0 MB ( 38 pages) NoAlloc
0x75600000 - 0x7661afff, 16 MB ( 4123 pages) NoAlloc
0x7dd87000 - 0x7dd88fff, 0 MB ( 2 pages) NoAlloc
0x7dd8a000 - 0x7dd8bfff, 0 MB ( 2 pages) NoAlloc
0x7dd8d000 - 0x7dd90fff, 0 MB ( 4 pages) NoAlloc
0x7eeae000 - 0x7eeaefff, 0 MB ( 1 pages) NoAlloc
Found 8 CPUs in the device tree
Copyright (c) 1992-2025 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 15.0-CURRENT #0 main-n277278-cb205f5ed808: Thu May 15 04:37:30 UTC 2025
root@releng3.nyi.freebsd.org:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC riscv
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 1920x1080
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffc000e45000.
Preloaded TSLOG data "TSLOG" at 0xffffffc000e4e428.
SBI: OpenSBI v1.3
SBI Specification Version: 1.0
CPU 0 : Vendor=Unknown Core=Unknown (Hart 0)
marchid=0x8000000058000001, mimpid=0x1000000049772200
MMU: 0x1<Sv39>
ISA: 0x112d<Atomic,Compressed,Double,Float,Mult/Div>
S-mode Extensions: 0
real memory = 4294443008 (4095 MB)
Physical memory chunk(s):
0x0000000000080000 - 0x0000000007eecfff, 132567040 bytes (32365 pages)
0x0000000007f13000 - 0x00000000755fffff, 1835978752 bytes (448237 pages)
0x000000007661b000 - 0x000000007dd86fff, 125222912 bytes (30572 pages)
0x000000007dd89000 - 0x000000007dd89fff, 4096 bytes (1 pages)
0x000000007dd8c000 - 0x000000007dd8cfff, 4096 bytes (1 pages)
0x000000007dd91000 - 0x000000007eeadfff, 17944576 bytes (4381 pages)
0x000000007eeaf000 - 0x000000007fffffff, 18157568 bytes (4433 pages)
0x0000000100000000 - 0x0000000179829fff, 2038603776 bytes (497706 pages)
avail memory = 4143943680 (3951 MB)
Starting CPU 1 (hart 1)
Starting CPU 2 (hart 2)
Starting CPU 3 (hart 3)
Starting CPU 4 (hart 4)
Starting CPU 5 (hart 5)
Starting CPU 6 (hart 6)
Starting CPU 7 (hart 7)
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
CPU 1 : Vendor=Unknown Core=Unknown (Hart 1)
CPU 2 : Vendor=Unknown Core=Unknown (Hart 2)
CPU 3 : Vendor=Unknown Core=Unknown (Hart 3)
CPU 4 : Vendor=Unknown Core=Unknown (Hart 4)
CPU 5 : Vendor=Unknown Core=Unknown (Hart 5)
CPU 6 : Vendor=Unknown Core=Unknown (Hart 6)
CPU 7 : Vendor=Unknown Core=Unknown (Hart 7)
random: no preloaded entropy cache
random: no platform bootloader entropy
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
VIMAGE (virtualized network stack) enabled
hostuuid: using 00000000-0000-0000-0000-000000000000
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ULE: setup cpu 3
ULE: setup cpu 4
ULE: setup cpu 5
ULE: setup cpu 6
ULE: setup cpu 7
random: entropy device external interface
kbd0 at kbdmux0
mem: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
tcp_log: tcp_log device
crypto: <crypto core>
ram0: reserving memory region: 80000-7eed000
ram0: reserving memory region: 7f13000-75600000
ram0: reserving memory region: 7661b000-7dd87000
ram0: reserving memory region: 7dd89000-7dd8a000
ram0: reserving memory region: 7dd8c000-7dd8d000
ram0: reserving memory region: 7dd91000-7eeae000
ram0: reserving memory region: 7eeaf000-80000000
ram0: reserving memory region: 100000000-180000000
ofwbus0: <Open Firmware Device Tree>
ofw_clkbus0: <OFW clocks bus> on ofwbus0
clk_fixed0: <Fixed clock> on ofw_clkbus0
Clock: vctcxo_24, parent: none, freq: 24000000
clk_fixed1: <Fixed clock> on ofw_clkbus0
Clock: vctcxo_3, parent: none, freq: 3000000
clk_fixed2: <Fixed clock> on ofw_clkbus0
Clock: vctcxo_1, parent: none, freq: 1000000
clk_fixed3: <Fixed clock> on ofw_clkbus0
Clock: pll1_vco, parent: none, freq: 24576000
clk_fixed4: <Fixed clock> on ofw_clkbus0
Clock: clk_32k, parent: none, freq: 32000
clk_fixed5: <Fixed clock> on ofw_clkbus0
Clock: clk_dummy, parent: none, freq: 0
simplebus0: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
sbi0: <RISC-V Supervisor Binary Interface>
intc0: <RISC-V Local Interrupt Controller> on ofwbus0
sbi_ipi0: <RISC-V SBI Inter-Processor Interrupts> on sbi0
plic0: <RISC-V PLIC> mem 0xe0000000-0xe3ffffff irq 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 on simplebus0
timer0: <RISC-V Timer>
Timecounter "RISC-V Timecounter" frequency 24000000 Hz quality 1000
Event timer "RISC-V Eventtimer" frequency 24000000 Hz quality 1000
rcons0: <RISC-V console>
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpu0: missing 'clock-frequency' property
cpu1: <Open Firmware CPU> on cpulist0
cpu1: missing 'clock-frequency' property
cpu2: <Open Firmware CPU> on cpulist0
cpu2: missing 'clock-frequency' property
cpu3: <Open Firmware CPU> on cpulist0
cpu3: missing 'clock-frequency' property
cpu4: <Open Firmware CPU> on cpulist0
cpu4: missing 'clock-frequency' property
cpu5: <Open Firmware CPU> on cpulist0
cpu5: missing 'clock-frequency' property
cpu6: <Open Firmware CPU> on cpulist0
cpu6: missing 'clock-frequency' property
cpu7: <Open Firmware CPU> on cpulist0
cpu7: missing 'clock-frequency' property
simplebus0: <clint@e4000000> mem 0xe4000000-0xe400ffff irq 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 compat riscv,clint0 (no driver attached)
simplebus0: <clock-controller@d4050000> mem 0xd4050000-0xd405209b,0xd4282800-0xd4282bff,0xd4015000-0xd4015fff,0xd4090000-0xd4090fff,0xd4282c00-0xd4282fff,0xd8440000-0xd8440097,0xc0000000-0xc000427f,0xf0610000-0xf061001f compat ky,x1-ccu (no driver attached)
simplebus0: <reset-controller@d4050000> mem 0xd4050000-0xd405209b,0xd4282800-0xd4282bff,0xd4015000-0xd4015fff,0xd4090000-0xd4090fff,0xd4282c00-0xd4282fff,0xd8440000-0xd8440097,0xc0000000-0xc000427f,0xf0610000-0xf061001f compat ky,x1-reset (no driver attached)
simplebus0: <gpio@d4019000> mem 0xd4019000-0xd40197ff irq 32 compat ky,x1-gpio (no driver attached)
simplebus0: <pinctrl@d401e000> mem 0xd401e000-0xd401e3ff compat pinctrl-single (no driver attached)
simplebus0: <power-management@0> mem 0xd4050000-0xd4053003,0xd4282800-0xd4282bff compat ky,x1-pm-domain (no driver attached)
simplebus0: no default resources for rid = 0, type = 4
uart0: <16750 or compatible> mem 0xd40170uart: ns8250: UART FCR is broken
uart0: console (109375,n,8,1)
simplebus0: no default resources for rid = 0, type = 1
uart0: polled mode (50Hz)
uart0: PPS capture mode: DCD
simplebus0: <ddr@c0000000> mem 0xc0000000-0xc03fffff compat ky,ddr-ctl (no driver attached)
simplebus0: <ethernet@cac80000> mem 0xcac80000-0xcac8041f compat ky,x1-emac (no driver attached)
simplebus0: <udc@c0900100> mem 0xc0900100-0xc09040ff irq 33 compat ky,mv-udc (no driver attached)
simplebus0: <usbphy1@c09c0000> mem 0xc09c0000-0xc09c01ff compat ky,usb2-phy (no driver attached)
simplebus0: <ehci1@c0980100> mem 0xc0980100-0xc09840ff irq 34 compat ky,mv-ehci (no driver attached)
simplebus0: <phy@c0b10000> mem 0xc0b10000-0xc0b107ff,0xd4282910-0xd4282d0f compat ky,x1-combphy (no driver attached)
simplebus0: <usb2phy@0xc0a30000> mem 0xc0a30000-0xc0a301ff compat ky,usb2-phy (no driver attached)
simplebus0: <usb3@0> irq 35 compat ky,x1-dwc3 (no driver attached)
simplebus0: <sdh@d4280000> mem 0xd4280000-0xd42801ff irq 36 compat ky,x1-sdhci (no driver attached)
simplebus0: <sdh@d4280800> mem 0xd4280800-0xd42809ff irq 37 disabled compat ky,x1-sdhci (no driver attached)
simplebus0: <sdh@d4281000> mem 0xd4281000-0xd42811ff irq 38 compat ky,x1-sdhci (no driver attached)
simplebus0: <twsi0@d4010800> mem 0xd4010800-0xd4010837 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi1@d4011000> mem 0xd4011000-0xd4011037 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi2@d4012000> mem 0xd4012000-0xd4012037 compat ky,i2c (no driver attached)
simplebus0: <twsi3@f0614000> mem 0xf0614000-0xf0614037 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi4@d4012800> mem 0xd4012800-0xd4012837 compat ky,i2c (no driver attached)
simplebus0: <twsi5@d4013800> mem 0xd4013800-0xd4013837 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi6@d4018800> mem 0xd4018800-0xd4018837 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi7@d401d000> mem 0xd401d000-0xd401d037 disabled compat ky,i2c (no driver attached)
simplebus0: <twsi8@d401d800> mem 0xd401d800-0xd401d837 compat ky,i2c (no driver attached)
simplebus0: <pwm@d401a000> mem 0xd401a000-0xd401a00f disabled compat ky,x1-pwm (no driver attached)
simplebus0: <pwm@d401a400> mem 0xd401a000-0xd401a00f disabled compat ky,x1-pwm (no driver attached)
simplebus0: <pwm@d4021800> mem 0xd4021800-0xd402180f disabled compat ky,x1-pwm (no driver attached)
simplebus0: <backlight> disabled compat pwm-backlight (no driver attached)
simplebus0: <pcie@ca000000> mem 0xca000000-0xca000fff,0xca300000-0xca31ff23,0x80000000-0x800fffff,0xd4282bcc-0xd4282bd3,0xc0b20000-0xc0b20fff,0xc0b10000-0xc0b10fff,0xd4282bcc-0xd4282bd3,0xc0b10000-0xc0b10fff irq 39,40 disabled type pci compat x1,dwc-pcie (no driver attached)
simplebus0: <pcie@ca400000> mem 0xca400000-0xca400fff,0xca700000-0xca71ff23,0x90000000-0x900fffff,0xd4282bd4-0xd4282bdb,0xc0c20000-0xc0c20fff,0xc0c10000-0xc0c10fff,0xd4282bcc-0xd4282bd3,0xc0b10000-0xc0b10fff irq 41,42 type pci compat x1,dwc-pcie (no driver attached)
simplebus0: <pcie@ca800000> mem 0xca800000-0xca800fff,0xcab00000-0xcab1ff23,0xa0000000-0xa00fffff,0xd4282bdc-0xd4282be3,0xc0d20000-0xc0d20fff,0xc0d10000-0xc0d10fff,0xd4282bcc-0xd4282bd3,0xc0b10000-0xc0b10fff irq 43,44 disabled type pci compat x1,dwc-pcie (no driver attached)
simplebus0: <spi0@d4026000> mem 0xd4026000-0xd402602f disabled compat ky,x1-spi (no driver attached)
simplebus0: <spi1@d4026800> mem 0xd4026800-0xd402682f disabled compat ky,x1-spi (no driver attached)
simplebus0: <spi2@f0613000> mem 0xf0614000-0xf061402f disabled compat ky,x1-spi (no driver attached)
simplebus0: <spi3@d401c000> mem 0xd401c000-0xd401c02f disabled compat ky,x1-spi (no driver attached)
simplebus0: <spi@d420c000> mem 0xd420c000-0xd420cfff,0xb8000000-0xb8cfffff compat ky,x1-qspi (no driver attached)
simplebus0: <fuse@f0702800> mem 0xf0702800-0xf0702bff compat ky,x1-efuse (no driver attached)
simplebus0: <dpu@c0340000> mem 0xc0340000-0xc0369fff,0xc0440000-0xc0469fff compat ky,dpu (no driver attached)
simplebus0: <mipi@d421a800> mem 0xd421a800-0xd421a9ff disabled compat ky,mipi-dsi (no driver attached)
simplebus0: <panel> disabled compat ky,panel (no driver attached)
simplebus0: <hdmi@c0400500> mem 0xc0400500-0xc04006ff compat ky,hdmi (no driver attached)
simplebus0: <charging> disabled compat k1,shutdown-charging (no driver attached)
ofwbus0: <pmu> compat riscv,pmu (no driver attached)
ofwbus0: <watchdog@D4080000> mem 0xd4080000-0xd4080fff,0xd4051020-0xd4051023 compat ky,x1-wdt (no driver attached)
ofwbus0: <wdt_reboot> compat wdt-reboot (no driver attached)
ofwbus0: <usb2hub> compat ky,usb-hub (no driver attached)
ofwbus0: <usb3hub> compat ky,usb-hub (no driver attached)
ofwbus0: <gpio-leds> compat gpio-leds (no driver attached)
crypto: assign cryptosoft0 driver id 0, flags 0x6000000
Device configuration finished.
procfs registered
Timecounters tick every 1.000 msec
lo0: bpf attached
vlan: initialized, using hash tables with chaining
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 32768
usb_needs_explore_all: no devclass
panic: acquiring blockable sleep lock with spinlock or critical section held (sleep mutex) pmap @ /usr/src/sys/riscv/riscv/pmap.c:2820
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x36
kdb_backtrace() at kdb_backtrace+0x2c
vpanic() at vpanic+0x16e
panic() at panic+0x26
witness_checkorder() at witness_checkorder+0xabe
__mtx_lock_flags() at __mtx_lock_flags+0x86
pmap_fault() at pmap_fault+0x52
page_fault_handler() at page_fault_handler+0x11e
do_trap_supervisor() at do_trap_supervisor+0x6c
cpu_exception_handler_supervisor() at cpu_exception_handler_supervisor+0x74
--- exception 15, tval = 0xffffffc05d1d83b8
memmove() at memmove+0xd6
vtbuf_grow() at vtbuf_grow+0x256
vt_change_font() at vt_change_font+0xfc
vt_resize() at vt_resize+0x88
vt_upgrade() at vt_upgrade+0x56a
mi_startup() at mi_startup+0x1ee
va() at va+0x60
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at kdb_enter+0x3a: sd zero,1108(s1)
db>