arm-trusted-firmware: init

ARM trusted firmware is required as part of the boot process on some ARMv8-A
boards. Currently, only the RK3328 is supported in nixpkgs.

This makes the Rock64 u-boot image bootable.
This commit is contained in:
Ben Wolsieffer
2018-03-18 18:53:12 +02:00
committed by Tuomas Tynkkynen
parent 0264c9bb47
commit 0ab76c5a4e
3 changed files with 70 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{ buildUBoot, fetchFromGitHub }: buildUBoot rec {
{ lib, buildUBoot, fetchFromGitHub, armTrustedFirmwareRK3328 }: buildUBoot rec {
name = "uboot-${defconfig}-${version}";
version = "2018.01";
@@ -9,7 +9,7 @@
sha256 = "1vmv7q9yafsc0zivd0qdfmf930dvhzkf4a3j6apxxgx9g10wgwrg";
};
extraMakeFlags = [ "u-boot.itb" "all" ];
extraMakeFlags = [ "BL31=${armTrustedFirmwareRK3328}/bl31.elf" "u-boot.itb" "all" ];
postBuild = ''
./tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.bin idbloader.img
cat spl/u-boot-spl.bin >> idbloader.img