NixOS on RISCV/VisionFive 2: Difference between revisions

m Add link to official boot mode documentation
m Fix todo
Line 111: Line 111:
See official documentation https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/boot_mode_settings.html .
See official documentation https://doc-en.rvspace.org/VisionFive2/Quick_Start_Guide/VisionFive2_SDK_QSG/boot_mode_settings.html .


TODO: boot from SDIO or QSPI mode for SD card?
First enable booting from SD-card by setting jumper 1 and 2 to "FLASH/QSPI mode" (both QSPI and SDIO mode support booting from an SD card):


First enable booting from SD-card by enabling jumper 1 and 2
[[File:Visionfive_2_jumper_config_sdcard_boot.jpg|border|frameless|803x803px]]


[[File:Visionfive_2_jumper_config_sdcard_boot.jpg|border|frameless|803x803px]]


For UART access, wire GND (black), RX (blue) and TX (purple) to your adapter
For UART access, wire GND (black), RX (blue) and TX (purple) to your adapter
[[File:Visionfive2 uart wiring.jpg|none|thumb|802x802px]]Update board firmware<syntaxhighlight lang="bash">
[[File:Visionfive2 uart wiring.jpg|none|thumb|802x802px]]Update board firmware
 
 
Update board firmware<syntaxhighlight lang="bash">
sudo visionfive2-firmware-update-flash
sudo visionfive2-firmware-update-flash
</syntaxhighlight>Bootstrap NixOS system configuration at <code>/etc/nixos/configuration.nix</code><syntaxhighlight lang="bash">
</syntaxhighlight>Bootstrap NixOS system configuration at <code>/etc/nixos/configuration.nix</code><syntaxhighlight lang="bash">
nixos-generate-config
nixos-generate-config
</syntaxhighlight>
</syntaxhighlight>