Rodrigo Arias Mallo
254d1bd82b
Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03) |
||
---|---|---|
fpga | ||
.gitignore | ||
alveo-uart-sbi-hack.patch | ||
boot.sh | ||
busybox-debug.patch | ||
configuration.nix | ||
flake.lock | ||
flake.nix | ||
lagarto-hun.nix | ||
lagarto-ox.nix | ||
no-compressed.nix | ||
NOTES.md | ||
opensbi-lagarto-hun.patch | ||
overlay.nix | ||
ox-alveo-platform-plic.patch | ||
ox-alveo-platform.patch | ||
ox-plic.dts | ||
ox.dts | ||
README.md | ||
u-boot-debug.patch | ||
unalign.c | ||
vm.nix | ||
xavi.dts |
NixOS on RISC-V
This repository contains NixOS configurations for different RISC-V machines.
QEMU
To boot the system in QEMU, first enter the development shell:
$ nix develop
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
Lagarto Hun on FPGA Alveo U55C
First build required dependencies:
$ nix develop '.#lagarto-hun'
Then upload to destination:
$ fpga/upload.sh
And then boot the system there:
cucu$ ./boot.sh
...
In the U-Boot prompt, paste the commands of the uboot.env
file.