Re: FreeBSD on Star64 from Pine64

From: Milan Obuch <freebsd-riscv_at_dino.sk>
Date: Tue, 27 May 2025 19:57:59 UTC
On Tue, 27 May 2025 18:21:05 +0300
Rich Dunkle <rdunkle@smallcatbrain.com> wrote:

> From that attached log file. This board claims it is a StarFive
> VisionFive V2. The u-boot date is very old. You might have to update
> that as well.

Well, maybe, but just today I was able to start sme linux based OS
here...

> Maybe the standard --> jh7110-starfive-visionfive-2-v1.3b.dtb
> will work.

I did try some DTBs, but the net result is still the same - early panic.

> Sometimes, using a dtb file from a Linux distribution will work.
> Easier to get somebody to email a working dtb.

I got one from a working linux, filename is jh7110-pine64-star64.dtb,
it works in linux, so it should be fine, but no change, the same early
panic.

> If you have a 15-current source tree you can compile the dtb yourself.
> Assuming you have amd64 system to compile:
> 
> cd /usr/src/sys/contrib/device-tree/
> 
> this produces the dtb file in --> cd /usr/src/sys/contrib/device-tree
> 
> cpp -I /usr/src/sys/contrib/device-tree/include/ -x
> assembler-with-cpp \
> /usr/src/sys/contrib/device-tree/src/riscv/starfive/jh7110-starfive-visionfive-2-v1.3b.dts
> \ | dtc -I dts -O dtb -o jh7110-starfive-visionfive-2-v1.3b.dtb

I'll try this one as well... just not today.

> You can search the FreeBSD Forums. There are also comments on
> visionfive2.

https://forums.freebsd.org/threads/visionfive2-board-some-progress.95630/
is probably the only one I found interesting, but no more help here as
well.

Regards,
Milan