BSD Ports

sysutils/opensbi 1.7_1 MidnightBSD

RISC-V SBI bootloader and firmware

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2
Categories
sysutils

Description

The RISC-V Supervisor Binary Interface (SBI) is the recommended interface between:

  1. A platform-specific firmware running in M-mode and a bootloader, a hypervisor or a general-purpose OS executing in S-mode or HS-mode.
  2. A hypervisor running in HS-mode and a bootloader or a general-purpose OS executing in VS-mode.

The RISC-V SBI specification is maintained as an independent project by the RISC-V Foundation at https://github.com/riscv/riscv-sbi-doc.

The goal of the OpenSBI project is to provide an open-source reference implementation of the RISC-V SBI specifications for platform-specific firmwares executing in M-mode (case 1 mentioned above). An OpenSBI implementation can be easily extended by RISC-V platform and system-on-chip vendors to fit a particular hardware configuration.

In the other systems

SystemPortVersion
MidnightBSDsysutils/opensbi1.7_1
FreeBSDsysutils/opensbi1.9
OpenBSDsysutils/opensbi1.2p0
DragonFlysysutils/opensbi0.9

Install

Binary package:

mport install opensbi

From mports:

cd /usr/mports/sysutils/opensbi && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	opensbi>0:sysutils/opensbi

Dependencies

As this port's Makefile names them.

Build 2

Build dependencies 2

No port depends on this one.

Configuration

No options to configure.

USES
gmake python:build shebangfix
Service scripts
none

Files

pkg-plist 4
  • share/opensbi/%%RISCV_ABI%%/generic/firmware/fw_dynamic.bin
  • share/opensbi/%%RISCV_ABI%%/generic/firmware/fw_dynamic.elf
  • share/opensbi/%%RISCV_ABI%%/generic/firmware/fw_jump.bin
  • share/opensbi/%%RISCV_ABI%%/generic/firmware/fw_jump.elf
distinfo 1
FileSizeSHA256
riscv-software-src-opensbi-v1.7_GH0.tar.gz4901312cf856a4e5e2e052948ddb54ba48232b1f698b7f52e0374fc7d17d51e8c8f7ce