arm/trusted-firmware-m: update to 2.3.1
PATCH 1/1 arm/trusted-firmware-m: update to 2.3.1
Update Trusted Firmware-M from 2.3.0 to the 2.3.1 release. This requires rebasing corstone1000 patches
Signed-off-by Jon Mason <[email protected]>
---
...of-cc312-differences-between-fvp-and.patch | 13 +-
...Enable-different-DRBG-configurations.patch | 11 +-
...-1000-secure-debug-waiting-in-CM-LCS.patch | 9 +-
...-remaining-GCC-v14.2-AES-type-error.patch} | 9 +-
...5-plat-cs1k-Removed-unused-variables.patch | 15 +-
...ent-of-GUIDs-in-unittests-more-clear.patch | 10 +-
...Provide-macro-identifying-free-space.patch | 9 +-
...t-Add-operation-to-duplicate-entries.patch | 13 +-
...ively-erase-blocks-when-moving-parti.patch | 10 +-
.../0010-lib-gpt-Clarify-API-operation.patch | 9 +-
...gpt-Add-metadata-only-API-operations.patch | 13 +-
...plat-cs1k-Add-flash-erase-protection.patch | 9 +-
...-unused-FWU-partitions-upon-version-.patch | 153 ------------
...one1000-Increase-FIP-partition-size.patch} | 9 +-
...lat-cs1k-Duplicate-old-images-in-FWU.patch | 217 ------------------
...one1000-keep-CM-during-secure-debug.patch} | 16 +-
...-Fix-missing-destination-offset-of-p.patch | 92 --------
...Bound-FWU-writes-to-target-partition.patch | 61 -----
.../trusted-firmware-m-corstone1000.inc | 10 +-
...c.inc => trusted-firmware-m-2.3.1-src.inc} | 20 +-
...rusted-firmware-m-scripts-native_2.3.1.bb} | 0
...m_2.3.0.bb => trusted-firmware-m_2.3.1.bb} | 0
22 files changed, 112 insertions(+), 596 deletions(-)
rename meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/{0004-Workaround-compile-errors-in-AES.patch => 0004-Build-fix-remaining-GCC-v14.2-AES-type-error.patch} (86%)
delete mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0013-plat-cs1k-Remove-unused-FWU-partitions-upon-version-.patch
rename meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/{0015-platform-corstone1000-Increase-FIP-partition-size.patch => 0013-platform-corstone1000-Increase-FIP-partition-size.patch} (88%)
delete mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0014-plat-cs1k-Duplicate-old-images-in-FWU.patch
rename meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/{0016-platform-corstone1000-Optionally-skip-provisioning.patch => 0014-platform-corstone1000-keep-CM-during-secure-debug.patch} (87%)
delete mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0017-corstone1000-fwu-Fix-missing-destination-offset-of-p.patch
delete mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0018-plat-cs1k-Bound-FWU-writes-to-target-partition.patch
rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m-2.3.0-src.inc => trusted-firmware-m-2.3.1-src.inc} (91%)
rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m-scripts-native_2.3.0.bb => trusted-firmware-m-scripts-native_2.3.1.bb} (100%)
rename meta-arm/recipes-bsp/trusted-firmware-m/{trusted-firmware-m_2.3.0.bb => trusted-firmware-m_2.3.1.bb} (100%)meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0001-CC312-alignment-of-cc312-differences-between-fvp-and.patch +8 -5
@@ -1,8 +1,8 @@ -From 4274b94aa0af175e31b8883ec6f2113133608e24 Mon Sep 17 00:00:00 2001 +From 4cfcc1af5dd1a9aaadcf42a46d5dc769977b4fed Mon Sep 17 00:00:00 2001 From: Ali Can Ozaslan <[email protected]> Date: Wed, 15 May 2024 12:12:15 +0000 -Subject: [PATCH] CC312: alignment of cc312 differences between fvp and mps3 - corstone1000 platforms +Subject: [PATCH 01/14] CC312: alignment of cc312 differences between fvp and + mps3 corstone1000 platforms Configures CC312 mps3 model same as predefined cc312 FVP configuration while keeping debug ports closed.
@@ -15,10 +15,10 @@ Upstream-Status: Inappropriate [Requires an aligment cc3xx with mps3 hw and fvp 1 file changed, 3 insertions(+) diff --git a/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c b/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c -index 31e4332bed64..4b08c02526d3 100644 +index b43e86988a41..af8181ca815a 100644 --- a/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c +++ b/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c -@@ -207,6 +207,9 @@ CClibRetCode_t CC_LibInit(CCRndContext_t *rndContext_ptr, CCRndWorkBuff_t *rndW +@@ -209,6 +209,9 @@ CClibRetCode_t CC_LibInit(CCRndContext_t *rndContext_ptr, CCRndWorkBuff_t *rndW goto InitErr2; }
@@ -28,3 +28,6 @@ index 31e4332bed64..4b08c02526d3 100644 /* turn off the DFA since Cerberus doen't support it */ reg = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, HOST_AO_LOCK_BITS)); CC_REG_FLD_SET(0, HOST_AO_LOCK_BITS, HOST_FORCE_DFA_ENABLE, reg, 0x0); +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0002-Corstone-1000-Enable-different-DRBG-configurations.patch +7 -4
@@ -1,7 +1,7 @@ -From dae5f3d1ec85e29f44d3f19bec2312607751ec22 Mon Sep 17 00:00:00 2001 +From a02970f522567169fa1851ab1b5431793e365cb0 Mon Sep 17 00:00:00 2001 From: Devaraj Ranganna <[email protected]> Date: Thu, 18 Sep 2025 22:07:38 +0100 -Subject: [PATCH] Corstone-1000: Enable different DRBG configurations +Subject: [PATCH 02/14] Corstone-1000: Enable different DRBG configurations The following DRBG configurations are enabled:
@@ -18,10 +18,10 @@ Signed-off-by: Devaraj Ranganna <[email protected]> 1 file changed, 7 insertions(+) diff --git a/platform/ext/target/arm/corstone1000/cc3xx_config.h b/platform/ext/target/arm/corstone1000/cc3xx_config.h -index ac034b17982a..e3f78439861f 100644 +index 68707f3a2194..8c53cace937c 100644 --- a/platform/ext/target/arm/corstone1000/cc3xx_config.h +++ b/platform/ext/target/arm/corstone1000/cc3xx_config.h -@@ -90,6 +90,13 @@ +@@ -100,6 +100,13 @@ #error "cc3xx_config: RNG config must select a single DRBG" #endif /* CC3XX_CONFIG_RNG_DRBG_HMAC + CC3XX_CONFIG_RNG_DRBG_CTR + CC3XX_CONFIG_RNG_DRBG_HASH */
@@ -35,3 +35,6 @@ index ac034b17982a..e3f78439861f 100644 /* Whether an external TRNG should be used in place of the standard CC3XX TRNG */ /* #define CC3XX_CONFIG_RNG_EXTERNAL_TRNG */ +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0003-bl2-corstone-1000-secure-debug-waiting-in-CM-LCS.patch +6 -3
@@ -1,7 +1,7 @@ -From f0567aa80b2cc88d278c3adb0a5366ae9ff8cf58 Mon Sep 17 00:00:00 2001 +From d8141d0d445bc5117b21dc684410b115e82d5568 Mon Sep 17 00:00:00 2001 From: Devaraj Ranganna <[email protected]> Date: Mon, 22 Sep 2025 12:59:43 +0100 -Subject: [PATCH] bl2: corstone-1000: secure debug waiting in CM LCS +Subject: [PATCH 03/14] bl2: corstone-1000: secure debug waiting in CM LCS Currently, when the device is in Secure Enable (SE) LCS state, setting the dcu_en register causes a CC-312 reset. Because CC-312 and
@@ -20,7 +20,7 @@ Signed-off-by: Ahmed Gomaa <[email protected]> 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/platform/ext/target/arm/corstone1000/bl2/boot_hal_bl2.c b/platform/ext/target/arm/corstone1000/bl2/boot_hal_bl2.c -index 9bc0f20e10..d034efe59f 100644 +index 9bc0f20e1045..d034efe59f5d 100644 --- a/platform/ext/target/arm/corstone1000/bl2/boot_hal_bl2.c +++ b/platform/ext/target/arm/corstone1000/bl2/boot_hal_bl2.c @@ -187,7 +187,7 @@ int32_t boot_platform_post_init(void)
@@ -88,3 +88,6 @@ index 9bc0f20e10..d034efe59f 100644 #endif /* PLATFORM_PSA_ADAC_SECURE_DEBUG */ return 0; +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0004-Build-fix-remaining-GCC-v14.2-AES-type-error.patch renamed from meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0004-Workaround-compile-errors-in-AES.patch +6 -3
@@ -1,7 +1,7 @@ -From cc48c5782b6968a34fa69047c04f3caf99a3bf18 Mon Sep 17 00:00:00 2001 +From 8a30545506d8a7f58f0ad30130593e0f78e8b219 Mon Sep 17 00:00:00 2001 From: Jon Mason <[email protected]> Date: Mon, 23 Feb 2026 11:53:38 -0500 -Subject: [PATCH] Build: fix remaining GCC v14.2 AES type error +Subject: [PATCH 04/14] Build: fix remaining GCC v14.2 AES type error GCC v14.2 diagnoses the incompatible pointer type used when passing the ECB key buffer to bl1_key_to_cc3xx_key(). Cast the uint32_t key
@@ -16,7 +16,7 @@ Signed-off-by: Ahmed Gomaa <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ext/target/arm/corstone1000/bl1/cc312_rom_crypto.c b/platform/ext/target/arm/corstone1000/bl1/cc312_rom_crypto.c -index 6bc89fe115..2008e9641b 100644 +index 6bc89fe1155c..2008e9641b49 100644 --- a/platform/ext/target/arm/corstone1000/bl1/cc312_rom_crypto.c +++ b/platform/ext/target/arm/corstone1000/bl1/cc312_rom_crypto.c @@ -338,7 +338,7 @@ static int32_t aes_256_ecb_encrypt(enum tfm_bl1_key_id_t key_id,
@@ -28,3 +28,6 @@ index 6bc89fe115..2008e9641b 100644 if (rc) { return rc; } +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0005-plat-cs1k-Removed-unused-variables.patch +9 -6
@@ -1,7 +1,7 @@ -From 3dcaa54afe671534b11a0586a49a9036b2bb2011 Mon Sep 17 00:00:00 2001 +From 9192041a3e6eec6b9e63dbdbe7fa49581aafa5b2 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Mon, 29 Dec 2025 11:28:47 +0000 -Subject: [PATCH] plat: cs1k: Removed unused variables +Subject: [PATCH 05/14] plat: cs1k: Removed unused variables Change-Id: I0dd3ff834c47c58dc833586c74791deca679a3ab Signed-off-by: Frazer Carsley <[email protected]>
@@ -12,10 +12,10 @@ Signed-off-by: Ahmed Gomaa <[email protected]> 1 file changed, 4 deletions(-) diff --git a/platform/ext/target/arm/corstone1000/bootloader/mcuboot/tfm_mcuboot_fwu.c b/platform/ext/target/arm/corstone1000/bootloader/mcuboot/tfm_mcuboot_fwu.c -index 9fe9df0..89c2696 100644 +index deb14a9215b5..ed4a9f6804c9 100644 --- a/platform/ext/target/arm/corstone1000/bootloader/mcuboot/tfm_mcuboot_fwu.c +++ b/platform/ext/target/arm/corstone1000/bootloader/mcuboot/tfm_mcuboot_fwu.c -@@ -1594,7 +1594,6 @@ static psa_status_t fwu_accept_image(struct fwu_metadata *metadata, +@@ -1614,7 +1614,6 @@ static psa_status_t fwu_accept_image(struct fwu_metadata *metadata, uint8_t number) { uint8_t current_state;
@@ -23,7 +23,7 @@ index 9fe9df0..89c2696 100644 uint32_t active_bank_index; uint32_t fwu_image_index; psa_status_t ret; -@@ -2070,7 +2069,6 @@ static psa_status_t fwu_update_metadata(const psa_fwu_component_t *candidates, u +@@ -2160,7 +2159,6 @@ static psa_status_t fwu_update_metadata(const psa_fwu_component_t *candidates, u { int ret; uint32_t active_index;
@@ -31,7 +31,7 @@ index 9fe9df0..89c2696 100644 uint32_t previous_active_index; uint8_t fwu_image_index; -@@ -2085,10 +2083,8 @@ static psa_status_t fwu_update_metadata(const psa_fwu_component_t *candidates, u +@@ -2175,10 +2173,8 @@ static psa_status_t fwu_update_metadata(const psa_fwu_component_t *candidates, u active_index = _metadata.active_index; if (active_index == BANK_0) { previous_active_index = BANK_1;
@@ -42,3 +42,6 @@ index 9fe9df0..89c2696 100644 } else { FWU_LOG_MSG("ERROR: %s: active_index %d\n\r",__func__,active_index); ret = PSA_ERROR_DATA_INVALID; +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0006-lib-gpt-Show-intent-of-GUIDs-in-unittests-more-clear.patch +7 -3
@@ -1,7 +1,8 @@ -From ca0d50fc1abbfe165941dc0bd674bb117f236f87 Mon Sep 17 00:00:00 2001 +From 81813176251a37995390338914f309d8ca72549d Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Mon, 30 Mar 2026 14:06:20 +0100 -Subject: [PATCH] lib: gpt: Show intent of GUIDs in unittests more clearly +Subject: [PATCH 06/14] lib: gpt: Show intent of GUIDs in unittests more + clearly The standard EFI_GUID macros used in the unittests do not convey the full meaning of the why that particular GUID is used. The new macros can
@@ -16,7 +17,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/lib/gpt/unittests/gpt/test_gpt.c b/lib/gpt/unittests/gpt/test_gpt.c -index bd161ec74..32dfb8fb2 100644 +index bd161ec7445b..32dfb8fb2757 100644 --- a/lib/gpt/unittests/gpt/test_gpt.c +++ b/lib/gpt/unittests/gpt/test_gpt.c @@ -69,6 +69,13 @@
@@ -214,3 +215,6 @@ index bd161ec74..32dfb8fb2 100644 TEST_ASSERT_EQUAL(PSA_ERROR_DOES_NOT_EXIST, gpt_entry_read_by_type(&test_type, 0, &entry)); /* Now, have a non-empty GPT but search for a type that won't exist */ +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0007-lib-gpt-Provide-macro-identifying-free-space.patch +6 -3
@@ -1,7 +1,7 @@ -From 229313778bae6ca16d6e3b25437c8e87eddf3084 Mon Sep 17 00:00:00 2001 +From 02ce1958e127f0bec9bfb86cd3a3e406644e1fce Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Mon, 30 Mar 2026 14:35:45 +0100 -Subject: [PATCH] lib: gpt: Provide macro identifying free space +Subject: [PATCH 07/14] lib: gpt: Provide macro identifying free space In the unit tests, it is often required to know where free space on the mocked disk is in order to determine where it is valid to create or move
@@ -15,7 +15,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/lib/gpt/unittests/gpt/test_gpt.c b/lib/gpt/unittests/gpt/test_gpt.c -index 32dfb8fb2..0ae660336 100644 +index 32dfb8fb2757..0ae6603368e8 100644 --- a/lib/gpt/unittests/gpt/test_gpt.c +++ b/lib/gpt/unittests/gpt/test_gpt.c @@ -58,6 +58,7 @@
@@ -155,3 +155,6 @@ index 32dfb8fb2..0ae660336 100644 /* Fourth, start in the backup header area */ TEST_ASSERT_EQUAL(PSA_ERROR_INVALID_ARGUMENT, gpt_entry_move( +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0008-lib-gpt-Add-operation-to-duplicate-entries.patch +8 -5
@@ -1,7 +1,7 @@ -From 38daa61f876a6becb3968f1360d403f496634131 Mon Sep 17 00:00:00 2001 +From 69ee51ca58f8b1460a9ce4649c0e07f21201ff0a Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Mon, 16 Mar 2026 16:46:43 +0000 -Subject: [PATCH] lib: gpt: Add operation to duplicate entries +Subject: [PATCH 08/14] lib: gpt: Add operation to duplicate entries Without this new function, callers of the library would have to first read the entry they want to duplicate, then attempt to create a new
@@ -20,7 +20,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 3 files changed, 201 insertions(+) diff --git a/lib/gpt/inc/gpt.h b/lib/gpt/inc/gpt.h -index 34ce67580..334a08f41 100644 +index 34ce675801b3..334a08f41abe 100644 --- a/lib/gpt/inc/gpt.h +++ b/lib/gpt/inc/gpt.h @@ -170,6 +170,25 @@ psa_status_t gpt_entry_move(const struct efi_guid_t *guid,
@@ -50,7 +50,7 @@ index 34ce67580..334a08f41 100644 * \brief Creates a partition entry in the table. * diff --git a/lib/gpt/src/gpt.c b/lib/gpt/src/gpt.c -index 0335befa7..920c4ccca 100644 +index 0335befa7770..920c4ccca78e 100644 --- a/lib/gpt/src/gpt.c +++ b/lib/gpt/src/gpt.c @@ -516,6 +516,29 @@ psa_status_t gpt_entry_move(const struct efi_guid_t *guid,
@@ -84,7 +84,7 @@ index 0335befa7..920c4ccca 100644 const uint64_t start, const uint64_t size, diff --git a/lib/gpt/unittests/gpt/test_gpt.c b/lib/gpt/unittests/gpt/test_gpt.c -index 0ae660336..5d2c4243f 100644 +index 0ae6603368e8..5d2c4243f607 100644 --- a/lib/gpt/unittests/gpt/test_gpt.c +++ b/lib/gpt/unittests/gpt/test_gpt.c @@ -738,6 +738,165 @@ void test_gpt_defragment_should_succeedWhenNoIOFailure(void)
@@ -253,3 +253,6 @@ index 0ae660336..5d2c4243f 100644 void test_gpt_entry_create_should_createNewEntry(void) { /* Add an entry. It must not overlap with an existing entry and must also +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-lib-gpt-Consecutively-erase-blocks-when-moving-parti.patch +7 -3
@@ -1,7 +1,8 @@ -From 0dcbef3a0800a2a610b32935a54762d4b42203f1 Mon Sep 17 00:00:00 2001 +From 4dab128d0da86be6ca09b861dfb157a11345e0e7 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Tue, 17 Mar 2026 11:44:14 +0000 -Subject: [PATCH] lib: gpt: Consecutively erase blocks when moving partitions +Subject: [PATCH 09/14] lib: gpt: Consecutively erase blocks when moving + partitions An LBA is typically smaller than a flash sector size, so it becomes inefficient to erase block by block and also erases the same sector
@@ -21,7 +22,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 1 file changed, 75 insertions(+), 27 deletions(-) diff --git a/lib/gpt/src/gpt.c b/lib/gpt/src/gpt.c -index 920c4ccca..984c8f821 100644 +index 920c4ccca78e..984c8f82146c 100644 --- a/lib/gpt/src/gpt.c +++ b/lib/gpt/src/gpt.c @@ -207,7 +207,7 @@ static psa_status_t read_entry_from_flash(const struct gpt_t *table,
@@ -238,3 +239,6 @@ index 920c4ccca..984c8f821 100644 memcpy(lba_buf, temp_buf, GPT_HEADER_SIZE); return ret; +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0010-lib-gpt-Clarify-API-operation.patch +6 -3
@@ -1,7 +1,7 @@ -From 7e2ae2fc4f8ae8a16a24b87d0650c6b4b28fc870 Mon Sep 17 00:00:00 2001 +From 60608602c55f92c82263775cbe42b221f3ea5f09 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Wed, 8 Apr 2026 17:39:13 +0100 -Subject: [PATCH] lib: gpt: Clarify API operation +Subject: [PATCH 10/14] lib: gpt: Clarify API operation The move and duplicate operations both also move or copy (respectively) the partition data, which is not immediately obvious.
@@ -14,7 +14,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gpt/inc/gpt.h b/lib/gpt/inc/gpt.h -index 334a08f41..c11ecbff2 100644 +index 334a08f41abe..c11ecbff2619 100644 --- a/lib/gpt/inc/gpt.h +++ b/lib/gpt/inc/gpt.h @@ -152,7 +152,7 @@ __attribute__((nonnull(1)))
@@ -36,3 +36,6 @@ index 334a08f41..c11ecbff2 100644 * * \param[in] old_guid Entry to duplicate. * \param[in] start Starting LBA (0 uses the lowest free LBA possible). +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0011-lib-gpt-Add-metadata-only-API-operations.patch +8 -5
@@ -1,7 +1,7 @@ -From f9badce3570bbc89b141c86a6b8a988d90d81f0c Mon Sep 17 00:00:00 2001 +From b10d50f554745f2f9a2e43c24e1020c4da15a098 Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Wed, 8 Apr 2026 17:51:18 +0100 -Subject: [PATCH] lib: gpt: Add metadata-only API operations +Subject: [PATCH 11/14] lib: gpt: Add metadata-only API operations Both move and duplicate functions also move or copy (respectively) the partition data. This is not always required, for example if the
@@ -17,7 +17,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 3 files changed, 473 insertions(+), 120 deletions(-) diff --git a/lib/gpt/inc/gpt.h b/lib/gpt/inc/gpt.h -index c11ecbff2..c5bddb470 100644 +index c11ecbff2619..c5bddb4704e7 100644 --- a/lib/gpt/inc/gpt.h +++ b/lib/gpt/inc/gpt.h @@ -170,6 +170,25 @@ psa_status_t gpt_entry_move(const struct efi_guid_t *guid,
@@ -74,7 +74,7 @@ index c11ecbff2..c5bddb470 100644 * \brief Creates a partition entry in the table. * diff --git a/lib/gpt/src/gpt.c b/lib/gpt/src/gpt.c -index 984c8f821..d6528f6a5 100644 +index 984c8f82146c..d6528f6a50ef 100644 --- a/lib/gpt/src/gpt.c +++ b/lib/gpt/src/gpt.c @@ -222,9 +222,17 @@ static psa_status_t find_gpt_entry(const struct gpt_t *table,
@@ -413,7 +413,7 @@ index 984c8f821..d6528f6a5 100644 restore_to.header.array_lba, (restore_from->header.num_partitions + diff --git a/lib/gpt/unittests/gpt/test_gpt.c b/lib/gpt/unittests/gpt/test_gpt.c -index 5d2c4243f..bd9eb8ba1 100644 +index 5d2c4243f607..bd9eb8ba1da5 100644 --- a/lib/gpt/unittests/gpt/test_gpt.c +++ b/lib/gpt/unittests/gpt/test_gpt.c @@ -897,6 +897,153 @@ void test_gpt_entry_duplicate_should_failWhenTableFull(void)
@@ -699,3 +699,6 @@ index 5d2c4243f..bd9eb8ba1 100644 void test_gpt_attr_set_should_setAttributes(void) { /* Start with a populated GPT */ +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0012-plat-cs1k-Add-flash-erase-protection.patch +6 -3
@@ -1,7 +1,7 @@ -From 60277832aa6d4a205a5b1180f0513de0eb7c84c6 Mon Sep 17 00:00:00 2001 +From 857a18c00ca3301ed6136333732d4c35e838e51f Mon Sep 17 00:00:00 2001 From: Frazer Carsley <[email protected]> Date: Tue, 17 Mar 2026 11:05:45 +0000 -Subject: [PATCH] plat: cs1k: Add flash erase protection +Subject: [PATCH 12/14] plat: cs1k: Add flash erase protection The GPT library deals in blocks, whereas flash deals in sectors. On cs1k, eight blocks make up a sector. So, when the GPT library requests a
@@ -23,7 +23,7 @@ Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-fi 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/platform/ext/target/arm/corstone1000/io/io_gpt.c b/platform/ext/target/arm/corstone1000/io/io_gpt.c -index 513c77016..f7c3d79d2 100644 +index 513c770166cc..f7c3d79d272f 100644 --- a/platform/ext/target/arm/corstone1000/io/io_gpt.c +++ b/platform/ext/target/arm/corstone1000/io/io_gpt.c @@ -53,6 +53,32 @@ static uint8_t sector_buf[FLASH_SECTOR_SIZE];
@@ -96,3 +96,6 @@ index 513c77016..f7c3d79d2 100644 } } else { /* Partial erase of final sector */ +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0013-plat-cs1k-Remove-unused-FWU-partitions-upon-version-.patch deleted +0 -153
153 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0013-platform-corstone1000-Increase-FIP-partition-size.patch renamed from meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0015-platform-corstone1000-Increase-FIP-partition-size.patch +6 -3
@@ -1,7 +1,7 @@ -From 9edcdd272a7d2d872f7e04b3a9db5185fd24fd97 Mon Sep 17 00:00:00 2001 +From e7fb39d0124f60b624f535bc78745fbf4aac678c Mon Sep 17 00:00:00 2001 From: Harsimran Singh Tungal <[email protected]> Date: Tue, 28 Apr 2026 08:57:06 +0100 -Subject: [PATCH] platform: corstone1000: Increase FIP partition size +Subject: [PATCH 13/14] platform: corstone1000: Increase FIP partition size Increase the FIP partition size from 2MB to 2.5MB in the Corstone-1000 flash layout.
@@ -18,7 +18,7 @@ Signed-off-by: Harsimran Singh Tungal <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ext/target/arm/corstone1000/partition/flash_layout.h b/platform/ext/target/arm/corstone1000/partition/flash_layout.h -index e2219d80a..b7282beb2 100644 +index e2219d80a75c..b7282beb232e 100644 --- a/platform/ext/target/arm/corstone1000/partition/flash_layout.h +++ b/platform/ext/target/arm/corstone1000/partition/flash_layout.h @@ -139,7 +139,7 @@
@@ -30,3 +30,6 @@ index e2219d80a..b7282beb2 100644 #define FIP_PARTITION_BANK_OFFSET (TFM_PARTITION_BANK_OFFSET + TFM_PARTITION_SIZE) #define INITRAMFS_PARTITION_SIZE (0xC00000) /* 12 MB */ +-- +2.39.5 +
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0014-plat-cs1k-Duplicate-old-images-in-FWU.patch deleted +0 -217
217 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0014-platform-corstone1000-keep-CM-during-secure-debug.patch renamed from meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0016-platform-corstone1000-Optionally-skip-provisioning.patch +9 -7
@@ -1,7 +1,7 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From 3b01281520036b621166d409634dab9b46d01f70 Mon Sep 17 00:00:00 2001 From: Ahmed Gomaa <[email protected]> Date: Wed, 2 Sep 2026 12:00:00 +0100 -Subject: [PATCH] platform: corstone1000: keep CM during secure debug +Subject: [PATCH 14/14] platform: corstone1000: keep CM during secure debug Add a temporary Corstone-1000 Secure Debug workaround that skips runtime TF-M provisioning when Secure Debug is enabled. This keeps the device in
@@ -14,14 +14,15 @@ preserve the authenticated DCU_EN value across reset and apply it from BL2. Upstream-Status: Inappropriate [temporary platform workaround] Signed-off-by: Ahmed Gomaa <[email protected]> --- - secure_fw/spm/CMakeLists.txt | 1 + - secure_fw/spm/core/main.c | 10 ++++++++++ - 2 files changed, 11 insertions(+) + secure_fw/spm/CMakeLists.txt | 1 + + secure_fw/spm/core/main.c | 9 +++++++++ + 2 files changed, 10 insertions(+) diff --git a/secure_fw/spm/CMakeLists.txt b/secure_fw/spm/CMakeLists.txt +index bf0ab6e99c16..6741c52089de 100644 --- a/secure_fw/spm/CMakeLists.txt +++ b/secure_fw/spm/CMakeLists.txt -@@ -111,6 +111,7 @@ target_compile_definitions(tfm_spm +@@ -110,6 +110,7 @@ target_compile_definitions(tfm_spm $<$<STREQUAL:${CONFIG_TFM_BRANCH_PROTECTION_FEAT},BRANCH_PROTECTION_PACRET_LEAF>:BRANCH_PROTECTION_CONTROL=2> $<$<STREQUAL:${CONFIG_TFM_BRANCH_PROTECTION_FEAT},BRANCH_PROTECTION_BTI>:BRANCH_PROTECTION_CONTROL=3> $<$<BOOL:${PLATFORM_PSA_ADAC_SECURE_DEBUG}>:PLATFORM_PSA_ADAC_SECURE_DEBUG>
@@ -30,6 +31,7 @@ diff --git a/secure_fw/spm/CMakeLists.txt b/secure_fw/spm/CMakeLists.txt $<$<BOOL:${TFM_TZ_REENTRANCY_CHECK}>:TFM_TZ_REENTRANCY_CHECK> ) diff --git a/secure_fw/spm/core/main.c b/secure_fw/spm/core/main.c +index 2bafac0c980e..22090c34efc4 100644 --- a/secure_fw/spm/core/main.c +++ b/secure_fw/spm/core/main.c @@ -31,7 +31,9 @@ static fih_ret tfm_core_init(void)
@@ -64,5 +66,5 @@ diff --git a/secure_fw/spm/core/main.c b/secure_fw/spm/core/main.c TFM_COVERITY_DEVIATE_LINE(MISRA_C_2023_Rule_2_2, "Parameters can be changed by user and this code will make effect") tfm_plat_provisioning_check_for_dummy_keys(); -- -2.43.0 +2.39.5
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0017-corstone1000-fwu-Fix-missing-destination-offset-of-p.patch deleted +0 -92
92 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0018-plat-cs1k-Bound-FWU-writes-to-target-partition.patch deleted +0 -61
61 lines not on this page · raw message
meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc +3 -7
@@ -38,7 +38,7 @@ SRC_URI:append:corstone1000 = " \ file://0001-CC312-alignment-of-cc312-differences-between-fvp-and.patch \ file://0002-Corstone-1000-Enable-different-DRBG-configurations.patch \ file://0003-bl2-corstone-1000-secure-debug-waiting-in-CM-LCS.patch \ - file://0004-Workaround-compile-errors-in-AES.patch \ + file://0004-Build-fix-remaining-GCC-v14.2-AES-type-error.patch \ file://0005-plat-cs1k-Removed-unused-variables.patch \ file://0006-lib-gpt-Show-intent-of-GUIDs-in-unittests-more-clear.patch \ file://0007-lib-gpt-Provide-macro-identifying-free-space.patch \
@@ -47,12 +47,8 @@ SRC_URI:append:corstone1000 = " \ file://0010-lib-gpt-Clarify-API-operation.patch \ file://0011-lib-gpt-Add-metadata-only-API-operations.patch \ file://0012-plat-cs1k-Add-flash-erase-protection.patch \ - file://0013-plat-cs1k-Remove-unused-FWU-partitions-upon-version-.patch \ - file://0014-plat-cs1k-Duplicate-old-images-in-FWU.patch \ - file://0015-platform-corstone1000-Increase-FIP-partition-size.patch \ - file://0016-platform-corstone1000-Optionally-skip-provisioning.patch \ - file://0017-corstone1000-fwu-Fix-missing-destination-offset-of-p.patch \ - file://0018-plat-cs1k-Bound-FWU-writes-to-target-partition.patch \ + file://0013-platform-corstone1000-Increase-FIP-partition-size.patch \ + file://0014-platform-corstone1000-keep-CM-during-secure-debug.patch \ " FILESEXTRAPATHS:prepend:corstone1000-mps3 := "${THISDIR}/files/corstone1000/psa-adac:"
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-2.3.1-src.inc renamed from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-2.3.0-src.inc +10 -10
@@ -23,18 +23,18 @@ SRC_URI_TRUSTED_FIRMWARE_M_PSA_CRYPTO_DRIVER ?= "git://git.trustedfirmware.org/s SRC_URI_TRUSTED_FIRMWARE_M_T_COSE ?= "git://github.com/laurencelundblade/t_cose.git;protocol=https" # The required dependencies are documented in tf-m/config/config_base.cmake -# TF-Mv2.3.0 +# TF-Mv2.3.1 SRCBRANCH_tfm ?= "release/2.3.x" -SRCREV_tfm = "5d906d29d7b6d1a7f7134960d228f9e75f6a8a07" -# TF-Mv2.3.0 +SRCREV_tfm = "0b40d7806136baadf489febf8e2f91bf87aca63d" +# TF-Mv2.3.1 SRCBRANCH_tfm-extras ?= "release/2.3.x" SRCREV_tfm-extras = "8abeb6610e7ca27fff54dd8a9b5767d5cf98b998" -# TF-Mv2.3.0 +# TF-Mv2.3.1 SRCBRANCH_tfm-tests ?= "release/2.3.x" -SRCREV_tfm-tests = "6a1165dfef219d0801487f51e06d12331e726643" -# CMSIS v6.1.0, CMSIS_TAG from lib/ext/cmsis/CMakeLists.txt +SRCREV_tfm-tests = "465acb8405fb35b12a624a27062e361afe0025e4" +# CMSIS v6.2.0, CMSIS_TAG from lib/ext/cmsis/CMakeLists.txt SRCBRANCH_cmsis ?= "main" -SRCREV_cmsis = "b0bbb0423b278ca632cfe1474eb227961d835fd2" +SRCREV_cmsis = "6f0a58d01aa9bd2feba212097f9afe7acd991d52" # mcuboot v2.4.0, value from MCUBOOT_VERSION SRCBRANCH_mcuboot ?= "main" SRCREV_mcuboot = "6d3b3d2c38ab20c242e5b9abb04d050086383eb2"
@@ -44,9 +44,9 @@ SRCREV_qcbor = "92d3f89030baff4af7be8396c563e6c8ef263622" # PSA-ADAC (intermediate SHA), value from PLATFORM_PSA_ADAC_VERSION SRCBRANCH_tfm-psa-adac = "master" SRCREV_tfm-psa-adac = "eff89e8e0ce36e4793f78309be19fcfab798f473" -# TF-PSA-Crypto v1.1.0, value from TF_PSA_CRYPTO_VERSION -SRCBRANCH_tf-psa-crypto = "development" -SRCREV_tf-psa-crypto = "29160dd877d29658279fd683b2ae57b320ddcf09" +# TF-PSA-Crypto v1.1.1, value from TF_PSA_CRYPTO_VERSION +SRCBRANCH_tf-psa-crypto = "tf-psa-crypto-1.1" +SRCREV_tf-psa-crypto = "a0632be94d883daa0295ac1eabf70359ad94f91b" # From platform/ext/target/arm/drivers/cc3xx/CMakeLists.txt SRCBRANCH_psa-crypto-driver = "main" SRCREV_psa-crypto-driver = "3a93566c04c4d77a007e6b149e7c06e7b8f0cd8d"
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-scripts-native_2.3.1.bb renamed from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-scripts-native_2.3.0.bb +0 -0
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_2.3.1.bb renamed from meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_2.3.0.bb +0 -0
Signature · 1 line
2.54.0 (Apple Git-157)