NixOS on RISCV/VisionFive 2: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Add guide on how to flash image
Line 90: Line 90:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
nix build .#
nix build .#
</syntaxhighlight>
After successfull build, flash the resulting file in the directory <code>results/sd-image</code> to the target device, in this example the SD-card <code>/dev/mmcbl</code>. Note that everything on the target device gets erased.
<syntaxhighlight lang="bash">
dd if=result/sd-image/nixos-sd-image-23.11pre-git-riscv64-linux-starfive-visionfive2.img of=/dev/mmcblk0 status=progress
</syntaxhighlight>
</syntaxhighlight>