From b2f966f7f803eed11f7e8fedbbeca89840fb73ce Mon Sep 17 00:00:00 2001 From: Mariappan Ramasamy <1221719+nappairam@users.noreply.github.com> Date: Fri, 1 May 2026 23:13:33 +0800 Subject: [PATCH] ubootRock3C: init at 2026.04 Add U-Boot package for Radxa Rock 3C single-board computer (Rockchip RK3566). Uses the rock-3c-rk3566_defconfig with armTrustedFirmwareRK3568 BL31 and rkbin RK3566 TPL. Installs idbloader, u-boot.itb, and rockchip combined images for both eMMC/SD and SPI flash boot. --- pkgs/misc/uboot/default.nix | 16 ++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 17 insertions(+) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 404191d92372..f4557ab8dd3e 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -791,6 +791,22 @@ in filesToInstall = [ "u-boot.bin" ]; }; + ubootRock3C = buildUBoot { + defconfig = "rock-3c-rk3566_defconfig"; + extraMeta.platforms = [ "aarch64-linux" ]; + env = { + BL31 = "${armTrustedFirmwareRK3568}/bl31.elf"; + ROCKCHIP_TPL = rkbin.TPL_RK3566; + }; + filesToInstall = [ + "idbloader.img" + "idbloader-spi.img" + "u-boot.itb" + "u-boot-rockchip.bin" + "u-boot-rockchip-spi.bin" + ]; + }; + ubootRock4CPlus = buildUBoot { defconfig = "rock-4c-plus-rk3399_defconfig"; extraMeta.platforms = [ "aarch64-linux" ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b4018f7b1a9..f41be5174b26 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8757,6 +8757,7 @@ with pkgs; ubootRaspberryPi4_32bit ubootRaspberryPi4_64bit ubootRaspberryPiZero + ubootRock3C ubootRock4CPlus ubootRock5ModelB ubootRock64