NixOS on ARM/Radxa ROCK 4: Difference between revisions

Add NixOS on ROCK 4 page
 
Update to reflect that PRs were merged into nixos-rockchip and minor related cleanup.
Line 33: Line 33:
* '''PCIe''': M.2 M Key M connector (4-lane PCIe 2.1) supports NVMe SSD
* '''PCIe''': M.2 M Key M connector (4-lane PCIe 2.1) supports NVMe SSD


The @msgilligan PR below has been tested with both the ROCK 4B+ and ROCK 4 SE variants.
The [https://github.com/nabam/nixos-rockchip nixos-rockchip] SD-card images have been tested with both the ROCK 4B+ and ROCK 4 SE variants.


== Status ==
== Status ==
Line 51: Line 51:
=== U-Boot Firmware ===
=== U-Boot Firmware ===


* The @msgilligan PR rely's on `nixos-rockchip` which in turn uses the mainline U-Boot repository.
* `nixos-rockchip` uses the mainline U-Boot repository.
* There is also support for ROCK 4 U-Boot in Nixpkgs, but testing and documentation for using this version of U-Boot is not available here yet.
* There is also support for ROCK 4 U-Boot in Nixpkgs, but testing and documentation for using this version of U-Boot is not available here yet.


== System configuration ==
== System configuration ==


Use the instructions in the [https://github.com/nabam/nixos-rockchip/blob/main/README.md README], but until the PR is merged, you'll need to checkout the PR branch.
Use the instructions in the [https://github.com/nabam/nixos-rockchip/blob/main/README.md README].


Use the following command to build the image:
Use the following command to build the Rock 4B image:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 64: Line 64:
</syntaxhighlight>
</syntaxhighlight>


=== @msgilligan's PR to @nabam's flake ===
or for the Rock 4SE:
 
<syntaxhighlight lang="bash">
nix build .#RadxaRock4SE
</syntaxhighlight>
 
=== @nabam's nixos-rockchip ===


Nix flake for building several Rockchip SBC images, see [https://github.com/nabam/nixos-rockchip GitHub nabam/nixos-rockchip]
Nix flake for building several Rockchip SBC images, see [https://github.com/nabam/nixos-rockchip GitHub nabam/nixos-rockchip]
@msgilligan's WIP PR to add ROCK 4 support (WIP, but tested on ROCK 4B+ and ROCK 4 SE): [https://github.com/nabam/nixos-rockchip/pull/27 nabam/nixos-rockchip PR #27]