1 RISC-V Open Source Supervisor Binary Interface (OpenSBI)
2 ========================================================
4 The RISC-V Supervisor Binary Interface (SBI) is a recommended
6 1. platform specific firmware running in M-mode and bootloader
8 2. platform specific firmware running in M-mode and general
9 purpose operating system running in S-mode
10 3. hypervisor runnng in HS-mode and general purpose operating
11 system running in VS-mode.
13 The RISC-V SBI spec is maintained as independent project by
14 RISC-V Foundation at https://github.com/riscv/riscv-sbi-doc
16 The RISC-V OpenSBI project aims to provides an open-source and
17 extensible implementation of the SBI spec. This project can be
18 easily extended by RISC-V platform or RISC-V System-on-Chip vendors.
24 Below are the steps to cross-compile and install RISC-V OpenSBI:
26 1. Setup build environment
27 $ CROSS_COMPILE=riscv64-unknown-linux-gnu-
30 $ make PLAT=<platform_name>
32 $ make PLAT=<platform_name> O=<build_directory>
35 $ make PLAT=<platform_name> install
37 $ make PLAT=<platform_name> I=<install_directory> install