NixOS RISC-V
An ongoing effort porting NixOS to the RISC-V architecture through cross compilation
Supported Boards
VisionFive 2
Build
nix build .#hydraJobs.visionfive2
May have to change
hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
as appropriate if your board is v1.2a
Info
Prebuilt image is available at https://hydra.nichi.co/job/nixos/riscv/visionfive2/latest
The resulting image includes u-boot, see VisionFive 2 Single Board Computer Quick Start Guide for instructions on booting from sdcard.
Known Issues
Ethernet ports do work to a certain extent, but far from approaching the rated 1Gbps, could be due to misconfigurations in the device tree.
Drivers for PCIe, USB and GPU (and many other peripherals) are not included yet.
Acknowledgement
This work is sponsored by PLCT Lab.