How to run FreeBSD on new boards built on Rockchip 35XX..

I've deleted the files rk_iommu.c and rk_iommu.h and I've got this error :

Code:
make[2]: don't know how to make /mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/rockchip/rk_iommu.c. Stop
 
Done. And I also gave a # make clean.

But It gives this error :

Code:
make[2]: don't know how to make /mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/rockchip/rk_iommu.c. Stop
 
ita ? what is this ?

Like this one it does not work :

Screenshot_2025-07-07_23-33-05.jpg
 

I have removed all the rk_iommu.c words,but it didn't work.

Code:
ld: error: undefined symbol: smmu_pmap_enter
>>> referenced by smmu.c:1687 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1687)
>>>               smmu.o:(smmu_map)

ld: error: undefined symbol: smmu_pmap_remove
>>> referenced by smmu.c:1652 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1652)
>>>               smmu.o:(smmu_unmap)

ld: error: undefined symbol: smmu_pmap_pinit
>>> referenced by smmu.c:1725 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1725)
>>>               smmu.o:(smmu_domain_alloc)
>>> referenced by panfrost_mmu.c:426 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:426)
>>>               panfrost_mmu.o:(panfrost_mmu_ctx_create)

ld: error: undefined symbol: smmu_pmap_remove_pages
>>> referenced by smmu.c:1768 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1768)
>>>               smmu.o:(smmu_domain_free)
>>> referenced by panfrost_mmu.c:652 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:652)
>>>               panfrost_mmu.o:(panfrost_mmu_ctx_put)

ld: error: undefined symbol: smmu_pmap_release
>>> referenced by smmu.c:1769 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1769)
>>>               smmu.o:(smmu_domain_free)
>>> referenced by panfrost_mmu.c:653 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:653)
>>>               panfrost_mmu.o:(panfrost_mmu_ctx_put)

ld: error: undefined symbol: iommu_is_buswide_ctx
>>> referenced by smmu.c:1880 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu.c:1880)
>>>               smmu.o:(smmu_ctx_init)

ld: error: undefined symbol: iommu_find_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_map_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_unmap_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_domain_alloc_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_domain_free_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_ctx_alloc_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_ctx_init_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_ctx_free_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_ctx_lookup_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: iommu_ofw_md_data_desc
>>> referenced by smmu.c
>>>               smmu.o:(smmu_methods)

ld: error: undefined symbol: pmap_gpu_enter
>>> referenced by panfrost_mmu.c:345 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:345)
>>>               panfrost_mmu.o:(panfrost_mmu_intr)
>>> referenced by panfrost_mmu.c:582 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:582)
>>>               panfrost_mmu.o:(panfrost_mmu_map)

ld: error: undefined symbol: pmap_gpu_remove
>>> referenced by panfrost_mmu.c:617 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/dev/drm/panfrost/panfrost_mmu.c:617)
>>>               panfrost_mmu.o:(panfrost_mmu_unmap)

ld: error: undefined symbol: iommu_register
>>> referenced by smmu_acpi.c:259 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu_acpi.c:259)
>>>               smmu_acpi.o:(smmu_acpi_attach)
>>> referenced by smmu_fdt.c:171 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/iommu/smmu_fdt.c:171)
>>>               smmu_fdt.o:(smmu_fdt_attach)

ld: error: undefined symbol: iommu_get_dev_ctx
>>> referenced by gicv3_its.c:1743 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/arm64/gicv3_its.c:1743)
>>>               gicv3_its.o:(gicv3_iommu_init)
>>> referenced by gicv3_its.c:1759 (/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/sys/arm64/arm64/gicv3_its.c:1759)
>>>               gicv3_its.o:(gicv3_iommu_deinit)

ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/mnt/zroot2/zroot2/OS/BSD/FreeBSD/arm64/img/Radxa-3W/Stuff/covacat/DRM/_cheri142-userland143/src/arm64.aarch64/sys/GENERIC-DRM
       36.32 real        30.65 user         1.68 sys
*** Error code 1
 
--------------------------------------------------------------
>>> Kernel build for GENERIC-DRM completed on Tue Jul 8 00:51:28 CEST 2025
--------------------------------------------------------------
>>> Kernel(s) GENERIC-DRM built in 879 seconds, ncpu: 16
--------------------------------------------------------------
 
I've got a NanoPi R5C which I would like to set up as an internet router. Ideally, I would like to run OPNsense on it, but FreeBSD would be great for a start (maybe I'll learn pf instead!).

I would really like to run the bootloader from the eMMC or SD card, and boot FreeBSD from an external USB 3 SSD.

I went to https://personalbsd.org/download/UEFI-RK356x/ and downloaded the following files:

NANOPI-R5C_EFI.img
NANOPI-R5C_EFI.itb
idblock.bin

Unfortunately, I'm not sure exactly what to do with them! ;)

I started by writing the img file to an SD card, but unfortunately gpart shows the partition table as corrupt:

Code:
=>   34  67517  mmcsd0  GPT  (7.2G) [CORRUPT]
     34     30          - free -  (15K)
     64  16320       1  linux-data  (8.0M)
  16384  16384       2  linux-data  (8.0M)
  32768  32768       3  linux-data  (16M)
  65536   2015          - free -  (1.0M)

=>   34  67517  diskid/DISK-13A380FE  GPT  (7.2G) [CORRUPT]
     34     30                        - free -  (15K)
     64  16320                     1  linux-data  (8.0M)
  16384  16384                     2  linux-data  (8.0M)
  32768  32768                     3  linux-data  (16M)
  65536   2015                        - free -  (1.0M)


If I put the SD card into my NanoPi, the SYS light is solid, but there is no HDMI output, and the CAPS or NUM lock keys don't do anything


Looking at the crochet-setup.sh I also downloaded, it creates a partition layout on the disk and then writes the itb and bin files to it.

So I did the following:

Code:
gpart create -s gpt /dev/mmcsd0
gpart add -t linux-data -l loader -b 32k -s 16320 /dev/mmcsd0
gpart add -t linux-data -l uboot -s 8m /dev/mmcsd0
gpart add -t linux-data -l env -s 16m /dev/mmcsd0
gpart add -t linux-data -l resource -s 16m /dev/mmcsd0
dd if=idblock.bin of=/dev/mmcsd0 conv=notrunc bs=512 seek=64
dd if=NANOPI-R5C_EFI.itb  of=/dev/mmcsd0 conv=notrunc bs=512 seek=20480

Unfortunately, I get exactly the same behaviour when I put the card into the NanoPi (although the partition table is not corrupt).

Please could someone give me some steps to get this working, or point me towards a guide?
Hi,

sorry for the long delay.

Have you solved your problem? I saw there were not more messages from you.

With those img files I think I you can make it work with opnsense.

none
 
Hi,

has anyone got an Orange Pi 5 Plus to boot FreeBSD using sdcard?

I got ok from nvme, but not sdcard.

Here is my log:

Code:
/boot/kernel/kernel text=0x2a8 text=0xa3c830 text=0x28645c data=0x15e6f8 data=0x0+0x2c3000 0x8+0x163578+0x8+0x18e8c6-
Loading configured modules...
uhid.../boot/kernel/uhid.ko text=0x1fc0 text=0x1660 data=0x6f8+0x4 0x8+0xe88+0x8+0xa61
if_lagg.../boot/kernel/if_lagg.ko text=0x3b5e text=0x9f50 data=0xea0+0x8 0x8+0x1d88+0x8+0x16a5
loading required module 'if_infiniband'
/boot/kernel/if_infiniband.ko text=0x1102 text=0x12ac data=0x308+0x8 0x8+0x8a0+0x8+0x590
ukbd.../boot/modules/if_re.ko.../boot/modules/if_re.ko text=0x7988 text=0x7ccf8 data=0xa38+0x14 0x8+0x1bd8+0x8+0x15f7
if_enc.../boot/kernel/if_enc.ko text=0x168a text=0x974 data=0x840 0x8+0xd08+0x8+0xb96
ugen...can't find 'ugen'
failed!
carp.../boot/kernel/carp.ko text=0x3888 text=0x78b8 data=0xe28+0x48 0x8+0x1b48+0x8+0x13cc
/etc/hostid...can't find '/etc/hostid'
failed!
if_vlan...pfsync.../boot/kernel/pfsync.ko text=0x38b9 text=0x8fd4 data=0xd00+0x8 0x8+0x1ba8+0x8+0x1485
loading required module 'pf'
/boot/kernel/pf.ko text=0x12340 text=0x4a5e0 data=0x6bc8+0x434 0x8+0x7020+0x8+0x68a0
if_bridge.../boot/kernel/if_bridge.ko text=0x38cf text=0x6bb0 data=0xee8+0x8 0x8+0x1c50+0x8+0x1695
loading required module 'bridgestp'
/boot/kernel/bridgestp.ko text=0x12cb text=0x4ca4 data=0x2d0+0x28 0x8+0xb28+0x8+0x6af
if_tap...pflog.../boot/kernel/pflog.ko text=0xff8 text=0x938 data=0x488 0x8+0xa20+0x8+0x730
pf...usb...umass...if_gre.../boot/kernel/if_gre.ko text=0x254e text=0x3f10 data=0x950+0x40 0x8+0x16f8+0x8+0xfdd
if_tun.../boot/entropy.../boot/entropy size=0x1000
if_gif...
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
Using DTB provided by EFI at 0xecb91000.
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
Copyright (c) 1992-2023 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 14.2-RELEASE-p3 stable/25.1-n269825-cbaf3aa6b26 SMP arm64
FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)
VT: init without driver.
module scmi already present!
real memory  = 17171480576 (16376 MB)
avail memory = 16715624448 (15941 MB)
Starting CPU 1 (100)
Starting CPU 2 (200)
Starting CPU 3 (300)
Starting CPU 4 (400)
Starting CPU 5 (500)
Starting CPU 6 (600)
Starting CPU 7 (700)
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
ofw_firmware0: <OFW Firmware Group> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
simple_mfd0: <Simple MFD (Multi-Functions Device)> mem 0xfd58a000-0xfd599fff on ofwbus0
simple_mfd1: <Simple MFD (Multi-Functions Device)> mem 0xfd5d0000-0xfd5d3fff on ofwbus0
simple_mfd2: <Simple MFD (Multi-Functions Device)> mem 0xfd5d8000-0xfd5dbfff on ofwbus0
simple_mfd3: <Simple MFD (Multi-Functions Device)> mem 0xfd5dc000-0xfd5dffff on ofwbus0
simple_mfd4: <Simple MFD (Multi-Functions Device)> mem 0xfd8d8000-0xfd8d83ff on ofwbus0
simple_mfd5: <Simple MFD (Multi-Functions Device)> mem 0xfd5d4000-0xfd5d7fff on ofwbus0
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
gic0: <ARM Generic Interrupt Controller v3.0> mem 0xfe600000-0xfe60ffff,0xfe680000-0xfe77ffff irq 74 on ofwbus0
its0: <ARM GIC Interrupt Translation Service> mem 0xfe640000-0xfe65ffff on gic0
its0: Timeout while waiting for CMD completion.
its1: <ARM GIC Interrupt Translation Service> mem 0xfe660000-0xfe67ffff on gic0
its1: Timeout while waiting for CMD completion.
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot get i2c clock
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 19
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot get i2c clock
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 19
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot get i2c clock
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 19
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
generic_timer0: <ARMv8 Generic Timer> irq 2,3,4,5,6 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
mmio_sram0: <MMIO SRAM> mem 0x10f000-0x10f0ff on ofwbus0
shmem0: <ARM SCMI Shared Memory driver> mem 0-0xff on mmio_sram0
mmio_sram1: <MMIO SRAM> mem 0xfd600000-0xfd6fffff on ofwbus0
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
mmio_sram2: <MMIO SRAM> mem 0xff001000-0xff0effff on ofwbus0
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpufreq_dt0: no clock for cpu@0
device_attach: cpufreq_dt0 attach returned 6
cpufreq_dt1: <Generic cpufreq driver> on cpu1
cpufreq_dt1: no clock for cpu@100
device_attach: cpufreq_dt1 attach returned 6
cpufreq_dt2: <Generic cpufreq driver> on cpu2
cpufreq_dt2: no clock for cpu@200
device_attach: cpufreq_dt2 attach returned 6
cpufreq_dt3: <Generic cpufreq driver> on cpu3
cpufreq_dt3: no clock for cpu@300
device_attach: cpufreq_dt3 attach returned 6
cpufreq_dt4: <Generic cpufreq driver> on cpu4
cpufreq_dt4: no clock for cpu@400
device_attach: cpufreq_dt4 attach returned 6
cpufreq_dt5: <Generic cpufreq driver> on cpu5
cpufreq_dt5: no clock for cpu@500
device_attach: cpufreq_dt5 attach returned 6
cpufreq_dt6: <Generic cpufreq driver> on cpu6
cpufreq_dt6: no clock for cpu@600
device_attach: cpufreq_dt6 attach returned 6
cpufreq_dt7: <Generic cpufreq driver> on cpu7
cpufreq_dt7: no clock for cpu@700
device_attach: cpufreq_dt7 attach returned 6
pmu0: <Performance Monitoring Unit> irq 0 on ofwbus0
pmu1: <Performance Monitoring Unit> irq 1 on ofwbus0
ehci0: <Generic EHCI Controller> mem 0xfc800000-0xfc83ffff irq 11 on ofwbus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0xfc840000-0xfc87ffff irq 12 on ofwbus0
usbus1 on ohci0
ehci1: <Generic EHCI Controller> mem 0xfc880000-0xfc8bffff irq 13 on ofwbus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0xfc8c0000-0xfc8fffff irq 14 on ofwbus0
usbus3 on ohci1
syscon_generic_dev0: Cannot allocate memory resource
device_attach: syscon_generic_dev0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfd880000-0xfd880fff irq 24 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
pcib0: <RockChip RK3568 PCI-express controller> mem 0xa40c00000-0xa40ffffff,0xfe180000-0xfe18ffff,0xf3000000-0xf30fffff irq 52,53,54,55,56 on ofwbus0
pcib0: Can not get reset
device_attach: pcib0 attach returned 6
pcib0: <RockChip RK3568 PCI-express controller> mem 0xa41000000-0xa413fffff,0xfe190000-0xfe19ffff,0xf4000000-0xf40fffff irq 57,58,59,60,61 on ofwbus0
pcib0: Can not get reset
device_attach: pcib0 attach returned 6
rockchip_dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller (RockChip)> mem 0xfe2c0000-0xfe2c3fff irq 67 on ofwbus0
rockchip_dwmmc0: No bus speed provided
rockchip_dwmmc0: Can't get FDT property.
device_attach: rockchip_dwmmc0 attach returned 6
i2s0: <Rockchip I2S> mem 0xfe490000-0xfe490fff irq 72 on ofwbus0
i2s0: cannot get i2s_hclk clock
device_attach: i2s0 attach returned 19
uart0: <16750 or compatible> mem 0xfeb50000-0xfeb500ff irq 91 on ofwbus0
uart0: console (1500000,n,8,1)
uart1: <16750 or compatible> mem 0xfebc0000-0xfebc00ff irq 98 on ofwbus0
rk_i2c0: <RockChip I2C> mem 0xfec80000-0xfec80fff irq 101 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
rk_i2c0: <RockChip I2C> mem 0xfec90000-0xfec90fff irq 102 on ofwbus0
rk_i2c0: cannot allocate resources for device
rk_i2c0: Failed to detach
device_attach: rk_i2c0 attach returned 6
syscon_generic_dev58: Cannot allocate memory resource
device_attach: syscon_generic_dev58 attach returned 6
pcib0: <RockChip RK3568 PCI-express controller> mem 0xa40000000-0xa403fffff,0xfe150000-0xfe15ffff,0xf0000000-0xf00fffff irq 112,113,114,115,116 on ofwbus0
pcib0: Can not get reset
device_attach: pcib0 attach returned 6
pcib0: <RockChip RK3568 PCI-express controller> mem 0xa40800000-0xa40bfffff,0xfe170000-0xfe17ffff,0xf2000000-0xf20fffff irq 131,132,133,134,135 on ofwbus0
pcib0: Can not get reset
device_attach: pcib0 attach returned 6
simpleamp0: <Simple Amplifier> on ofwbus0
simpleamp0: no VCC supplysimpleamp1: <Simple Amplifier> on ofwbus0
simpleamp1: no VCC supplygpioled0: <GPIO LEDs> on ofwbus0
gpioled0: <led> failed to map pin
pcm0: <simple-audio-card> on ofwbus0
armv8crypto0: <AES-CBC,AES-XTS,AES-GCM>
Timecounters tick every 1.000 msec
pcm0: no driver attached to cpu node
CPU  0: ARM Cortex-A55 r2p0 affinity:  0  0
                   Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG>
 Instruction Set Attributes 0 = <DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL>
 Instruction Set Attributes 1 = <RCPC-8.3,DCPoP>
 Instruction Set Attributes 2 = <>
         Processor Features 0 = <RAS,GIC,AdvSIMD+HP,FP+HP,EL3 32,EL2 32,EL1 32,EL0 32>
         Processor Features 1 = <PSTATE.SSBS>
         Processor Features 2 = <>
      Memory Model Features 0 = <TGran4,TGran64,TGran16,SNSMem,BigEnd,16bit ASID,1TB PA>
      Memory Model Features 1 = <XNX,PAN+ATS1E1,LO,HPD+TTPBHA,VH,16bit VMID,HAF+DS>
      Memory Model Features 2 = <32bit CCIDX,48bit VA,IESB,UAO,CnP>
      Memory Model Features 3 = <>
      Memory Model Features 4 = <>
             Debug Features 0 = <DoubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3p1,Debugv8p2>
             Debug Features 1 = <>
         Auxiliary Features 0 = <>
         Auxiliary Features 1 = <>
AArch32 Instruction Set Attributes 5 = <RDM,CRC32,SHA2,SHA1,AES+VMULL,SEVL>
AArch32 Media and VFP Features 0 = <FPRound,FPSqrt,FPDivide,DP VFPv3+v4,SP VFPv3+v4,AdvSIMD>
AArch32 Media and VFP Features 1 = <SIMDFMAC,FPHP Arith,SIMDHP Arith,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ>
CPU  1: ARM Cortex-A55 r2p0 affinity:  1  0
CPU  2: ARM Cortex-A55 r2p0 affinity:  2  0
CPU  3: ARM Cortex-A55 r2p0 affinity:  3  0
CPU  4: ARM Cortex-A76 r4p0 affinity:  4  0
                   Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG,IDC>
         Processor Features 0 = <CSV3,CSV2,RAS,GIC,AdvSIMD+HP,FP+HP,EL3,EL2,EL1,EL0 32>
CPU  5: ARM Cortex-A76 r4p0 affinity:  5  0
CPU  6: ARM Cortex-A76 r4p0 affinity:  6  0
CPU  7: ARM Cortex-A76 r4p0 affinity:  7  0
gic0: using for IPIs
Release APs...done
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
Trying to mount root from ufs:/dev/ufs/OPNsense_ARM [rw]...
TCP_ratelimit: Is now initialized
ugen1.1: <Generic OHCI root HUB> at usbus1
ugen0.1: <Generic EHCI root HUB> at usbus0
uhub0 on usbus1
uhub0: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Generic EHCI root HUB> at usbus2
uhub1 on usbus0
uhub2 on usbus2
uhub1: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub2: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen3.1: <Generic OHCI root HUB> at usbus3
uhub3 on usbus3
uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
uhub0: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
uhub2: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
mountroot: waiting for device /dev/ufs/OPNsense_ARM...
Mounting from ufs:/dev/ufs/OPNsense_ARM failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_ARM
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>
 
Code:
mountroot: waiting for device /dev/ufs/OPNsense_ARM...
Mounting from ufs:/dev/ufs/OPNsense_ARM failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_ARM
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> ?

List of GEOM managed disk devices:
 

mountroot>

looks like it has no storage device available. But there is only the sdcard there.
 
Phishfry many thanks for your advice. Apologies I have not had time to try it out yet as I currently have a lot going on with some family issues, but I hope to get back to it as soon as I can.
 
should be rk_iommu.c
in sys/conf/files.arm64 under the use/src you build from

I should be honest : the panfrost driver crashes less times in the board rockpro rk3399 that in the radxa zero 3W. I'm thinking to disable it in this board ; here it crashes so hardly that even the data structure is corrupted very often.
 
The kernel panic happened again. A corruption of the sd card partition table comes after it. This time I had the panfrost driver enabled and I tried to watch some youtube videos. I suspect that it needs 8 Gb or RAM. I will try soon. If it will happens also with 8 GB or RAM,then there is a bug that needs to be fixed.

The Radxa Zero with 8 GB of RAM came to me. I've suddenly tried it with FreeBSD 14.2 + panfrost driver ported by covacat and I'm really sad,because at some point I see the screen goes white and nothing work anymore. For some unknown reason,it does not accept 8 GB. Because the same image works with the Radxa Zero with 4 GB of ram. Maybe covacat knows why and he can fix something inside the code. Regarding the stability of the panfrost driver enabled on the board with 4 GB,in my case,it crashes very often. It's not usable at all. This is the reason why I've bought the version with 8 GB. Because I hoped that it worked better,but at the moment its not true.
 
rk_vop and rk_vop2 hardware can only access a 32 bit bus space (so 4GB)
our drivers have no provision to allocate the fb in the first 4GB so they need either iommu support or other hacks (like bus_dma) to force the frame buffer in the first 4GB
so it can be that it writes a truncated address to the vop register and shit happens
 
rk_vop and rk_vop2 hardware can only access a 32 bit bus space (so 4GB)
our drivers have no provision to allocate the fb in the first 4GB so they need either iommu support or other hacks (like bus_dma) to force the frame buffer in the first 4GB
so it can be that it writes a truncated address to the vop register and shit happens

A developer told me that frequent crashes happens when there are 4 GB of RAM. I supposed that with more RAM the problem could have gone away.
 
if anyone cares I have u-boot with efi framebuffer for rk356x, can post / patch / binary / both
tested to work on radxa zero 3e.
failed on my opi3b (can't init hdmi)
 
Back
Top