OpenSBI
More info
- Creator
- Western Digital
- Released
- 2019
- Type
- Firmware
- License
- BSD 2-Clause
- Source
- github.com
The reference implementation of the RISC-V Supervisor Binary Interface — the thin machine-mode firmware layer an OS kernel calls on for help.
A Linux kernel on RISC-V runs in S-mode and can't reach the timer, inter-core interrupts or power-off directly. Instead it calls the SBI with ecall, and OpenSBI, which stays resident in M-mode after boot, does the job on its behalf. The typical boot sequence runs boot ROM, U-Boot SPL, OpenSBI, U-Boot and finally Linux.
Western Digital released it in 2019 to replace the Berkeley Boot Loader (BBL), which had muddled the roles of bootloader and firmware together. OpenSBI comes in flavours such as fw_jump, fw_payload and fw_dynamic, depending on how the next stage is found, and also programs the PMP so the kernel can't overwrite the firmware underneath it.