Skip to content

Commit 1189b6d

Browse files
authored
uboot: init Pine64 Quartz64 B (#394086)
2 parents 24c5472 + 7f390bd commit 1189b6d

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

pkgs/by-name/rk/rkbin/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ stdenv.mkDerivation {
2525
passthru = {
2626
BL31_RK3568 = "${rkbin}/bin/rk35/rk3568_bl31_v1.44.elf";
2727
BL31_RK3588 = "${rkbin}/bin/rk35/rk3588_bl31_v1.47.elf";
28+
TPL_RK3566 = "${rkbin}/bin/rk35/rk3566_ddr_1056MHz_v1.23.bin";
2829
TPL_RK3568 = "${rkbin}/bin/rk35/rk3568_ddr_1056MHz_v1.23.bin";
2930
TPL_RK3588 = "${rkbin}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin";
3031
};

pkgs/misc/arm-trusted-firmware/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ in
179179
platformCanUseHDCPBlob = true;
180180
};
181181

182+
armTrustedFirmwareRK3568 = buildArmTrustedFirmware rec {
183+
extraMakeFlags = [ "bl31" ];
184+
platform = "rk3568";
185+
extraMeta.platforms = [ "aarch64-linux" ];
186+
filesToInstall = [ "build/${platform}/release/bl31/bl31.elf" ];
187+
};
188+
182189
armTrustedFirmwareRK3588 = buildArmTrustedFirmware rec {
183190
extraMakeFlags = [ "bl31" ];
184191
platform = "rk3588";

pkgs/misc/uboot/default.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
armTrustedFirmwareAllwinnerH616,
2525
armTrustedFirmwareRK3328,
2626
armTrustedFirmwareRK3399,
27+
armTrustedFirmwareRK3568,
2728
armTrustedFirmwareRK3588,
2829
armTrustedFirmwareS905,
2930
buildPackages,
@@ -606,6 +607,20 @@ in
606607
filesToInstall = [ "u-boot.rom" ];
607608
};
608609

610+
ubootQuartz64B = buildUBoot {
611+
defconfig = "quartz64-b-rk3566_defconfig";
612+
extraMeta.platforms = [ "aarch64-linux" ];
613+
BL31 = "${armTrustedFirmwareRK3568}/bl31.elf";
614+
ROCKCHIP_TPL = rkbin.TPL_RK3568;
615+
filesToInstall = [
616+
"idbloader.img"
617+
"idbloader-spi.img"
618+
"u-boot.itb"
619+
"u-boot-rockchip.bin"
620+
"u-boot-rockchip-spi.bin"
621+
];
622+
};
623+
609624
ubootRaspberryPi = buildUBoot {
610625
defconfig = "rpi_defconfig";
611626
extraMeta.platforms = [ "armv6l-linux" ];

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12738,6 +12738,7 @@ with pkgs;
1273812738
armTrustedFirmwareQemu
1273912739
armTrustedFirmwareRK3328
1274012740
armTrustedFirmwareRK3399
12741+
armTrustedFirmwareRK3568
1274112742
armTrustedFirmwareRK3588
1274212743
armTrustedFirmwareS905
1274312744
;
@@ -13312,6 +13313,7 @@ with pkgs;
1331213313
ubootQemuArm
1331313314
ubootQemuRiscv64Smode
1331413315
ubootQemuX86
13316+
ubootQuartz64B
1331513317
ubootRaspberryPi
1331613318
ubootRaspberryPi2
1331713319
ubootRaspberryPi3_32bit

0 commit comments

Comments
 (0)