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 ++++++++++++++++ ...figs-turris_mox-increase-space-for-the-ke.patch | 25 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/patches/include-configs-turris_mox-increase-space-for-the-ke.patch (limited to 'pkgs') 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 diff --git a/pkgs/patches/include-configs-turris_mox-increase-space-for-the-ke.patch b/pkgs/patches/include-configs-turris_mox-increase-space-for-the-ke.patch new file mode 100644 index 0000000..e3071ac --- /dev/null +++ b/pkgs/patches/include-configs-turris_mox-increase-space-for-the-ke.patch @@ -0,0 +1,25 @@ +From 0a1ccf4cf10c06bac6d8221d0557a67a38f647a6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= +Date: Mon, 3 Oct 2022 20:02:10 +0200 +Subject: [PATCH] include/configs/turris_mox: increase space for the kernel + +--- + include/configs/turris_mox.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/configs/turris_mox.h b/include/configs/turris_mox.h +index 6640ee495d..bc96b90138 100644 +--- a/include/configs/turris_mox.h ++++ b/include/configs/turris_mox.h +@@ -46,7 +46,7 @@ + "pxefile_addr_r=0x4e00000\0" \ + "fdt_addr_r=0x4f00000\0" \ + "kernel_addr_r=0x5000000\0" \ +- "ramdisk_addr_r=0x8000000\0" \ ++ "ramdisk_addr_r=0x9000000\0" \ + "fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ + "bootcmd_rescue=" TURRIS_MOX_BOOTCMD_RESCUE "\0" \ + BOOTENV +-- +2.37.2 + -- cgit v1.2.3