Re: Nanopi R5S support and build guide

From: Søren_Schmidt <soren.schmidt_at_gmail.com>
Date: Mon, 01 May 2023 16:47:12 UTC
> On 30 Apr 2023, at 23.44, Matheus <lojas@arroway.org> wrote:
> 
> Hi,
> 
> I am trying to have FreeBSD 14 running on this SBC. I could not find any guides in how to build images for it. I found the people.freebsd.org/~sos/ site that has some images, and one for it, but that seldom boots my board, and when it did, there was no console over serial or vga.
> 
> If anyone can give any hints. Unfortunately my dev skills are not good. But I can test and help build once I figure out how :)

Hi Matheus

The image at

https://people.freebsd.org/~sos/ARM64/current-RK356X-images/nano5-sdcard.img.gz

for the Nanopi R5S does indeed boot with both HDMI output and serial console (1500000baud).

The boot loader (EDK2 in FDT mode) is very picky on SD card quality though from experience, I works for me with Sandisk Ultra / Extreme cards but not with Samsung and cheap noname SD cards YMMV.

You can build a stock ARM64 generic kernel and most things will be usable, however as Ganbold wrote the DTS files is not in there yet (and not even in linux where our DTS files are fetched from).
However the EDK2 boot loader provided (and used in above image) on 

https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.itb	
NANOPI-R5S_EFI
File · 1,7 MB

does hand over the “right” DTB file if you want to experiment.

If you need the used DTS file and build guidance let me know in private mail...

--
Søren Schmidt
sos@deepcore.dk / sos@freebsd.org
"So much code to hack, so little time"