NixOS on RISCV/VisionFive 2: Difference between revisions
Update mainline kernel information |
Restructure page |
||
Line 123: | Line 123: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Using the Visionfive 2 as a remote builder to build native RISCV packages for e.g. the Visionfive 2 == | == Tips and tricks == | ||
=== Using the Visionfive 2 as a remote builder to build native RISCV packages for e.g. the Visionfive 2 === | |||
Building an NixOS system image that can be flashed to an SD card or NVMe SSD requires to '''build RISCV binaries''', more specifically for the <code>"riscv64-linux"</code>platform. From a typical Intel/AMD computer we can either | Building an NixOS system image that can be flashed to an SD card or NVMe SSD requires to '''build RISCV binaries''', more specifically for the <code>"riscv64-linux"</code>platform. From a typical Intel/AMD computer we can either | ||
Line 138: | Line 140: | ||
# '''flash that resulting image onto an SD card''' or NVMe SSD using a call similar to <code>zstdcat result/sd-image/nixos-sd-image-23.11.20230703.ea4c80b-riscv64-linux.img.zst | sudo dd of=/dev/mmcblk0 bs=100M status=progress</code> and place that card into the Visionfive 2. | # '''flash that resulting image onto an SD card''' or NVMe SSD using a call similar to <code>zstdcat result/sd-image/nixos-sd-image-23.11.20230703.ea4c80b-riscv64-linux.img.zst | sudo dd of=/dev/mmcblk0 bs=100M status=progress</code> and place that card into the Visionfive 2. | ||
== Deploy and Update the Visionfive 2 NixOS system once it's running NixOS == | === Deploy and Update the Visionfive 2 NixOS system once it's running NixOS === | ||
Once the Pi 5 is running NixOS, you can update it with newer NixOS system configurations using e.g. the usual <code>nix-rebuild</code> | Once the Pi 5 is running NixOS, you can update it with newer NixOS system configurations using e.g. the usual <code>nix-rebuild</code> | ||