From Gentoo Wiki
Jump to: navigation, search
RISC-V development project
Description Gentoo RISC-V architecture support project
Project email
IRC channel #gentoo-riscv
Lead(s) none
No lead election date set
(and inherited member(s))
Parent Project Base System
Project listing

The RISC-V project is an effort to bring first-class RISC-V CPU architecture support in Gentoo.


Experimental stages are available, and a minimum set of packages in the Gentoo repository is keyworded.

qemu-riscv can run the binaries just fine: qemu-riscv64 -L /usr/riscv64-unknown-linux-gnu/ /usr/riscv64-unknown-linux-gnu/bin/bash This way you can also test in an emulated chroot.

What needs to be done

Things to happen yet:

  • TODO: Make stage3 autobuilds.

Keywording policy

  • ARCH=riscv is the assigned keyword.
  • No stable riscv keywords are planned for the moment.
  • For packages without obvious hardware aspect, qemu-user or qemu-system testing is sufficient for keywording ~riscv
  • Packages with hardware aspect (bootloader, drivers, ...) have to be tested on real hardware.
  • Multilib packages should get tested for both lp64d and lp64 ABI, for others lp64d is sufficient
  • When we get to stabilizations in the future, that will require testing on real hardware.


  • TODO: Describe arch-specific gotchas (alignment requirements, immediate encodings, PIC story).
  • TODO: Add external links to ISA and ABI docs.
  • RISC-V Multilib