2022-11-04 12:56:02 -04:00
|
|
|
## Build the SD image
|
2022-10-08 11:27:03 -04:00
|
|
|
- ``nix-build "<nixpkgs/nixos>" -A config.system.build.sdImage -I nixos-config=iso.nix``
|
|
|
|
|
|
|
|
- ``iso.nix``
|
|
|
|
```nix
|
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
2022-10-09 22:44:16 -04:00
|
|
|
imports = [ <nixos-hardware/starfive/visionfive/v1/sd-image-installer.nix> ];
|
|
|
|
# or imports = [ "${nixos-hardware-directory}/starfive/visionfive/v1/sd-image-installer.nix" ];
|
2022-10-08 11:27:03 -04:00
|
|
|
|
2022-10-09 22:44:16 -04:00
|
|
|
nixpkgs.crossSystem = {
|
|
|
|
config = "riscv64-unknown-linux-gnu";
|
|
|
|
system = "riscv64-linux";
|
|
|
|
};
|
2022-10-08 11:27:03 -04:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-11-04 12:56:02 -04:00
|
|
|
## Relevant documentation
|
2022-10-08 11:27:03 -04:00
|
|
|
- Flashing
|
2022-11-04 12:56:02 -04:00
|
|
|
- https://doc-en.rvspace.org/VisionFive/Quick_Start_Guide/VisionFive_QSG/hardware_connection.html
|
|
|
|
- https://doc-en.rvspace.org/VisionFive/Quick_Start_Guide/VisionFive_QSG/using_xmodem1.html
|
2022-10-08 11:27:03 -04:00
|
|
|
- Recovery
|
2022-11-04 12:56:02 -04:00
|
|
|
- https://doc-en.rvspace.org/VisionFive/Quick_Start_Guide/VisionFive_QSG/hardware_setup.html
|
|
|
|
- https://doc-en.rvspace.org/VisionFive/Quick_Start_Guide/VisionFive_QSG/for_maclinux4.html
|