RISC-V: Difference between revisions

From NixOS Wiki
m Give references their own section
Fgaz (talk | contribs)
Move GHC links to the GHC page
Line 139: Line 139:
* [https://github.com/adoptium/temurin-build/issues/2726#issuecomment-1661380917 OpenJDK]
* [https://github.com/adoptium/temurin-build/issues/2726#issuecomment-1661380917 OpenJDK]
* [[RISC-V/GHC| GHC]]
* [[RISC-V/GHC| GHC]]
** [https://gitlab.haskell.org/ghc/ghc/-/issues/16783 Main issue]
** [https://gitlab.haskell.org/ghc/ghc/-/issues/23179 NCG]
** [https://gitlab.haskell.org/ghc/ghc/-/commit/31e265c1df948d1bcc82d08affe995fd1d1c1438 LLVM backend]
** '''[https://gitlab.haskell.org/ghc/ghc/-/issues/23519 Binary tarballs] (needed for bootstrap)'''
** [https://gitlab.haskell.org/ghc/ghc/-/issues/?label_name%5B%5D=RISC-V RISC-V Label]
* [https://bugs.kde.org/show_bug.cgi?id=468575 Valgrind]
* [https://bugs.kde.org/show_bug.cgi?id=468575 Valgrind]



Revision as of 09:06, 4 April 2024


Supported devices

Table legend:

Upstream (NixOS) supported devices

NixOS has no official support for riscv64-linux architecture on the nixpkgs-unstable and stable channel.


Community supported devices

Manufacturer Board SoC ISA CPU RAM Storage
StarFive StarFive VisionFive JH7100 RV64GC 2× SiFive U74 @ 1.5 GHz 8GB LPDDR4 microSD
StarFive StarFive VisionFive 2 JH7110 RV64GC 4× SiFive U74 @ 1.5 GHz 2GB/4GB/8GB LPDDR4 microSD, eMMC, M.2 M-Key

Special Devices

It is possible to emulate a RISC-V platform with QEMU. Programs may occasionally crash on QEMU with a segmentation fault despite working on native RISC-V hardware.[1][2]

Manufacturer Board SoC ISA CPU RAM Storage
QEMU Anything QEMU supports Anything QEMU supports Anything QEMU supports Anything QEMU supports

Installation

Getting the installer

SD card images (SBCs and similar platforms)

For riscv64 it is possible to download images from the community.

Build or download the image.

If the image has the extension .zst, it will need to be decompressed before writing to installation device. Use nix-shell -p zstd --run "unzstd <img-name>.img.zst" to decompress the image.


Binary cache

NixOS Support

All RISC-V platforms are experimental for the time being.

There is a dedicated room for the upstream effort on Matrix, matrix:r/riscv:nixos.org.

Awaiting upstream RISC-V support

Resources

Subpages

The following is a list of all sub-pages of the NixOS on RISC-V topic.


The following is a list of all sub-pages of the RISC-V/Meetings.


References