From 115196939f3c127e90e69efe2149c269eeb3f022 Mon Sep 17 00:00:00 2001 From: Adam Johnston Date: Fri, 19 Apr 2024 14:11:30 +0100 Subject: [PATCH] arm-bsp/corstone1000: Fix RSA key generation issue A patch was dropped when trusted-firmware-m was updated to 2.0 but it had not yet been merged upstream (2.0 or master). Restore the patch to fix regression on Corstone-1000 Signed-off-by: Jon Mason --- ...tone1000-Increase-ITS-max-asset-size.patch | 27 +++++++++++++++++++ .../trusted-firmware-m-corstone1000.inc | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-platform-corstone1000-Increase-ITS-max-asset-size.patch diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-platform-corstone1000-Increase-ITS-max-asset-size.patch b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-platform-corstone1000-Increase-ITS-max-asset-size.patch new file mode 100644 index 00000000..e831f034 --- /dev/null +++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-platform-corstone1000-Increase-ITS-max-asset-size.patch @@ -0,0 +1,27 @@ +From 2edf197735bd0efb1428c1710443dddcb376d930 Mon Sep 17 00:00:00 2001 +From: Emekcan Aras +Date: Wed, 17 Apr 2024 11:34:45 +0000 +Subject: [PATCH] platform: corstone1000: Increase ITS max asset size + +Increases the max asset size for ITS to enable parsec services & tests +​ +Upstream-Status: Pending +Signed-off-by: Emekcan Aras +Signed-off-by: Vikas Katariya +--- + platform/ext/target/arm/corstone1000/config_tfm_target.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/platform/ext/target/arm/corstone1000/config_tfm_target.h b/platform/ext/target/arm/corstone1000/config_tfm_target.h +index 2c7341afd4..2eb0924770 100644 +--- a/platform/ext/target/arm/corstone1000/config_tfm_target.h ++++ b/platform/ext/target/arm/corstone1000/config_tfm_target.h +@@ -20,4 +20,8 @@ + /* The maximum number of assets to be stored in the Protected Storage area. */ + #define PS_NUM_ASSETS 20 + ++/* The maximum size of asset to be stored in the Internal Trusted Storage area. */ ++#undef ITS_MAX_ASSET_SIZE ++#define ITS_MAX_ASSET_SIZE 2048 ++ + #endif /* __CONFIG_TFM_TARGET_H__ */ diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc index 72aea36f..136337b6 100644 --- a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc +++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m-corstone1000.inc @@ -41,6 +41,7 @@ SRC_URI:append:corstone1000 = " \ file://0006-Platform-Corstone1000-skip-the-first-nv-counter.patch \ file://0007-platform-corstone1000-add-unique-guid-for-mps3.patch \ file://0008-Platform-Corstone1000-Enable-host-firewall-in-FVP.patch \ + file://0009-platform-corstone1000-Increase-ITS-max-asset-size.patch \ " # TF-M ships patches for external dependencies that needs to be applied