mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
starfive visionfive2: Add firmware update script.
This commit is contained in:
3 files changed
+50
-4
No files matched your search
@@ -83,3 +83,31 @@ hardware.deviceTree.overlays = [{
|
||||
"${nixos-hardware}/starfive/visionfive/v2/visionfive-2-v1.2a-8GB.dts";
|
||||
}];
|
||||
```
|
||||
# Updating the bootloader
|
||||
## SD-Card
|
||||
Install the firmware update script
|
||||
``` nix
|
||||
environment.systemPackages = [
|
||||
(pkgs.callPackage
|
||||
"${nixos-hardware}/starfive/visionfive/v2/firmware.nix"
|
||||
{ }).updater-sd
|
||||
];
|
||||
```
|
||||
Then run as root
|
||||
``` sh
|
||||
visionfive2-firmware-update-sd
|
||||
```
|
||||
## SPI Flash
|
||||
Install the firmware update script
|
||||
``` nix
|
||||
environment.systemPackages = [
|
||||
(pkgs.callPackage
|
||||
"${nixos-hardware}/starfive/visionfive/v2/firmware.nix"
|
||||
{ }).updater-flash
|
||||
];
|
||||
```
|
||||
Then run as root
|
||||
``` sh
|
||||
visionfive2-firmware-update-flash
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user