← Back to VisionFive
openbsd on VisionFive

System Version

Not specified

Status

basic

Last Update

2024-06-21

OpenBSD 7.5 VisionFive Test Report

Test Environment

System Information

Hardware Information

  • StarFive VisionFive
  • Power Adapter
  • A microSD Card
  • A USB to UART Debugger
  • Wired Internet Connection

Installation Steps

Extracting dtb File

Decompress the Fedora image, mount the boot partition, and copy the jh7100-starfive-visionfive-v1.dtb file from the dtb folder.

Flashing Installation Image

Use gzip to decompress the image. Use dd to flash the image to the microSD card.

wget https://cdn.openbsd.org/pub/OpenBSD/snapshots/riscv64/install75.img
sudo dd if=install75.img of=/dev/your-device bs=1M status=progress

Place the dtb file into the EFI root directory:

mkdir -p mnt
sudo mount /dev/your-device-p1 mnt
cp jh7100-starfive-visionfive-v1.dtb mnt/
sudo umount mnt

Booting the System

Manually interrupt the u-boot process and input the boot command:

load mmc 0:1 0x88000000 jh7100-starfive-visionfive-v1.dtb
load mmc 0:1 0x84000000 efi/boot/bootriscv64.efi
bootefi 0x84000000 0x88000000

Follow the installation flow and place the dtb file into the EFI root directory again (if it was overwritten).

Persistent Uboot

env default -a -f
setenv bootcmd "load mmc 0:1 0x88000000 jh7100-starfive-visionfive-v1.dtb; load mmc 0:1 0x84000000 efi/boot/bootriscv64.efi; bootefi 0x84000000 0x88000000"
saveenv

Logging into the System

Login via the serial port.

User and password are set during installation.

Expected Results

The system should boot normally and allow login via the onboard serial port.

Actual Results

The system booted successfully and login via the onboard serial port was also successful.

Boot Log

Screen recording (From flashing image to system login):

asciicast

Sat Mar 23 10:02:30 CST 2024

OpenBSD/riscv64 (plct.my.domain) (console)

login: root
Password:
OpenBSD 7.5 (GENERIC.MP) #1: Fri Mar 22 19:01:44 MDT 2024

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

You have new mail.
plct# uname -a
OpenBSD plct.my.domain 7.5 GENERIC.MP#1 riscv64
plct# 

Test Criteria

Successful: The actual result matches the expected result.

Failed: The actual result does not match the expected result.

Test Conclusion

Test partially successful.