inching towards BSD support for RISC-V boards you can actually buy

Ah! The JH7110 in my VisionFive2 is actually the same SoC as in @PINE64 's Star64 and PineTab-V! So many of these drivers missing from FreeBSD are useful to all three systems (there's some variance) and the PINE64 folks look to a much newer datasheet (doc-en.rvspace.org/JH7110/PDF/) that is basically impossible to find directly browsing StarFive's website! This plus the OpenBSD drivers should be enough to get me started...

inching towards BSD support for RISC-V boards you can actually buy

Mixed bag today:
- Good: :openbsd: boots without issue on the without even mucking with u-boot (there are commits from at least 2 OpenBSD devs working with this board, they figured out where to store the EFI loader so the onboard OpenSBI finds it)
- Good: the latest -current snapshot tries to attach several drivers!
- Not great: the sd driver complains that it can't get a clock frequency to talk to the card and so *doesn't* attach. Booting in verbose mode indicates there are other failures attachments (also successful attachments for less exciting items).
- Hope: I only had time to try a couple dtb versions today, and I tried the latest. But the last commit to the jh7110 files was July, so it was probably last tested with an older version. So maybe backing up to a July or earlier version will work
- More encouraging news: the changes to the sd card driver basically consist of the driver just saying yes to a new manufacturer string, so if I can get this working under OpenBSD without the clock issue, there's a decent chance support is a similarly straightforward change to an existing driver.

If I can get sd storage working, I could try cross-building a :freebsd: (docs.freebsd.org/en/articles/n) image for local (over serial) work...

0

If you have a fediverse account, you can quote this note from your own instance. Search https://discuss.systems/users/csgordon/statuses/110969847755944311 on your instance and quote it. (Note that quoting is not supported in Mastodon.)