Project:RISC-V
From Gentoo Wiki
RISC-V Development | |
---|---|
Description | Gentoo RISC-V architecture support project. |
Project email | riscv@gentoo.org |
IRC channel | #gentoo-riscv (webchat) |
Lead(s) |
No lead election date set |
Member(s) |
|
Subproject(s) (and inherited member(s)) |
(none) |
Parent Project | Gentoo |
Project listing |
The RISC-V project is an effort to bring first-class RISC-V CPU architecture support in Gentoo.
Status
Riscv64 stages are available via the normal Gentoo download page, and a set of packages in the Gentoo repository is keyworded. We have stages for rv64gc and rv32gc, hard(d)- and soft-float, openrc and systemd, glibc and musl; follow the link for the full list of downloads.
qemu-riscv64 can run riscv64 binaries just fine. This way one can also test in an emulated chroot.
What needs to be done
Things to happen yet:
- Get riscv32 running somehow (fails due to bugs in qemu user mode emulation)
- Bonus: provide a bootable image to make setup easier (flash to SD card directly rather than needing to do a normal Gentoo install with install media; arm would benefit from this too).
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.
Documentation
- TODO: Describe arch-specific gotchas (alignment requirements, immediate encodings, PIC story).
- RISC-V ABIs
- RISC-V Multilib
- RISC-V Qemu setup
- RISC-V hardware list