uboot: add Rock64 support
The bootloader is currently non-functional because it lacks the ARM Trusted Firmware image (bl31.elf).
This commit is contained in:
parent
5804547243
commit
6f5a0bded2
26
pkgs/misc/uboot/rock64.nix
Normal file
26
pkgs/misc/uboot/rock64.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ buildUBoot, fetchFromGitHub }: buildUBoot rec {
|
||||||
|
name = "uboot-${defconfig}-${version}";
|
||||||
|
version = "2018.01";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ayufan-rock64";
|
||||||
|
repo = "linux-u-boot";
|
||||||
|
rev = "19e31fac0dee3c4f6b2ea4371e4321f79db0f495";
|
||||||
|
sha256 = "1vmv7q9yafsc0zivd0qdfmf930dvhzkf4a3j6apxxgx9g10wgwrg";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraMakeFlags = [ "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
|
||||||
|
dd if=u-boot.itb of=idbloader.img seek=448 conv=notrunc
|
||||||
|
'';
|
||||||
|
|
||||||
|
defconfig = "rock64-rk3328_defconfig";
|
||||||
|
filesToInstall = [ "spl/u-boot-spl.bin" "tpl/u-boot-tpl.bin" "u-boot.itb" "idbloader.img"];
|
||||||
|
|
||||||
|
extraMeta = {
|
||||||
|
maintainers = [ lib.maintainers.lopsided98 ];
|
||||||
|
platforms = ["aarch64-linux"];
|
||||||
|
};
|
||||||
|
}
|
@ -13882,6 +13882,8 @@ with pkgs;
|
|||||||
|
|
||||||
ubootGuruplug = callPackage ../misc/uboot/guruplug.nix { };
|
ubootGuruplug = callPackage ../misc/uboot/guruplug.nix { };
|
||||||
|
|
||||||
|
ubootRock64 = callPackage ../misc/uboot/rock64.nix { };
|
||||||
|
|
||||||
uclibc = callPackage ../os-specific/linux/uclibc { };
|
uclibc = callPackage ../os-specific/linux/uclibc { };
|
||||||
|
|
||||||
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
|
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user