uboot: add Rock64 support

The bootloader is currently non-functional because it lacks the ARM Trusted
Firmware image (bl31.elf).

authored by Ben Wolsieffer and committed by Tuomas Tynkkynen 6f5a0bde 58045472

+28
+26
pkgs/misc/uboot/rock64.nix
···
··· 1 + { buildUBoot, fetchFromGitHub }: buildUBoot rec { 2 + name = "uboot-${defconfig}-${version}"; 3 + version = "2018.01"; 4 + 5 + src = fetchFromGitHub { 6 + owner = "ayufan-rock64"; 7 + repo = "linux-u-boot"; 8 + rev = "19e31fac0dee3c4f6b2ea4371e4321f79db0f495"; 9 + sha256 = "1vmv7q9yafsc0zivd0qdfmf930dvhzkf4a3j6apxxgx9g10wgwrg"; 10 + }; 11 + 12 + extraMakeFlags = [ "u-boot.itb" "all" ]; 13 + postBuild = '' 14 + ./tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.bin idbloader.img 15 + cat spl/u-boot-spl.bin >> idbloader.img 16 + dd if=u-boot.itb of=idbloader.img seek=448 conv=notrunc 17 + ''; 18 + 19 + defconfig = "rock64-rk3328_defconfig"; 20 + filesToInstall = [ "spl/u-boot-spl.bin" "tpl/u-boot-tpl.bin" "u-boot.itb" "idbloader.img"]; 21 + 22 + extraMeta = { 23 + maintainers = [ lib.maintainers.lopsided98 ]; 24 + platforms = ["aarch64-linux"]; 25 + }; 26 + }
+2
pkgs/top-level/all-packages.nix
··· 13882 13883 ubootGuruplug = callPackage ../misc/uboot/guruplug.nix { }; 13884 13885 uclibc = callPackage ../os-specific/linux/uclibc { }; 13886 13887 uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
··· 13882 13883 ubootGuruplug = callPackage ../misc/uboot/guruplug.nix { }; 13884 13885 + ubootRock64 = callPackage ../misc/uboot/rock64.nix { }; 13886 + 13887 uclibc = callPackage ../os-specific/linux/uclibc { }; 13888 13889 uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {