From 018ea866e847e249b5ae59f8711f4b8e59c8f4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Oct 2022 21:50:22 +0200 Subject: NOR firmware --- pkgs/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'pkgs/default.nix') diff --git a/pkgs/default.nix b/pkgs/default.nix index a64757f..b16795d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -19,6 +19,25 @@ let #crypto-wrapper = callPackage ./crypto-wrapper { }; #certgen = python3Packages.callPackage ./certgen { }; + # NOR Firmwares + ubootTurrisMox = buildUBoot { + defconfig = "turris_mox_defconfig"; + extraMeta.platforms = ["aarch64-linux"]; + filesToInstall = ["u-boot.bin"]; + extraPatches = [ ./patches/include-configs-turris_mox-increase-space-for-the-ke.patch ]; + }; + armTrustedFirmwareTurrisMox = buildArmTrustedFirmware rec { + platform = "a3700"; + extraMeta.platforms = ["aarch64-linux"]; + extraMakeFlags = ["USE_COHERENT_MEM=0" "CM3_SYSTEM_RESET=1" "FIP_ALIGN=0x100"]; + filesToInstall = ["build/${platform}/release/bl31.bin"]; + }; + ubootTurrisOmnia = buildUBoot { + defconfig = "turris_omnia_defconfig"; + extraMeta.platforms = ["armv7l-linux"]; + filesToInstall = ["u-boot-spl.kwb"]; + }; + }; in turrispkgs -- cgit v1.2.3