> UART Name g_UART IntfLabel m_axi_uart SyncClk {Label CLK0 Freq 50000000 > Name clk_i} BaseAddr 0x0 Number 2 AxiAddrWidth 0 AxiDataWidth 0 AxiIdWidth > 0 AxiUserWidth 0 Mode normal IRQ uart_irq
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.
Description
Languages
Nix
41.5%
Shell
21.3%
C
15.5%
Perl
9.9%
Makefile
8.2%
Other
3.6%