TinyEMU RISC-V Buildroot
News
- 2018-10-20: added musl support for RISC-V 32 and 64 bits (from here)
Introduction
This page provides Buildroot patches to do the following:
- RISC-V 32 bit and 64 bit support.
- Built-in RISC-V toolchain:
- gcc 7.3.0
- glibc 2.27 (riscv64), glibc 2.26 (riscv32) or musl
- Linux 4.15 kernel headers
- Support to compile the toolchain for the target (RISC-V or
x86). This feature was removed from the mainstream buildroot.
- Configuration examples with X Window and Mesa 3D support.
- Used to build the JSLinux RISC-V and x86 images.
- Originally based
on the Sifive buildroot
fork, branch sifive, 2016-07-09 00:12:09, commit 0fd471394450a4dfde0f21a7f7abe51be5800a3f.
Note: The development version of Buildroot now supports RISC-V 64, but
it lacks 32 bit support and several other features from this
buildroot port.
Download
Buildroot archive:
buildroot-riscv-2018-10-20.tar.gz
Installation
We assume the installation is done on a Linux host. It was tested with a
Fedora 21 x86_64 distribution.
- Untar the buildroot-riscv-xxxx-yy-zz.tar.gz archive.
- Copy the default RISC-V 64 or RISC-V 32 configuration:
cp configs/riscv64_defconfig .config
or
cp configs/riscv32_defconfig .config
(The X Window configurations used for JSLinux are available in riscv64_xwin_defconfig and riscv32_xwin_defconfig. More packages are enabled so the compilation is longer)
- Edit the configuration and save it (you can change nothing as a
first try):
make menuconfig
- Generate the image (it takes a few minutes with the default
configuration):
make
- If you want to run the generated image with TinyEMU: