Skip to content

Releases: zhaofengli/nixos-riscv64

StarFive VisionFive and HiFive Unmatched SD Images

27 Feb 07:04
Compare
Choose a tag to compare

Two new images are available:

  • nixos-sd-image-visionfive.zst: Minimal SD image for the StarFive VisionFive board.
  • nixos-sd-image-unmatched.zst: Minimal SD image for the HiFive Unmatched. It requires U-Boot to be installed to the SPI flash beforehand (see README).

Note that the images were still built on an older nixpkgs version from January. A rebased tree is currently being built. Other images (e.g., QEMU) are available in past releases.

Thanks to StarFive/RVspace for sponsoring the VisionFive board ❤️

HiFive Unmatched SD Image & U-Boot SPI Installer

18 Jan 04:24
Compare
Choose a tag to compare

Two new images are available for the HiFive Unmatched:

  • uboot-unmatched-spi-installer.img - This is a minimal SD image that installs U-Boot into the SPI flash.
  • nixos-sd-image-unmatched.zst - This is a pre-built NixOS SD image for the HiFive Unmatched. It requires U-Boot to be installed to the SPI flash beforehand.

New QEMU Images

16 Jan 04:56
Compare
Choose a tag to compare
New QEMU Images Pre-release
Pre-release

HiFive Unmatched

For the HiFive Unmatched, you still need to install manually from another distribution using nixos-install. Now the binary cache contains more packages.

Graphical QEMU Image

A new graphical QEMU image is available, showcasing Firefox and SuperTuxKart on RISC-V NixOS:

20220115_20h30m23s_grim
20220115_21h21m49s_grim

After extracting nixos-sd-image-riscv64-qemu-2022011500.tar.xz, run launch.sh to start the VM.

The script will automatically create nixos-riscv64-qemu.raw in your current directory to persist the VM state. The image has the binary cache pre-configured, and you can reconfigure the machine by editing /etc/nixos/configuration.nix and running sudo nixos-rebuild switch.

The sources of this image can be found here.

Checkpoint

03 Jun 02:31
Compare
Choose a tag to compare
Checkpoint Pre-release
Pre-release

Update 2021/10/19 - An updated SD image was uploaded. It was still built with the older tree at 57bdaf3b670cf07443d6cb6047bb3ffe1964bbd7 (2021/06/12), but with nixos/modules/profiles/installation-device.nix pulled in so autologin works.

On the rebased riscv tree, a big portion of the tier2 packages have been built and uploaded to the binary cache.

Bootstrap Tools

29 May 17:53
Compare
Choose a tag to compare
Bootstrap Tools Pre-release
Pre-release

oxalica's bootstrap tools from NixOS/nixpkgs#115406

{
  busybox = import <nix/fetchurl.nix> {
    url = "https://github.com/zhaofengli/unmatched-nixos/releases/download/bootstrap-tools/jax3aa21mm2vfpmiq9785dv1z45gmrfq-busybox";
    sha256 = "26016bae6b331531c7cef5a4feef7206654e9f033257f5edc4c843d0d5972a3d";
    executable = true;
  };

  bootstrapTools = import <nix/fetchurl.nix> {
    url = "https://github.com/zhaofengli/unmatched-nixos/releases/download/bootstrap-tools/96frrj9v1ayjmqa59dip7g82y9wyrdjy-bootstrap-tools.tar.xz";
    sha256 = "16e888484403f88969f509adb39a8506d74d0ecec8a01db643d8492cd4e80600";
  };
}

pkgs/stdenv/linux/bootstrap-files/riscv64.nix

{
  busybox = import <nix/fetchurl.nix> {
    url = "https://github.com/zhaofengli/unmatched-nixos/releases/download/bootstrap-tools/busybox";
    sha256 = "071lb029kbrynha7z0h15107jwxzpkqyqqdwvdvb8n9b5dch9lv0";
    executable = true;
  };

  bootstrapTools = import <nix/fetchurl.nix> {
    url = "https://github.com/zhaofengli/unmatched-nixos/releases/download/bootstrap-tools/bootstrap-tools.tar.xz";
    sha256 = "0wpyy4qw33p737f46302ayisdi1cbw5ndw9iz4g87vsrxfg8m31f";
  };
}