NixOS on RISCV/VisionFive 2: Difference between revisions
Malteneuss (talk | contribs) m Add link to official boot mode documentation |
Malteneuss (talk | contribs) 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 . | ||
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): | |||
[[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> |