diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-03 21:50:22 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-03 21:50:22 +0200 |
commit | 018ea866e847e249b5ae59f8711f4b8e59c8f4ac (patch) | |
tree | 7319a75aff844dcbda0dac6c70ad1abc0e0b8aa7 /pkgs | |
parent | f0a0bbb06d7e5c345ad8887dbd5f713cdf467ce3 (diff) | |
download | nixturris-018ea866e847e249b5ae59f8711f4b8e59c8f4ac.tar.gz nixturris-018ea866e847e249b5ae59f8711f4b8e59c8f4ac.tar.bz2 nixturris-018ea866e847e249b5ae59f8711f4b8e59c8f4ac.zip |
NOR firmware
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 19 | ||||
-rw-r--r-- | pkgs/patches/include-configs-turris_mox-increase-space-for-the-ke.patch | 25 |
2 files changed, 44 insertions, 0 deletions
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?= <cynerd@email.cz> +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 + |