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:
committed by
Tuomas Tynkkynen
parent
0264c9bb47
commit
0ab76c5a4e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user