mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-01 13:10:04 +00:00
arm-bsp/trusted-firmware-m: corstone1000: upgrade to TF-M v2.1.x
Update the preferred version of TrustedFirmware-M for Cortsone-1000 from 2.0.x to 2.1.x to benefit from the latest fixes and improvements as well as to reduce the number of out-of-tree patches. As a result of updating the version: * Remove no longer required out-of-tree patches * Rebase and update the numbering of the remaining out-of-tree patches Signed-off-by: Bence Balogh <bence.balogh@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -3,7 +3,7 @@ require conf/machine/include/arm/armv8a/tune-cortexa35.inc
|
|||||||
MACHINEOVERRIDES =. "corstone1000:"
|
MACHINEOVERRIDES =. "corstone1000:"
|
||||||
|
|
||||||
# TF-M
|
# TF-M
|
||||||
PREFERRED_VERSION_trusted-firmware-m ?= "2.0.%"
|
PREFERRED_VERSION_trusted-firmware-m ?= "2.1.%"
|
||||||
|
|
||||||
# TF-A
|
# TF-A
|
||||||
TFA_PLATFORM = "corstone1000"
|
TFA_PLATFORM = "corstone1000"
|
||||||
|
|||||||
-274
@@ -1,274 +0,0 @@
|
|||||||
From eb096e4c03b80f9f31e5d15ca06e5a38e4112664 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bence Balogh <bence.balogh@arm.com>
|
|
||||||
Date: Tue, 7 Nov 2023 20:25:49 +0100
|
|
||||||
Subject: [PATCH 1/2] platform: corstone1000: Update MPU configuration
|
|
||||||
|
|
||||||
In Armv6-M the MPU requires the regions to be aligned with
|
|
||||||
region sizes.
|
|
||||||
The commit aligns the different code/data sections using the
|
|
||||||
alignment macros. The code/data sections can be covered by
|
|
||||||
multiple MPU regions in order to save memory.
|
|
||||||
|
|
||||||
Small adjustments had to be made in the memory layout in order to
|
|
||||||
not overflow the flash:
|
|
||||||
- Decreased TFM_PARTITION_SIZE
|
|
||||||
- Increased S_UNPRIV_DATA_SIZE
|
|
||||||
|
|
||||||
Added checks to the MPU configuration function for checking the
|
|
||||||
MPU constraints:
|
|
||||||
- Base address has to be aligned to the size
|
|
||||||
- The minimum MPU region size is 0x100
|
|
||||||
- The MPU can have 8 regions at most
|
|
||||||
|
|
||||||
Change-Id: I059468e8aba0822bb354fd1cd4987ac2bb1f34d1
|
|
||||||
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
|
||||||
Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/25393]
|
|
||||||
|
|
||||||
---
|
|
||||||
.../target/arm/corstone1000/CMakeLists.txt | 19 +++++
|
|
||||||
.../arm/corstone1000/create-flash-image.sh | 8 +-
|
|
||||||
.../arm/corstone1000/partition/flash_layout.h | 2 +-
|
|
||||||
.../arm/corstone1000/partition/region_defs.h | 6 +-
|
|
||||||
.../arm/corstone1000/tfm_hal_isolation.c | 83 +++++++++++++++----
|
|
||||||
5 files changed, 93 insertions(+), 25 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/CMakeLists.txt b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
index e6cf15b11..8817f514c 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
@@ -22,6 +22,25 @@ target_compile_definitions(platform_region_defs
|
|
||||||
INTERFACE
|
|
||||||
$<$<BOOL:${TFM_S_REG_TEST}>:TFM_S_REG_TEST>
|
|
||||||
)
|
|
||||||
+
|
|
||||||
+# The Armv6-M MPU requires that the MPU regions be aligned to the region sizes.
|
|
||||||
+# The minimal region size is 0x100 bytes.
|
|
||||||
+#
|
|
||||||
+# The alignments have to be a power of two and ideally bigger than the section size (which
|
|
||||||
+# can be checked in the map file).
|
|
||||||
+# In some cases the alignment value is smaller than the actual section
|
|
||||||
+# size to save memory. In that case, multiple MPU region has to be configured to cover it.
|
|
||||||
+#
|
|
||||||
+# To save memory, the attributes are set to XN_EXEC_OK and AP_RO_PRIV_UNPRIV for
|
|
||||||
+# the SRAM so the PSA_ROT_LINKER_CODE, TFM_UNPRIV_CODE and APP_ROT_LINKER_CODE don't have to
|
|
||||||
+# be aligned. The higher-priority regions will overwrite these attributes if needed.
|
|
||||||
+# The RAM is also located in the SRAM so it has to be configured to overwrite these default
|
|
||||||
+# attributes.
|
|
||||||
+target_compile_definitions(platform_region_defs
|
|
||||||
+ INTERFACE
|
|
||||||
+ TFM_LINKER_APP_ROT_LINKER_DATA_ALIGNMENT=0x2000
|
|
||||||
+ TFM_LINKER_SP_META_PTR_ALIGNMENT=0x100
|
|
||||||
+)
|
|
||||||
#========================= Platform common defs ===============================#
|
|
||||||
|
|
||||||
# Specify the location of platform specific build dependencies.
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/create-flash-image.sh b/platform/ext/target/arm/corstone1000/create-flash-image.sh
|
|
||||||
index 2522d3674..a6be61384 100755
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/create-flash-image.sh
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/create-flash-image.sh
|
|
||||||
@@ -8,7 +8,7 @@
|
|
||||||
|
|
||||||
######################################################################
|
|
||||||
# This script is to create a flash gpt image for corstone platform
|
|
||||||
-#
|
|
||||||
+#
|
|
||||||
# Flash image layout:
|
|
||||||
# |------------------------------|
|
|
||||||
# | Protective MBR |
|
|
||||||
@@ -82,15 +82,15 @@ sgdisk --mbrtogpt \
|
|
||||||
--new=4:56:+4K --typecode=4:$PRIVATE_METADATA_TYPE_UUID --partition-guid=4:$(uuidgen) --change-name=4:'private_metadata_replica_1' \
|
|
||||||
--new=5:64:+4k --typecode=5:$PRIVATE_METADATA_TYPE_UUID --partition-guid=5:$(uuidgen) --change-name=5:'private_metadata_replica_2' \
|
|
||||||
--new=6:72:+100k --typecode=6:$SE_BL2_TYPE_UUID --partition-guid=6:$(uuidgen) --change-name=6:'bl2_primary' \
|
|
||||||
- --new=7:272:+376K --typecode=7:$TFM_TYPE_UUID --partition-guid=7:$(uuidgen) --change-name=7:'tfm_primary' \
|
|
||||||
+ --new=7:272:+368K --typecode=7:$TFM_TYPE_UUID --partition-guid=7:$(uuidgen) --change-name=7:'tfm_primary' \
|
|
||||||
--new=8:32784:+100k --typecode=8:$SE_BL2_TYPE_UUID --partition-guid=8:$(uuidgen) --change-name=8:'bl2_secondary' \
|
|
||||||
- --new=9:32984:+376K --typecode=9:$TFM_TYPE_UUID --partition-guid=9:$(uuidgen) --change-name=9:'tfm_secondary' \
|
|
||||||
+ --new=9:32984:+368K --typecode=9:$TFM_TYPE_UUID --partition-guid=9:$(uuidgen) --change-name=9:'tfm_secondary' \
|
|
||||||
--new=10:65496:65501 --partition-guid=10:$(uuidgen) --change-name=10:'reserved_2' \
|
|
||||||
$IMAGE
|
|
||||||
|
|
||||||
[ $? -ne 0 ] && echo "Error occurs while writing the GPT layout" && exit 1
|
|
||||||
|
|
||||||
-# Write partitions
|
|
||||||
+# Write partitions
|
|
||||||
# conv=notrunc avoids truncation to keep the geometry of the image.
|
|
||||||
dd if=$BIN_DIR/bl2_signed.bin of=${IMAGE} seek=72 conv=notrunc
|
|
||||||
dd if=$BIN_DIR/tfm_s_signed.bin of=${IMAGE} seek=272 conv=notrunc
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/partition/flash_layout.h b/platform/ext/target/arm/corstone1000/partition/flash_layout.h
|
|
||||||
index 568c8de28..7fffd94c6 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/partition/flash_layout.h
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/partition/flash_layout.h
|
|
||||||
@@ -134,7 +134,7 @@
|
|
||||||
|
|
||||||
/* Bank configurations */
|
|
||||||
#define BANK_PARTITION_SIZE (0xFE0000) /* 15.875 MB */
|
|
||||||
-#define TFM_PARTITION_SIZE (0x5E000) /* 376 KB */
|
|
||||||
+#define TFM_PARTITION_SIZE (0x5C000) /* 368 KB */
|
|
||||||
|
|
||||||
/************************************************************/
|
|
||||||
/* Bank : Images flash offsets are with respect to the bank */
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/partition/region_defs.h b/platform/ext/target/arm/corstone1000/partition/region_defs.h
|
|
||||||
index 99e822f51..64ab786e5 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/partition/region_defs.h
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/partition/region_defs.h
|
|
||||||
@@ -1,8 +1,10 @@
|
|
||||||
/*
|
|
||||||
- * Copyright (c) 2017-2022 Arm Limited. All rights reserved.
|
|
||||||
+ * Copyright (c) 2017-2023 Arm Limited. All rights reserved.
|
|
||||||
* Copyright (c) 2021-2023 Cypress Semiconductor Corporation (an Infineon company)
|
|
||||||
* or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
|
|
||||||
*
|
|
||||||
+ * SPDX-License-Identifier: Apache-2.0
|
|
||||||
+ *
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
@@ -53,7 +55,7 @@
|
|
||||||
|
|
||||||
#define S_DATA_START (SRAM_BASE + TFM_PARTITION_SIZE)
|
|
||||||
#define S_DATA_SIZE (SRAM_SIZE - TFM_PARTITION_SIZE)
|
|
||||||
-#define S_UNPRIV_DATA_SIZE (0x2160)
|
|
||||||
+#define S_UNPRIV_DATA_SIZE (0x4000)
|
|
||||||
#define S_DATA_LIMIT (S_DATA_START + S_DATA_SIZE - 1)
|
|
||||||
#define S_DATA_PRIV_START (S_DATA_START + S_UNPRIV_DATA_SIZE)
|
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c b/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
index 01f7687bc..98e795dde 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
@@ -1,5 +1,5 @@
|
|
||||||
/*
|
|
||||||
- * Copyright (c) 2020-2022, Arm Limited. All rights reserved.
|
|
||||||
+ * Copyright (c) 2020-2023, Arm Limited. All rights reserved.
|
|
||||||
* Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon
|
|
||||||
* company) or an affiliate of Cypress Semiconductor Corporation. All rights
|
|
||||||
* reserved.
|
|
||||||
@@ -14,9 +14,11 @@
|
|
||||||
#include "tfm_hal_isolation.h"
|
|
||||||
#include "mpu_config.h"
|
|
||||||
#include "mmio_defs.h"
|
|
||||||
+#include "flash_layout.h"
|
|
||||||
|
|
||||||
#define PROT_BOUNDARY_VAL \
|
|
||||||
((1U << HANDLE_ATTR_PRIV_POS) & HANDLE_ATTR_PRIV_MASK)
|
|
||||||
+#define MPU_REGION_MIN_SIZE (0x100)
|
|
||||||
|
|
||||||
#ifdef CONFIG_TFM_ENABLE_MEMORY_PROTECT
|
|
||||||
|
|
||||||
@@ -31,20 +33,38 @@ REGION_DECLARE(Image$$, TFM_SP_META_PTR, $$ZI$$Base);
|
|
||||||
REGION_DECLARE(Image$$, TFM_SP_META_PTR, $$ZI$$Limit);
|
|
||||||
#endif /* CONFIG_TFM_PARTITION_META */
|
|
||||||
|
|
||||||
-static void configure_mpu(uint32_t rnr, uint32_t base, uint32_t limit,
|
|
||||||
- uint32_t is_xn_exec, uint32_t ap_permissions)
|
|
||||||
+static enum tfm_hal_status_t configure_mpu(uint32_t rnr, uint32_t base,
|
|
||||||
+ uint32_t limit, uint32_t is_xn_exec, uint32_t ap_permissions)
|
|
||||||
{
|
|
||||||
- uint32_t size; /* region size */
|
|
||||||
+ uint32_t rbar_size_field; /* region size as it is used in the RBAR */
|
|
||||||
uint32_t rasr; /* region attribute and size register */
|
|
||||||
uint32_t rbar; /* region base address register */
|
|
||||||
|
|
||||||
- size = get_rbar_size_field(limit - base);
|
|
||||||
+ rbar_size_field = get_rbar_size_field(limit - base);
|
|
||||||
+
|
|
||||||
+ /* The MPU region's base address has to be aligned to the region
|
|
||||||
+ * size for a valid MPU configuration */
|
|
||||||
+ if ((base % (1 << (rbar_size_field + 1))) != 0) {
|
|
||||||
+ return TFM_HAL_ERROR_INVALID_INPUT;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* The MPU supports only 8 memory regions */
|
|
||||||
+ if (rnr > 7) {
|
|
||||||
+ return TFM_HAL_ERROR_INVALID_INPUT;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ /* The minimum size for a region is 0x100 bytes */
|
|
||||||
+ if((limit - base) < MPU_REGION_MIN_SIZE) {
|
|
||||||
+ return TFM_HAL_ERROR_INVALID_INPUT;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
rasr = ARM_MPU_RASR(is_xn_exec, ap_permissions, TEX, NOT_SHAREABLE,
|
|
||||||
- NOT_CACHEABLE, NOT_BUFFERABLE, SUB_REGION_DISABLE, size);
|
|
||||||
+ NOT_CACHEABLE, NOT_BUFFERABLE, SUB_REGION_DISABLE, rbar_size_field);
|
|
||||||
rbar = base & MPU_RBAR_ADDR_Msk;
|
|
||||||
|
|
||||||
ARM_MPU_SetRegionEx(rnr, rbar, rasr);
|
|
||||||
+
|
|
||||||
+ return TFM_HAL_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* CONFIG_TFM_ENABLE_MEMORY_PROTECT */
|
|
||||||
@@ -56,33 +76,60 @@ enum tfm_hal_status_t tfm_hal_set_up_static_boundaries(
|
|
||||||
uint32_t rnr = TFM_ISOLATION_REGION_START_NUMBER; /* current region number */
|
|
||||||
uint32_t base; /* start address */
|
|
||||||
uint32_t limit; /* end address */
|
|
||||||
+ enum tfm_hal_status_t ret;
|
|
||||||
|
|
||||||
ARM_MPU_Disable();
|
|
||||||
|
|
||||||
- /* TFM Core unprivileged code region */
|
|
||||||
- base = (uint32_t)®ION_NAME(Image$$, TFM_UNPRIV_CODE_START, $$RO$$Base);
|
|
||||||
- limit = (uint32_t)®ION_NAME(Image$$, TFM_UNPRIV_CODE_END, $$RO$$Limit);
|
|
||||||
-
|
|
||||||
- configure_mpu(rnr++, base, limit, XN_EXEC_OK, AP_RO_PRIV_UNPRIV);
|
|
||||||
-
|
|
||||||
- /* RO region */
|
|
||||||
- base = (uint32_t)®ION_NAME(Image$$, TFM_APP_CODE_START, $$Base);
|
|
||||||
- limit = (uint32_t)®ION_NAME(Image$$, TFM_APP_CODE_END, $$Base);
|
|
||||||
+ /* Armv6-M MPU allows region overlapping. The region with the higher RNR
|
|
||||||
+ * will decide the attributes.
|
|
||||||
+ *
|
|
||||||
+ * The default attributes are set to XN_EXEC_OK and AP_RO_PRIV_UNPRIV for the
|
|
||||||
+ * whole SRAM so the PSA_ROT_LINKER_CODE, TFM_UNPRIV_CODE and APP_ROT_LINKER_CODE
|
|
||||||
+ * don't have to be aligned and memory space can be saved.
|
|
||||||
+ * This region has the lowest RNR so the next regions can overwrite these
|
|
||||||
+ * attributes if it's needed.
|
|
||||||
+ */
|
|
||||||
+ base = SRAM_BASE;
|
|
||||||
+ limit = SRAM_BASE + SRAM_SIZE;
|
|
||||||
+
|
|
||||||
+ ret = configure_mpu(rnr++, base, limit,
|
|
||||||
+ XN_EXEC_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ if (ret != TFM_HAL_SUCCESS) {
|
|
||||||
+ return ret;
|
|
||||||
+ }
|
|
||||||
|
|
||||||
- configure_mpu(rnr++, base, limit, XN_EXEC_OK, AP_RO_PRIV_UNPRIV);
|
|
||||||
|
|
||||||
/* RW, ZI and stack as one region */
|
|
||||||
base = (uint32_t)®ION_NAME(Image$$, TFM_APP_RW_STACK_START, $$Base);
|
|
||||||
limit = (uint32_t)®ION_NAME(Image$$, TFM_APP_RW_STACK_END, $$Base);
|
|
||||||
|
|
||||||
- configure_mpu(rnr++, base, limit, XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ /* The section size can be bigger than the alignment size, else the code would
|
|
||||||
+ * not fit into the memory. Because of this, the sections can use multiple MPU
|
|
||||||
+ * regions. */
|
|
||||||
+ do {
|
|
||||||
+ ret = configure_mpu(rnr++, base, base + TFM_LINKER_APP_ROT_LINKER_DATA_ALIGNMENT,
|
|
||||||
+ XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ if (ret != TFM_HAL_SUCCESS) {
|
|
||||||
+ return ret;
|
|
||||||
+ }
|
|
||||||
+ base += TFM_LINKER_APP_ROT_LINKER_DATA_ALIGNMENT;
|
|
||||||
+ } while (base < limit);
|
|
||||||
+
|
|
||||||
|
|
||||||
#ifdef CONFIG_TFM_PARTITION_META
|
|
||||||
/* TFM partition metadata pointer region */
|
|
||||||
base = (uint32_t)®ION_NAME(Image$$, TFM_SP_META_PTR, $$ZI$$Base);
|
|
||||||
limit = (uint32_t)®ION_NAME(Image$$, TFM_SP_META_PTR, $$ZI$$Limit);
|
|
||||||
|
|
||||||
- configure_mpu(rnr++, base, limit, XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ do {
|
|
||||||
+ ret = configure_mpu(rnr++, base, base + TFM_LINKER_SP_META_PTR_ALIGNMENT,
|
|
||||||
+ XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ if (ret != TFM_HAL_SUCCESS) {
|
|
||||||
+ return ret;
|
|
||||||
+ }
|
|
||||||
+ base += TFM_LINKER_SP_META_PTR_ALIGNMENT;
|
|
||||||
+ } while (base < limit);
|
|
||||||
+
|
|
||||||
#endif
|
|
||||||
|
|
||||||
arm_mpu_enable();
|
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
From 6807d4b30f7d4ed32d3c54dfcaf3ace63eaa4f02 Mon Sep 17 00:00:00 2001
|
From 0d454ea554c57247f5435c09ef99d70f169e041b Mon Sep 17 00:00:00 2001
|
||||||
From: Emekcan Aras <emekcan.aras@arm.com>
|
From: Emekcan Aras <emekcan.aras@arm.com>
|
||||||
Date: Thu, 26 Oct 2023 11:46:04 +0100
|
Date: Thu, 26 Oct 2023 11:46:04 +0100
|
||||||
Subject: [PATCH] platform: corstone1000: align capsule update structs
|
Subject: [PATCH 01/10] platform: corstone1000: align capsule update structs
|
||||||
|
|
||||||
U-boot mkefitool creates capsule image without packed and byte-aligned
|
U-boot mkefitool creates capsule image without packed and byte-aligned
|
||||||
structs. This patch aligns the capsule-update structures and avoids
|
structs. This patch aligns the capsule-update structures and avoids
|
||||||
+4
-6
@@ -1,7 +1,7 @@
|
|||||||
From 001e5bea183bc78352ac3ba6283d9d7912bb6ea5 Mon Sep 17 00:00:00 2001
|
From b6cb92b0618afe849a8c975d5f7391610724cff2 Mon Sep 17 00:00:00 2001
|
||||||
From: Emekcan Aras <Emekcan.Aras@arm.com>
|
From: Emekcan Aras <Emekcan.Aras@arm.com>
|
||||||
Date: Wed, 21 Feb 2024 07:44:25 +0000
|
Date: Wed, 21 Feb 2024 07:44:25 +0000
|
||||||
Subject: [PATCH] Platform: Corstone1000: skip the first nv counter
|
Subject: [PATCH 02/10] Platform: Corstone1000: skip the first nv counter
|
||||||
|
|
||||||
It skips doing a sanity check the BL2 nv counter after the capsule
|
It skips doing a sanity check the BL2 nv counter after the capsule
|
||||||
update since the tfm bl1 does not sync metadata and nv counters in OTP during
|
update since the tfm bl1 does not sync metadata and nv counters in OTP during
|
||||||
@@ -9,16 +9,15 @@ the boot anymore.
|
|||||||
|
|
||||||
Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
|
Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
|
|
||||||
---
|
---
|
||||||
.../ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c | 2 +-
|
.../ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
diff --git a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
index 2e6de255b..2e6cf8047 100644
|
index a4747f2212..003ab9faf8 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
--- a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
+++ b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
+++ b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
@@ -1125,7 +1125,7 @@ static enum fwu_agent_error_t update_nv_counters(
|
@@ -1122,7 +1122,7 @@ static enum fwu_agent_error_t update_nv_counters(
|
||||||
|
|
||||||
FWU_LOG_MSG("%s: enter\n\r", __func__);
|
FWU_LOG_MSG("%s: enter\n\r", __func__);
|
||||||
|
|
||||||
@@ -30,4 +29,3 @@ index 2e6de255b..2e6cf8047 100644
|
|||||||
--
|
--
|
||||||
2.25.1
|
2.25.1
|
||||||
|
|
||||||
|
|
||||||
-76
@@ -1,76 +0,0 @@
|
|||||||
From ca7696bca357cfd71a34582c65a7c7c08828b6dc Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bence Balogh <bence.balogh@arm.com>
|
|
||||||
Date: Mon, 18 Dec 2023 14:00:14 +0100
|
|
||||||
Subject: [PATCH 2/2] platform: corstone1000: Cover S_DATA with MPU
|
|
||||||
|
|
||||||
The S_DATA has to be covered with MPU regions to override the
|
|
||||||
other MPU regions with smaller RNR values.
|
|
||||||
|
|
||||||
Change-Id: I45fec65f51241939314941e25d287e6fdc82777c
|
|
||||||
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
|
||||||
Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/25583]
|
|
||||||
|
|
||||||
---
|
|
||||||
.../target/arm/corstone1000/CMakeLists.txt | 8 +++++++
|
|
||||||
.../arm/corstone1000/tfm_hal_isolation.c | 22 +++++++++++++++++++
|
|
||||||
2 files changed, 30 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/CMakeLists.txt b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
index 8817f514c..541504368 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
|
||||||
@@ -40,6 +40,14 @@ target_compile_definitions(platform_region_defs
|
|
||||||
INTERFACE
|
|
||||||
TFM_LINKER_APP_ROT_LINKER_DATA_ALIGNMENT=0x2000
|
|
||||||
TFM_LINKER_SP_META_PTR_ALIGNMENT=0x100
|
|
||||||
+
|
|
||||||
+ # The RAM MPU Region block sizes are calculated manually. The RAM has to be covered
|
|
||||||
+ # with the MPU regions. These regions also have to be the power of 2 and
|
|
||||||
+ # the start addresses have to be aligned to these sizes. The sizes can be calculated
|
|
||||||
+ # from the S_DATA_START and S_DATA_SIZE defines.
|
|
||||||
+ RAM_MPU_REGION_BLOCK_1_SIZE=0x4000
|
|
||||||
+ RAM_MPU_REGION_BLOCK_2_SIZE=0x20000
|
|
||||||
+
|
|
||||||
)
|
|
||||||
#========================= Platform common defs ===============================#
|
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c b/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
index 98e795dde..39b19c535 100644
|
|
||||||
--- a/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
+++ b/platform/ext/target/arm/corstone1000/tfm_hal_isolation.c
|
|
||||||
@@ -15,6 +15,7 @@
|
|
||||||
#include "mpu_config.h"
|
|
||||||
#include "mmio_defs.h"
|
|
||||||
#include "flash_layout.h"
|
|
||||||
+#include "region_defs.h"
|
|
||||||
|
|
||||||
#define PROT_BOUNDARY_VAL \
|
|
||||||
((1U << HANDLE_ATTR_PRIV_POS) & HANDLE_ATTR_PRIV_MASK)
|
|
||||||
@@ -132,6 +133,27 @@ enum tfm_hal_status_t tfm_hal_set_up_static_boundaries(
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+ /* Set the RAM attributes. It is needed because the first region overlaps the whole
|
|
||||||
+ * SRAM and it has to be overridden.
|
|
||||||
+ * The RAM_MPU_REGION_BLOCK_1_SIZE and RAM_MPU_REGION_BLOCK_2_SIZE are calculated manually
|
|
||||||
+ * and added to the platform_region_defs compile definitions.
|
|
||||||
+ */
|
|
||||||
+ base = S_DATA_START;
|
|
||||||
+ limit = S_DATA_START + RAM_MPU_REGION_BLOCK_1_SIZE;
|
|
||||||
+ ret = configure_mpu(rnr++, base, limit,
|
|
||||||
+ XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ if (ret != TFM_HAL_SUCCESS) {
|
|
||||||
+ return ret;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ base = S_DATA_START + RAM_MPU_REGION_BLOCK_1_SIZE;
|
|
||||||
+ limit = S_DATA_START + RAM_MPU_REGION_BLOCK_1_SIZE + RAM_MPU_REGION_BLOCK_2_SIZE;
|
|
||||||
+ ret = configure_mpu(rnr++, base, limit,
|
|
||||||
+ XN_EXEC_NOT_OK, AP_RW_PRIV_UNPRIV);
|
|
||||||
+ if (ret != TFM_HAL_SUCCESS) {
|
|
||||||
+ return ret;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
arm_mpu_enable();
|
|
||||||
|
|
||||||
#endif /* CONFIG_TFM_ENABLE_MEMORY_PROTECT */
|
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
From 3d35eb08fe0cea5c4b882c448f44530bb45c05f0 Mon Sep 17 00:00:00 2001
|
From a32e7195a4fc1c9d890f9e22a795443d01dc1e8f Mon Sep 17 00:00:00 2001
|
||||||
From: Anusmita Dutta Mazumder <anusmita.duttamazumder@arm.com>
|
From: Anusmita Dutta Mazumder <anusmita.duttamazumder@arm.com>
|
||||||
Date: Tue, 2 Apr 2024 13:04:56 +0000
|
Date: Tue, 2 Apr 2024 13:04:56 +0000
|
||||||
Subject: [PATCH] platform: corstone1000: add unique guid for mps3
|
Subject: [PATCH 03/10] platform: corstone1000: add unique guid for mps3
|
||||||
|
|
||||||
This patch sets unique GUID for Corstone1000 FVP and MPS3
|
This patch sets unique GUID for Corstone1000 FVP and MPS3
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Signed-off-by: Anusmita Dutta Mazumder <anusmita.duttamazumder@arm.com>
|
|||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
diff --git a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
index 2e6cf80470..be04e0e5df 100644
|
index 003ab9faf8..5768df19b8 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
--- a/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
+++ b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
+++ b/platform/ext/target/arm/corstone1000/fw_update_agent/fwu_agent.c
|
||||||
@@ -113,13 +113,19 @@ enum fwu_agent_state_t {
|
@@ -113,13 +113,19 @@ enum fwu_agent_state_t {
|
||||||
@@ -37,5 +37,5 @@ index 2e6cf80470..be04e0e5df 100644
|
|||||||
#define IMAGE_NOT_ACCEPTED (0)
|
#define IMAGE_NOT_ACCEPTED (0)
|
||||||
#define BANK_0 (0)
|
#define BANK_0 (0)
|
||||||
--
|
--
|
||||||
2.38.1
|
2.25.1
|
||||||
|
|
||||||
+5
-6
@@ -1,7 +1,7 @@
|
|||||||
From 1410dc5504d60219279581b1cf6442f81551cfe7 Mon Sep 17 00:00:00 2001
|
From a4e037b3bcf34982b8bdaf8693fd0f89d4f7fc87 Mon Sep 17 00:00:00 2001
|
||||||
From: Emekcan Aras <Emekcan.Aras@arm.com>
|
From: Emekcan Aras <Emekcan.Aras@arm.com>
|
||||||
Date: Wed, 3 Apr 2024 13:37:40 +0100
|
Date: Wed, 3 Apr 2024 13:37:40 +0100
|
||||||
Subject: [PATCH] Platform: Corstone1000: Enable host firewall in FVP
|
Subject: [PATCH 04/10] Platform: Corstone1000: Enable host firewall in FVP
|
||||||
|
|
||||||
Enables host firewall and mpu setup for FVP. It also fixes secure-ram
|
Enables host firewall and mpu setup for FVP. It also fixes secure-ram
|
||||||
configuration and disable access rights to secure ram from both normal world
|
configuration and disable access rights to secure ram from both normal world
|
||||||
@@ -16,7 +16,7 @@ Upstream-Status: Pending [Not submitted to upstream yet]
|
|||||||
3 files changed, 11 insertions(+), 35 deletions(-)
|
3 files changed, 11 insertions(+), 35 deletions(-)
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h b/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
diff --git a/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h b/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
||||||
index 416f0ebcd..101cad9e7 100644
|
index 416f0ebcdb..101cad9e7c 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
--- a/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
||||||
+++ b/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
+++ b/platform/ext/target/arm/corstone1000/Device/Include/platform_base_address.h
|
||||||
@@ -67,7 +67,7 @@
|
@@ -67,7 +67,7 @@
|
||||||
@@ -29,7 +29,7 @@ index 416f0ebcd..101cad9e7 100644
|
|||||||
#define CORSTONE1000_HOST_BASE_SYSTEM_CONTROL_BASE (0x7A010000U) /* Host SCB */
|
#define CORSTONE1000_HOST_BASE_SYSTEM_CONTROL_BASE (0x7A010000U) /* Host SCB */
|
||||||
#define CORSTONE1000_EXT_SYS_RESET_REG (0x7A010310U) /* external system (cortex-M3) */
|
#define CORSTONE1000_EXT_SYS_RESET_REG (0x7A010310U) /* external system (cortex-M3) */
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c b/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
diff --git a/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c b/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
||||||
index a5fee66af..7988c2392 100644
|
index 45d6768215..2f693d2b1b 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
--- a/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
||||||
+++ b/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
+++ b/platform/ext/target/arm/corstone1000/bl1/boot_hal_bl1_1.c
|
||||||
@@ -35,7 +35,7 @@ REGION_DECLARE(Image$$, ER_DATA, $$Base)[];
|
@@ -35,7 +35,7 @@ REGION_DECLARE(Image$$, ER_DATA, $$Base)[];
|
||||||
@@ -159,7 +159,7 @@ index a5fee66af..7988c2392 100644
|
|||||||
#if defined(TFM_BL1_LOGGING) || defined(TEST_BL1_1) || defined(TEST_BL1_2)
|
#if defined(TFM_BL1_LOGGING) || defined(TEST_BL1_1) || defined(TEST_BL1_2)
|
||||||
stdio_init();
|
stdio_init();
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c b/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
diff --git a/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c b/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
||||||
index 2b1cdfa19..06cc3f0f5 100644
|
index 2b1cdfa199..06cc3f0f52 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
--- a/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
||||||
+++ b/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
+++ b/platform/ext/target/arm/corstone1000/bl2/flash_map_bl2.c
|
||||||
@@ -70,7 +70,7 @@ int boot_get_image_exec_ram_info(uint32_t image_id,
|
@@ -70,7 +70,7 @@ int boot_get_image_exec_ram_info(uint32_t image_id,
|
||||||
@@ -174,4 +174,3 @@ index 2b1cdfa19..06cc3f0f5 100644
|
|||||||
--
|
--
|
||||||
2.25.1
|
2.25.1
|
||||||
|
|
||||||
|
|
||||||
+5
-2
@@ -1,7 +1,7 @@
|
|||||||
From 2edf197735bd0efb1428c1710443dddcb376d930 Mon Sep 17 00:00:00 2001
|
From 5b5c190ff91f387e4709950b6c734cda16c4b32d Mon Sep 17 00:00:00 2001
|
||||||
From: Emekcan Aras <emekcan.aras@arm.com>
|
From: Emekcan Aras <emekcan.aras@arm.com>
|
||||||
Date: Wed, 17 Apr 2024 11:34:45 +0000
|
Date: Wed, 17 Apr 2024 11:34:45 +0000
|
||||||
Subject: [PATCH] platform: corstone1000: Increase ITS max asset size
|
Subject: [PATCH 05/10] platform: corstone1000: Increase ITS max asset size
|
||||||
|
|
||||||
Increases the max asset size for ITS to enable parsec services & tests
|
Increases the max asset size for ITS to enable parsec services & tests
|
||||||
|
|
||||||
@@ -25,3 +25,6 @@ index 2c7341afd4..2eb0924770 100644
|
|||||||
+#define ITS_MAX_ASSET_SIZE 2048
|
+#define ITS_MAX_ASSET_SIZE 2048
|
||||||
+
|
+
|
||||||
#endif /* __CONFIG_TFM_TARGET_H__ */
|
#endif /* __CONFIG_TFM_TARGET_H__ */
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
+5
-6
@@ -1,7 +1,7 @@
|
|||||||
From 21b0c9f028b6b04fa2f027510ec90969735f4dd1 Mon Sep 17 00:00:00 2001
|
From 05611d5a55ac8858d07c64e48699100700578b80 Mon Sep 17 00:00:00 2001
|
||||||
From: Bence Balogh <bence.balogh@arm.com>
|
From: Bence Balogh <bence.balogh@arm.com>
|
||||||
Date: Wed, 17 Apr 2024 19:31:03 +0200
|
Date: Fri, 5 Jul 2024 21:18:08 +0200
|
||||||
Subject: [PATCH] platform: corstone1000: Increase RSE_COMMS buffer size
|
Subject: [PATCH 06/10] platform: corstone1000: Increase RSE_COMMS buffer size
|
||||||
|
|
||||||
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
@@ -10,13 +10,13 @@ Upstream-Status: Pending
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h b/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
diff --git a/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h b/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
||||||
index 6d79dd3bf..f079f6504 100644
|
index 41e5c2bc34..b89460ea93 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
--- a/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
||||||
+++ b/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
+++ b/platform/ext/target/arm/corstone1000/rse_comms/rse_comms.h
|
||||||
@@ -16,7 +16,7 @@ extern "C" {
|
@@ -16,7 +16,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* size suits to fit the largest message too (EFI variables) */
|
/* size suits to fit the largest message too (EFI variables) */
|
||||||
-#define RSE_COMMS_PAYLOAD_MAX_SIZE (0x2100)
|
-#define RSE_COMMS_PAYLOAD_MAX_SIZE (0x2100)
|
||||||
+#define RSE_COMMS_PAYLOAD_MAX_SIZE (0x43C0)
|
+#define RSE_COMMS_PAYLOAD_MAX_SIZE (0x43C0)
|
||||||
|
|
||||||
@@ -25,4 +25,3 @@ index 6d79dd3bf..f079f6504 100644
|
|||||||
--
|
--
|
||||||
2.25.1
|
2.25.1
|
||||||
|
|
||||||
|
|
||||||
+7
-5
@@ -1,8 +1,8 @@
|
|||||||
From a8aeaafd6c26d6bc3066164d12aabc5cb754fe1c Mon Sep 17 00:00:00 2001
|
From 60ab8bbf85e9e84afd23948a71cf84c69f4aad7a Mon Sep 17 00:00:00 2001
|
||||||
From: Ali Can Ozaslan <ali.oezaslan@arm.com>
|
From: Ali Can Ozaslan <ali.oezaslan@arm.com>
|
||||||
Date: Wed, 15 May 2024 12:12:15 +0000
|
Date: Wed, 15 May 2024 12:12:15 +0000
|
||||||
Subject: [PATCH] CC312: alignment of cc312 differences between fvp and mps3
|
Subject: [PATCH 07/10] CC312: alignment of cc312 differences between fvp and
|
||||||
corstone1000 platforms
|
mps3 corstone1000 platforms
|
||||||
|
|
||||||
Configures CC312 mps3 model same as predefined cc312 FVP
|
Configures CC312 mps3 model same as predefined cc312 FVP
|
||||||
configuration while keeping debug ports closed.
|
configuration while keeping debug ports closed.
|
||||||
@@ -10,13 +10,12 @@ configuration while keeping debug ports closed.
|
|||||||
Signed-off-by: Ali Can Ozaslan <ali.oezaslan@arm.com>
|
Signed-off-by: Ali Can Ozaslan <ali.oezaslan@arm.com>
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [Requires an aligment cc3xx with mps3 hw and fvp sw models]
|
Upstream-Status: Inappropriate [Requires an aligment cc3xx with mps3 hw and fvp sw models]
|
||||||
|
|
||||||
---
|
---
|
||||||
lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c | 3 +++
|
lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c | 3 +++
|
||||||
1 file changed, 3 insertions(+)
|
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
|
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 31e4332be..4d7e6fa61 100644
|
index 31e4332bed..4b08c02526 100644
|
||||||
--- a/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/cc_lib.c
|
--- 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
|
+++ 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
|
@@ -207,6 +207,9 @@ CClibRetCode_t CC_LibInit(CCRndContext_t *rndContext_ptr, CCRndWorkBuff_t *rndW
|
||||||
@@ -29,3 +28,6 @@ index 31e4332be..4d7e6fa61 100644
|
|||||||
/* turn off the DFA since Cerberus doen't support it */
|
/* turn off the DFA since Cerberus doen't support it */
|
||||||
reg = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, HOST_AO_LOCK_BITS));
|
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);
|
CC_REG_FLD_SET(0, HOST_AO_LOCK_BITS, HOST_FORCE_DFA_ENABLE, reg, 0x0);
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
-3620
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
From d7725e629c9ba93523589cc9d8af3186db19d4e8 Mon Sep 17 00:00:00 2001
|
From 9dd3287693c259a88d81140c26f9c792d808dd7c Mon Sep 17 00:00:00 2001
|
||||||
From: Bence Balogh <bence.balogh@arm.com>
|
From: Bence Balogh <bence.balogh@arm.com>
|
||||||
Date: Wed, 15 May 2024 22:37:51 +0200
|
Date: Wed, 15 May 2024 22:37:51 +0200
|
||||||
Subject: [PATCH] Platform: corstone1000: Increase buffers for EFI vars
|
Subject: [PATCH 08/10] Platform: corstone1000: Increase buffers for EFI vars
|
||||||
|
|
||||||
The UEFI variables are stored in the Protected Storage. The size of
|
The UEFI variables are stored in the Protected Storage. The size of
|
||||||
the variables metadata have been increased so the related buffer sizes
|
the variables metadata have been increased so the related buffer sizes
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
From 78db43f80676f8038b35edd6674d22fb5ff85c12 Mon Sep 17 00:00:00 2001
|
From 898d3c148521b331302c587e658d7e0a4f645c77 Mon Sep 17 00:00:00 2001
|
||||||
From: Bence Balogh <bence.balogh@arm.com>
|
From: Bence Balogh <bence.balogh@arm.com>
|
||||||
Date: Mon, 27 May 2024 17:11:31 +0200
|
Date: Mon, 27 May 2024 17:11:31 +0200
|
||||||
Subject: [PATCH] corstone1000: Remove reset after capsule update
|
Subject: [PATCH 09/10] corstone1000: Remove reset after capsule update
|
||||||
|
|
||||||
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
|
||||||
Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/29065]
|
Upstream-Status: Submitted [https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/29065]
|
||||||
+7
-7
@@ -1,7 +1,7 @@
|
|||||||
From 1120957e74a1a0727a215188813cab3e47602e71 Mon Sep 17 00:00:00 2001
|
From 1eb9bc330bf387ff26a6df93d3b8c843174dc40b Mon Sep 17 00:00:00 2001
|
||||||
From: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
|
From: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
|
||||||
Date: Thu, 9 May 2024 13:20:57 +0000
|
Date: Thu, 9 May 2024 13:20:57 +0000
|
||||||
Subject: [PATCH] platform: CS1000: Add multicore support for FVP
|
Subject: [PATCH 10/10] platform: CS1000: Add multicore support for FVP
|
||||||
|
|
||||||
This changeset adds the support to enable the secondary cores for
|
This changeset adds the support to enable the secondary cores for
|
||||||
the Corstone-1000 FVP
|
the Corstone-1000 FVP
|
||||||
@@ -15,10 +15,10 @@ Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>
|
|||||||
3 files changed, 48 insertions(+), 2 deletions(-)
|
3 files changed, 48 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/CMakeLists.txt b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
diff --git a/platform/ext/target/arm/corstone1000/CMakeLists.txt b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
||||||
index e2a7ac302..a269251aa 100644
|
index 95e3f57b4f..e46123cc6f 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
--- a/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
||||||
+++ b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
+++ b/platform/ext/target/arm/corstone1000/CMakeLists.txt
|
||||||
@@ -374,6 +374,12 @@ target_sources(tfm_psa_rot_partition_ns_agent_mailbox
|
@@ -381,6 +381,12 @@ target_sources(tfm_psa_rot_partition_ns_agent_mailbox
|
||||||
tfm_hal_multi_core.c
|
tfm_hal_multi_core.c
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ index e2a7ac302..a269251aa 100644
|
|||||||
|
|
||||||
target_sources(tfm_spm
|
target_sources(tfm_spm
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h b/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
diff --git a/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h b/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
||||||
index 222905d3d..9d48f119e 100644
|
index 222905d3dd..9d48f119ed 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
--- a/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
||||||
+++ b/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
+++ b/platform/ext/target/arm/corstone1000/Device/Config/device_cfg.h
|
||||||
@@ -45,5 +45,11 @@
|
@@ -45,5 +45,11 @@
|
||||||
@@ -48,7 +48,7 @@ index 222905d3d..9d48f119e 100644
|
|||||||
|
|
||||||
#endif /* __DEVICE_CFG_H__ */
|
#endif /* __DEVICE_CFG_H__ */
|
||||||
diff --git a/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c b/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
diff --git a/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c b/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
||||||
index f0e2bc333..ce72e50c9 100644
|
index f0e2bc333a..ce72e50c9b 100644
|
||||||
--- a/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
--- a/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
||||||
+++ b/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
+++ b/platform/ext/target/arm/corstone1000/tfm_hal_multi_core.c
|
||||||
@@ -11,9 +11,14 @@
|
@@ -11,9 +11,14 @@
|
||||||
@@ -115,5 +115,5 @@ index f0e2bc333..ce72e50c9 100644
|
|||||||
|
|
||||||
#ifdef EXTERNAL_SYSTEM_SUPPORT
|
#ifdef EXTERNAL_SYSTEM_SUPPORT
|
||||||
--
|
--
|
||||||
2.34.1
|
2.25.1
|
||||||
|
|
||||||
@@ -18,21 +18,18 @@ SRC_URI += " \
|
|||||||
|
|
||||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||||
SRC_URI:append:corstone1000 = " \
|
SRC_URI:append:corstone1000 = " \
|
||||||
file://0001-platform-corstone1000-Update-MPU-configuration.patch \
|
file://0001-platform-corstone1000-align-capsule-update-structs.patch \
|
||||||
file://0002-platform-corstone1000-Cover-S_DATA-with-MPU.patch \
|
file://0002-Platform-Corstone1000-skip-the-first-nv-counter.patch \
|
||||||
file://0003-platform-corstone1000-align-capsule-update-structs.patch \
|
file://0003-platform-corstone1000-add-unique-guid-for-mps3.patch \
|
||||||
file://0004-Platform-Corstone1000-skip-the-first-nv-counter.patch \
|
file://0004-Platform-Corstone1000-Enable-host-firewall-in-FVP.patch \
|
||||||
file://0005-platform-corstone1000-add-unique-guid-for-mps3.patch \
|
file://0005-platform-corstone1000-Increase-ITS-max-asset-size.patch \
|
||||||
file://0006-Platform-Corstone1000-Enable-host-firewall-in-FVP.patch \
|
file://0006-platform-corstone1000-Increase-RSE_COMMS-buffer-size.patch \
|
||||||
file://0007-platform-corstone1000-Increase-ITS-max-asset-size.patch \
|
file://0007-CC312-alignment-of-cc312-differences-between-fvp-and.patch \
|
||||||
file://0008-Platform-CS1000-Replace-OpenAMP-with-RSE_COMMS.patch \
|
file://0008-Platform-corstone1000-Increase-buffers-for-EFI-vars.patch \
|
||||||
file://0009-platform-corstone1000-Increase-RSE_COMMS-buffer-size.patch \
|
file://0009-corstone1000-Remove-reset-after-capsule-update.patch \
|
||||||
file://0010-CC312-alignment-of-cc312-differences-between-fvp-and.patch \
|
file://0010-platform-CS1000-Add-multicore-support-for-FVP.patch \
|
||||||
file://0011-Platform-corstone1000-Increase-buffers-for-EFI-vars.patch \
|
file://0011-Platform-Corstone1000-switch-to-metadata-v2.patch \
|
||||||
file://0012-corstone1000-Remove-reset-after-capsule-update.patch \
|
file://0012-platform-corstone1000-Increase-flash-PS-area-size.patch \
|
||||||
file://0013-platform-CS1000-Add-multicore-support-for-FVP.patch \
|
|
||||||
file://0014-Platform-Corstone1000-switch-to-metadata-v2.patch \
|
|
||||||
file://0015-platform-corstone1000-Increase-flash-PS-area-size.patch \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
# TF-M ships patches for external dependencies that needs to be applied
|
# TF-M ships patches for external dependencies that needs to be applied
|
||||||
|
|||||||
Reference in New Issue
Block a user