Skip to content

oscourse-tsinghua/ucore-rv

 
 

Repository files navigation

BBL-uCore: uCore OS Labs on Berkeley Boot Loader

bbl-ucore is a porting of ucore_os_lab to RISC-V architecture. It's built on top of the Berkeley Boot Loader, bbl, a supervisor execution environment for tethered RISC-V systems.

Quickstart

Installing riscv-tools

You'll need a forked verison of riscv-tools to build the toolchain for RV32. Excute the following commands to get started quickly.

$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
$ git clone https://github.com/ring00/riscv-tools.git
$ git submodule update --init --recursive
$ export RISCV=/path/to/install/riscv/toolchain
$ ./build-rv32g.sh

See Installation Manual for details.

Building bbl-ucore

$ git clone https://github.com/ring00/bbl-ucore.git
$ git submodule update --init --recursive

To build all projects at once, run the following commands

$ cd labcodes
$ ./gccbuildall.sh

Read the Docs

Detailed documentation can be found here.

Releases

No releases published

Packages

No packages published

Languages

  • C 78.5%
  • Python 7.5%
  • Assembly 6.0%
  • Shell 4.3%
  • Makefile 3.0%
  • C++ 0.6%
  • Other 0.1%