Hi Scott,

On 6/24/2025 6:20 PM, Scott Walters wrote:
Various things related to this so apologies for being all over the place.
If suggestions are way off base, please excuse me, otherwise I hope
they're constructive.  A lot of this is likely documentation improvement
opportunities.

https://ftp.openbsd.org/pub/OpenBSD/7.7/riscv64/INSTALL.riscv64
could mention the
https://ftp.openbsd.org/pub/OpenBSD/7.7/packages/riscv64/dtb-6.14.tgz
package.

Mh, I only find "jh7100-starfive-visionfive-v1.dtb" therein. Looks like another SoC is mentioned, no "2" for the board and the version also does not seem to match - if they are all supposed to match exactly.

https://ftp.openbsd.org/pub/OpenBSD/7.7/riscv64/INSTALL.riscv64
advises putting the dtb file/files (bit unclear on this... the
package appears to have one file for this machine but install docs
says "dtb files" (plural) in to
"/vendor/, /dtbs/vendor/, or /dtb/current/vendor/" on
"a FAT filesystem".  The install77.img for RISC-V has a MSDOS/FAT
filesystem, but placing jh7110-starfive-visionfive-2-v1.3b.dtb
from the dtb package in to /vendor/ in that partition is not
causing it to be loaded, for me.

Have you tried the steps described in https://gist.github.com/csgordon/74658096f7838382b40bd64e11f6983e and my comment to the post.

I have a VisionFive2 rev1.3 board and it runs fine with a Samsung SSD 980 NVMe drive.

# dmesg | grep -i nvme
nvme0 at pci3 dev 0 function 0 "Samsung PM9A1 NVMe" rev 0x00: intx, NVMe 1.3
nvme0: Samsung SSD 980 PRO 500GB, firmware 5B2QGXA7, serial [redacted]
scsibus0 at nvme0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <NVMe, Samsung SSD 980, 5B2Q>

The DTB is installed in the EFI partition

# mount | grep 0i
/dev/sd0i on /mnt/efi type msdos (local)

# find /mnt/efi/
/mnt/efi/
/mnt/efi/efi
/mnt/efi/efi/boot
/mnt/efi/efi/boot/bootriscv64.efi
/mnt/efi/efi/boot/startup.nsh
/mnt/efi/vendor
/mnt/efi/vendor/jh7110-starfive-visionfive-2-v1.3b.dtb

# md5 /mnt/efi/vendor/jh7110-starfive-visionfive-2-v1.3b.dtb
MD5 (...) = d64ca6674c2cdec33678739c04121e8a

Not sure if the DTB is available somewhere else officially.

And this is concerning:

cpu0: regulator not implemented

I don't see such a message.

And the board does get *hot*.

What temperatures do you observe? Is the fan running?

I detached the fan, because it's to noisy IMO and I have

# sysctl | grep  'sensors' | grep temp
hw.sensors.stftemp0.temp0=59.52 degC
hw.sensors.nvme0.temp0=53.00 degC, O

...in an ambient room.

It does not when booted
in to the
202409/sd/starfive-jh7110-202409-SD-minimal-desktop-wayland.img.bz2
image.

Which temperatures do you observe with this DTB?

So that's probably a device driver I really need.
But it gets hot even while idle, so I'm wondering if idle-sleep
support is just missing for this CPU in OpenBSD?

An answer to that question would be of interest for me as well.

Regards

Steffen

Reply via email to