Skip to content
README.md 477 B
Newer Older
Rodrigo Arias Mallo's avatar
Rodrigo Arias Mallo committed
# NixOS on RISC-V
This repository contains NixOS configurations for different RISC-V machines.

## QEMU

Rodrigo Arias Mallo's avatar
Rodrigo Arias Mallo committed
To boot the system in QEMU, first enter the development shell:
Rodrigo Arias Mallo's avatar
Rodrigo Arias Mallo committed
```
$ nix develop
```
Rodrigo Arias Mallo's avatar
Rodrigo Arias Mallo committed
Then run the boot script:

```
$ ./boot.sh
```

To prevent the GC from erasing the system:

```
$ nix build .#devShells.x86_64-linux.default --out-link result-env
```

## FPGA

```
. fpga/env.sh
fpga/fpgactl -w /path/to/bitstream -b openpiton2.bin -k kernel-nixos -r initrd-nixos
```