RISC-V Proxy Kernel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Andrew Waterman 9c61d29846 Misaligned fetch exception is not mandatorily delegable 6 months ago
bbl Disable device tree filter when load a dts from file (#219) 5 years ago
dummy_payload Properly license all nontrivial files 8 years ago
machine Misaligned fetch exception is not mandatorily delegable 6 months ago
pk Add dtb into .data section in linker script (#350) 8 months ago
scripts add support for "riscv-none-*" host name (#309) 2 years ago
softfloat Fix git-submodule fatal error for berkeley-softfloat-3 8 years ago
util Eliminate Wunknown-pragmas for Clang/LLVM (#265) 4 years ago
.gitignore Ignore some generated files 9 years ago
LICENSE add missing LICENSE file 13 years ago
LICENSE.Batten Properly license all nontrivial files 8 years ago
LICENSE.riscv_logo.txt License my ASCII RISC-V logo 8 years ago
Makefile.in Revert "[GCC]: Fix fence.i bug (#296)" 3 years ago
README.md README.md: add _zicsr_zifencei on configure option for rv32i (#334) 2 years ago
aclocal.m4 Properly license all nontrivial files 8 years ago
config.h.in Support manually zeroing out BSS when booting (#188) 6 years ago
configure Regenerated the configure file with autoconf 2.71 (#288) 3 years ago
configure.ac Link -lgcc if it exists 4 years ago

README.md

RISC-V Proxy Kernel and Boot Loader

About

The RISC-V Proxy Kernel, pk, is a lightweight application execution environment that can host statically-linked RISC-V ELF binaries. It is designed to support tethered RISC-V implementations with limited I/O capability and thus handles I/O-related system calls by proxying them to a host computer.

This package also contains the Berkeley Boot Loader, bbl, which is a supervisor execution environment for tethered RISC-V systems. It is designed to host the RISC-V Linux port.

Build Steps

We assume that the RISCV environment variable is set to the RISC-V tools install path, and that the riscv-gnu-toolchain package is installed. Please note that building the binaries directly inside the source directory is not supported; you need to use a separate build directory.

$ mkdir build
$ cd build
$ ../configure --prefix=$RISCV --host=riscv64-unknown-elf
$ make
$ make install

Alternatively, the GNU/Linux toolchain may be used to build this package, by setting --host=riscv64-unknown-linux-gnu.

By default, 64-bit (RV64) versions of pk and bbl are built. To built 32-bit (RV32) versions, supply a --with-arch=rv32i_zicsr_zifencei flag to the configure command. To process RVC binaries, supply a --with-arch=rv32ic_zicsr_zifencei flag, because the emulation code (floating point and miss-aligned load and store) is different in the RVC case.

The install step installs 64-bit build products into a directory matching your host (e.g. $RISCV/riscv64-unknown-elf). 32-bit versions are installed into a directory matching a 32-bit version of your host (e.g. $RISCV/riscv32-unknown-elf).

OpenBSD Build Steps

Install the riscv-gnu-toolchain, and follow generic build steps.

# pkg_add riscv-elf-binutils riscv-elf-gcc riscv-elf-newlib