Status of NetBSD on the RK3588 Pocket Reform

With Barebox as an alternative bootloader, you get early display support on RK3588 Pocket Reform thanks to the work of ailurux and @minute and with just a few workarounds you can boot OpenBSD: First Barebox Boot Loader release for RK3588 Pocket Reform, OpenBSD

Since MNT is about “Open Computing Autonomy” and since Linux/Linus seem to go further and further into slop-land, I wanted to try out alternatives like NetBSD which have a strong stance against machine-generated contributions on my MNT hardware. This post is about the current status of NetBSD on the RK3588 Pocket Reform.

I used Barebox as the bootloader because it sets up the internal display which means that the OS can simply draw on the existing framebuffer without having to re-initialize the display itself. Unfortunately, attempting to boot NetBSD with the current release of Barebox with MNT patches on top led to a NULL pointer dereference in Barebox. Barebox developer Ahmad Fatoum quickly identified the issue after I reported it in the #barebox IRC channel and crafted two patches to fix this issue. I was able to start loading NetBSD with the MNT Barebox patch stack rebased onto the latest Barebox git and I pushed the results into the barebox-latest branch of this repo: https://source.mnt.re/josch/mnt-reform-barebox/-/tree/barebox-latest?ref_type=heads

With that being said, the current status of NetBSD on the RK3588 MNT Pocket Reform is this traceback during boot:

To report this problem to the NetBSD folks, I need to be able to copypaste the full boot log from serial and similar to what seems to have been necessary for OpenBSD, you need to run the following in Barebox to convince NetBSD to also output boot messages to serial:

fb0.register_simplefb=enabled

I reported the issue here: NetBSD Problem Report #60895: NetBSD 11 aarch64 generic daily image on MNT Pocket Reform RK3588: panic: Trap: Data Abort (EL1): Translation Fault L0 with read

The conclusion of this adventure (for now) seems to be:

We don’t have non-ACPI driver support for the RK3588 in the source tree
yet.

There is a discussion thread starting here:

https://mail-index.netbsd.org/port-arm/2025/09/02/msg009378.html

Maybe support can be ported over from OpenBSD but that’s not something that I will be doing because I don’t have the skills to do this. But maybe all of this can help and/or motivate others to have a look. :slight_smile:

EDIT1:

@minute enabled the MNT gitlab pipeline for the project so now there is an easy way for you to grab working barebox blobs which will boot NetBSD as far as I got it to boot from here: https://source.mnt.re/josch/mnt-reform-barebox/-/jobs/24806/artifacts/browse/images/

EDIT2:

This is one year old but maybe these patches can be forward ported?

I have no idea (yet) how to build NetBSD kernel myself so this will be a project for another day. Don’t wait for me to do it, I already have too many project to handle. :smiley:

10 Likes

What about this fork linked in the email thread? ~cypheon/NetBSD - Porting NetBSD to rk3588-based Rock 5B - sourcehut git

1 Like

Taking that work from one year ago and rebasing it on top of current NetBSD git is something which either somebody else has to do or which has to wait until I find enough time to do this myself. I know how to compile Linux with patches but I never compiled NetBSD myself, so if I’m the one going to do it, it will take me some time, so better not hold your breath. :slight_smile:

2 Likes

Just wanted to say thanks, @josch, for working on this and always writing such in-depth notes that make it easy to follow along :heart: I highly appreciate it!

6 Likes