User:Dlan/RISC-V

From Gentoo Wiki
Jump to:navigation Jump to:search


Host dev platform

Following are collected information for setting up a typical Arch=amd64 Gentoo Linux to do RISC-V development.

Cross Toolchain

Install the crossdev utils

root #emerge --ask sys-devel/crossdev

Generate cross toolchains, including gcc, glibc, binutils, gdb

root #crossdev --target riscv64-unknown-linux-gnu

SPIKE

Install spike, please find this package in riscv overlay

root #emerge --ask app-emulation/spike

Target Device

These articles are written for describing how to running an ARCH=riscv Gentoo Linux on real RISC-V hardware or virtual machine(VM).