NixOS on ARM/Radxa ROCK5 Model B
|Radxa ROCK5 Model B|
|Platform firmware||Vendor BSP|
|Startup order||SPI NOR Flash, eMMC, SD|
The Radxa ROCK5 Model B is a Single-Board Computer with a Rockchip RK3588 SoC.
Support of this system is YMMV (your mileage may vary), and depends on vendor-provided BSP (Board Support Package) based components.
Vendor Platform Firmware
Booting the system with the vendor-provided platform firmware may not work due to a known issue in older U-Boot.
If using the vendor-provided platform firmware is desired, renaming the kernel derivation to a shorter name should allow boot to succeed.
Community Platform Firmware
A WIP tree to build U-Boot using the infrastructure for Tow-Boot is available. (The end-result is not a proper Tow-Boot build.)
This uses a fork with some fixes, so that an installation on the SPI Flash will work, and allow OS booting from NVMe, eMMC or SD. NVMe support may be YMMV depending on the specific hardware.
The board-specific README has further notes.
Using from shared storage (SD, eMMC) or from SPI should work, and both are as supported.
$ nix-build -A radxa-rock5b
The SD or eMMC shared storage image can be flashed as usual:
# dd if=shared.disk-image.img of=/dev/XXX bs=1M oflag=direct,sync status=progress
The SPI image cannot be installed using the usual installer. For now you should follow the vendor instructions to write the
binaries/Tow-Boot.spi.bin file to SPI. In other words using
rkdeveloptool for the installation, or any other way to write to SPI flash.
None of the basic components (Kernel, HW acceleration drivers) are available from upstream NixOS.
Building a working system requires additional configuration.
Nix flake for building OS image: https://github.com/aciceri/rock5b-nixos
Flash result to a new second legacy bootable ext4 partition on the installation media
Boot into system
$ sudo nixos-rebuild switch --flake github:jonahbron/config/aciceri-rebooted-into-this#rock5b