Port details |
- opensbi RISC-V SBI bootloader and firmware
- 1.4 sysutils =2 1.4Version of this port present on the latest quarterly branch.
- Maintainer: mhorne@FreeBSD.org
- Port Added: 2019-10-29 01:10:38
- Last Update: 2024-01-15 17:33:30
- Commit Hash: 3d68246
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- License: BSD2CLAUSE
- WWW:
- https://github.com/riscv-software-src/opensbi
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- opensbi>0:sysutils/opensbi
- To install the port:
- cd /usr/ports/sysutils/opensbi/ && make install clean
- To add the package, run one of these commands:
- pkg install sysutils/opensbi
- pkg install opensbi
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: opensbi
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1704470709
SHA256 (riscv-software-src-opensbi-v1.4_GH0.tar.gz) = 319b62a4186fbce9b81a0c5f0ec9f003a10c808397a72138bc9745d9b87b1eb1
SIZE (riscv-software-src-opensbi-v1.4_GH0.tar.gz) = 409903
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- bash : shells/bash
- dtc : sysutils/dtc
- gmake>=4.3 : devel/gmake
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- sysutils/u-boot-sifive-fu540
- sysutils/u-boot-sifive-fu740
- sysutils/u-boot-starfive-visionfive2
Configuration Options:
- ===> The following configuration options are available for opensbi-1.4:
====> Options available for the group PLATFORMS
GENERIC=on: Support for generic platform
===> Use 'make config' to modify these settings
- Options name:
- sysutils_opensbi
- USES:
- gmake python:build shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.4 15 Jan 2024 17:33:30 |
Mitchell Horne (mhorne) |
sysutils/opensbi: update to v1.4
Release notes/info:
https://github.com/riscv-software-src/opensbi/releases/tag/v1.4
Bump dependent u-boot ports.
Sponsored by: The FreeBSD Foundation |
1.3.1 25 Nov 2023 19:21:34 |
Dimitry Andric (dim) |
sysutils/opensbi: fix build with clang 17
Building sysutils/opensbi with clang 17 results in the following errors:
clang: error: unsupported option '-mno-unaligned-access' for target
'riscv64-unknown-elf'
clang: error: unsupported option '-mno-unaligned-access' for target
'riscv64-unknown-elf'
[... many more times...]
The target-specific option -mno-unaligned-access (which is emitted from
the compiler driver when -mstrict-align is used) did not do anything for
riscv64, but clang 17 is now more strict about reporting unsupported
options. Remove the -mstrict-align option from the Makefile's CFLAGS and
ASFLAGS to fix it.
PR: 273753
MFH: 2023Q4 |
1.3.1 03 Aug 2023 16:05:13 |
Mitchell Horne (mhorne) |
sysutils/opensbi: update to v1.3.1
Add a patch to work around an assembler error with clang 16.0. This will
be submitted upstream.
As usual, bump revision of dependent u-boot ports.
Reviewed by: jrtc27, lwhsu (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40915 |
1.2 03 Jan 2023 15:33:47 |
Mitchell Horne (mhorne) |
sysutils/opensbi: update to version 1.2
With this version, stop providing the library and header files
altogether. I do not think they are useful at this time.
Bump associate u-boot port revisions.
Reviewed by: lwhsu
Approved by: lwhsu (ports)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37934 |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.1 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.1 28 Jun 2022 20:15:40 |
Mitchell Horne (mhorne) |
sysutils/opensbi: update to version 1.1
Bump the PORTREVISION of dependent u-boot ports.
Reviewed by: lwhsu
Approved by: lwhsu (ports)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35616 |
1.0 19 Jan 2022 21:15:34 |
Mitchell Horne (mhorne) |
sysutils/opensbi: update to version v1.0
As the fu540 platform has been removed with this version, fall back to
building the generic platform only. Keep the platform logic around in
the Makefile in case we need it in the future.
Switch to building with base system clang+binutils.
Bump the PORTREVISION for sysutils/u-boot-sifive-fu540.
Reviewed by: jrtc27, lwhsu (previous version both)
Approved by: lwhsu (ports)
Tested by: Klaus Küchemann <maciphone2@googlemail.com>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33845 |
0.9 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
0.9 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
0.9 04 Feb 2021 15:27:39 |
mhorne |
sysutils/opensbi: update to v0.9
This change adds a patch to disable the PMP for the sifive/fu540 target,
which is a workaround to a PMP errata in the chip. The OpenSBI update
itself is quite minor.
Bump the dependent port, sysutils/u-boot-sifive-fu540.
Reviewed by: lwhsu, kp
Approved by: lwhsu (ports)
Tested by: Klaus Kuchemann (maciphone2@googlemail.com)
Differential Revision: https://reviews.freebsd.org/D28471 |
0.8 29 Jun 2020 20:40:49 |
mhorne |
sysutils/opensbi: update to v0.8
This brings some restructuring to the installation paths. Firmware
files are still stored under /usr/local/share, but with the new prefix
allowing for multiple ABIs to be installed (e.g. opensbi/lp64/qemu/virt).
Libraries have been moved to /usr/local/lib64.
A new "generic" platform has been added, which will produce firmware
binaries capable of running on several platforms. The qemu/virt and
spike platforms have been removed as a result.
Additionally, the fw_payload.[bin|elf] files will no longer be
installed. These are compiled with the test payload and therefore don't
offer much use as part of this port.
Reviewed by: lbartoletti (previous version)
Approved by: lbartoletti
Differential Revision: https://reviews.freebsd.org/D24660 |
0.6 27 Feb 2020 22:15:03 |
mhorne |
sysutils/opensbi: update to version 0.6
This update adds a new default option: SPIKE. This builds support for the Spike
platform. Also, the toolchain dependency has been switched from riscv64-gcc to
riscv64-none-elf-gcc.
This release has:
Relocation lottery in reference firmwares
Preferred boot HART field in fw_dynamic_info
Platform specific optional way to specify MISA
Hypervisor v0.5 specification support
SBI v0.2 TIME extension
SBI v0.2 IPI extension
SBI v0.2 RFENCE extension (Only the first 15 lines of the commit message are shown above ) |
0.5 29 Oct 2019 01:10:32 |
mhorne |
New port: sysutils/opensbi: OpenSBI, a RISC-V bootloader and firmware
OpenSBI is a RISC-V bootloader and set of firmware libraries that
implement the RISC-V Supervisor Binary Interface (SBI) required for
supervisor targets, such as the FreeBSD kernel.
This port installs the OpenSBI libraries that can be used for
development of custom firmwares, as well as the firmware files for the
QEMU virt and SiFive U540 platforms.
Reviewed by: lwhsu, philip (earlier version)
Approved by: lwhsu
Differential Revision: https://reviews.freebsd.org/D22164 |