RISC-V: Difference between revisions

0x4A6F (talk | contribs)
No edit summary
Onny (talk | contribs)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Expansion}}
{{Expansion}}<!-- TODO: write preface -->
 
<!-- TODO: write preface -->
 
== Supported devices ==
== Supported devices ==


Line 77: Line 74:
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.<ref>[https://github.com/NixOS/nixpkgs/issues/300550 Nixpkgs #300550]</ref><ref>[https://github.com/NixOS/nixpkgs/issues/300618 Nixpkgs #300618]</ref>
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.<ref>[https://github.com/NixOS/nixpkgs/issues/300550 Nixpkgs #300550]</ref><ref>[https://github.com/NixOS/nixpkgs/issues/300618 Nixpkgs #300618]</ref>


<div class="table-responsive">
<div class="table">
{|class="table"
{|class="table"
!width="2%"| Manufacturer
!width="2%"| Manufacturer
Line 124: Line 121:


== Binary cache ==
== Binary cache ==
 
Example configuration snippet which can be used to add two third-party binary caches with RISCV support<syntaxhighlight lang="nix">
nix.settings = {
  substituters = [
    "https://cache.nichi.co"
    "https://cache.ztier.in"
  ];
  trusted-public-keys = [
    "hydra.nichi.co-0:P3nkYHhmcLR3eNJgOAnHDjmQLkfqheGyhZ6GLrUVHwk="
    "cache.ztier.link-1:3P5j2ZB9dNgFFFVkCQWT3mh0E+S3rIWtZvoql64UaXM="
  ];
  experimental-features = [
    "nix-command"
    "flakes"
  ];
};
</syntaxhighlight>Known third-party binary caches with RISCV support
* [https://github.com/misuzu/nixos-vf2/blob/master/flake.nix#L3 misuzu]
* [https://github.com/misuzu/nixos-vf2/blob/master/flake.nix#L3 misuzu]
* [https://hydra.nichi.co/ by Nick Cao]


== NixOS Support ==
== NixOS Support ==