In this workshop participants will get an introduction to RISC-V architecture, hands-on tutorial to build a simple OS kernel, bootloader, and hardware interfacing.
In the hands-on tutorial we build a simple bootloader and boot StarFive VisionFive2 board.
To follow this tutorial, participants need a Linux machine with an Internet connection.
- Preferred OS: Ubuntu 22.04 LTS 64 bit.
- Ubuntu packages
- autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev
- device-tree-compiler
- u-boot-tools
- Machine or a laptop with a USB port.
To build binaries, we need to setup the GNU tool chain.
You can try to build the sample C program using this toolchain.
Spike RISC-V simulater helps to simulate the program on x86 Linux.
Build the example boot loader using the RISC-V toolchain.
To test the build bootloader we need a QEMU emulator with qemu-system-riscv64 capability.