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 06d3afd772 Update config.guess/config.sub 8 years ago
bbl Fix line endings in the logo 9 years ago
dummy_payload WIP on SBI 9 years ago
machine mtrap: add a halt IPI used for poweroff (#86) 8 years ago
pk Bump the Linux version PK claims to support 8 years ago
scripts Update config.guess/config.sub 8 years ago
softfloat Begin refactoring emulation code 10 years ago
util speed up memcpy for aligned bases but misaligned length 10 years ago
.gitignore Ignore some generated files 9 years ago
LICENSE add missing LICENSE file 13 years ago
Makefile.in Fix line endings in the logo 9 years ago
README.md README.md: Explicitly list the requirement of a separate build directory. 9 years ago
aclocal.m4 Remove vestigial configure search for riscv-isa-run/spike 10 years ago
config.h.in Remove the platform interface 9 years ago
configure Don't link build-id string 8 years ago
configure.ac Don't link build-id string 8 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 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 --enable-32bit flag to the configure command.

The install step installs 64-bit build products into $RISCV/riscv64-unknown-elf, and 32-bit versions into $RISCV/riscv32-unknown-elf.