DYLAN BAUTISTA CASES f05c04dee8
Some checks failed
CI / build:qemu-lagarto-ox (push) Has been cancelled
Enable train size to SPEC CPU benchmarks.
2025-04-16 14:43:53 +02:00
2024-08-23 21:22:22 +02:00
2024-10-11 11:01:48 +02:00
2024-10-11 11:05:45 +02:00
2024-10-02 14:50:33 +02:00
2024-09-25 10:22:17 +02:00
2024-12-09 10:47:01 +01:00
2024-09-25 10:24:31 +02:00
2025-01-24 17:47:47 +01:00
2024-10-11 09:40:40 +02:00
2024-12-09 10:47:01 +01:00
2024-10-25 13:05:29 +02:00

NixOS on RISC-V

This repository contains NixOS configurations for different RISC-V machines.

Lagarto Ox on FPGA Alveo U55C

To build the system and boot it on an FPGA of the MEEP cluster, you can run the following:

$ nix develop -L '.#lagarto-ox' --command fpga/run-remotely.sh fpgalogin1:ci

To do it manually, you can first enter the development shell:

$ nix develop -L '.#lagarto-ox'

Then upload the files to the target machine (fpgalogin1 by default):

$ fpga/upload.sh

Then connect to the fpgalogin1 machine, allocate a FPGA node and load the environment there:

$ cd nixos
$ . env.sh

Flash the images to the FPGA:

$ ./fpgactl -w bitstream.bit -b opensbi.bin -k kernel.bin -i initrd.bin -r rootfs.img

And monitor the serial line:

$ picocom -q -b 115200 $FPGACTL_UART

It should boot without any user interaction.

Lagarto Ox on QEMU

To build the system and boot it on QEMU, you can run the following:

$ nix develop -L '.#qemu-lagarto-ox'

Then, simply run boot.sh to start the QEMU system.

$ ./boot.sh

To execute the RISC-V benchmark suite on boot stage 2, run boot.sh with the bench2 option.

$ ./boot.sh bench2

To open a debug shell on boot stage 2, run boot.sh with the debug2 option.

$ ./boot.sh debug2

Lagarto Hun

WIP

Description
No description provided
Readme 642 KiB
Languages
Nix 41.5%
Shell 21.3%
C 15.5%
Perl 9.9%
Makefile 8.2%
Other 3.6%