Web lists-archives.com

Bug#928724: ITP: opensbi -- RISC-V Open Source Supervisor Binary Interface




Package: wnpp
Severity: wishlist
Owner: Vagrant Cascadian <vagrant@xxxxxxxxxx>
X-Debbugs-Cc: debian-devel@xxxxxxxxxxxxxxxx, merker@xxxxxxxxxx, debian-riscv@xxxxxxxxxxxxxxxx

* Package name    : opensbi
  Version         : 0.3+
  Upstream Author : Anup Patel/Western Digital, other contributors
* URL             : https://github.com/riscv/opensbi
* License         : BSD-2, Apache 2.0, GPL-2+
  Programming Lang: C
  Description     : RISC-V Open Source Supervisor Binary Interface

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 on [Github] (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.

...

An SBI implementation is needed in order to boot RISC-V systems. This
package initially will at least enable loading u-boot in qemu
sufficient to boot a linux kernel and initramfs.


A similar project is the RISC-V Proxy Kernel and Boot Loader
(a.k.a. BBL):

  https://github.com/riscv/riscv-pk

But BBL requires a compilation step to embed the bootloader and/or
kernel into a payload every time you upgrade the kernel and/or
bootloader. It is possible with OpenSBI to load an arbitrary payload
without requiring a compilation step in some cases (e.g. qemu).


Karsten Merker has offered to co-maintain (who has also been
contributing upstream); not sure if we'll need a team just yet.


Initial rough cut of packaging:

  https://salsa.debian.org/vagrant/opensbi

It cross-compiles an arch:all firmware image usable with qemu+u-boot.

Help with improving the package description and a few remaining
lintian issues would be great!


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature