mbox series

[0/2] Corstone1000 GPT Library

Message ID 20260326132857.1590256-1-frazer.carsley@arm.com
Headers show
Series Corstone1000 GPT Library | expand

Message

Frazer Carsley March 26, 2026, 1:28 p.m. UTC
Adds to Corstone1000 the GPT library from TF-M. This is used to
dynamically provision partitions, and remove them, during a firmware
update. This way, there is no need to provision the second bank at build
time.

All patches added in these commits are either submitted or backports,
and can be removed when Corstone1000 upgrades to a version of TF-M that
contains them.

Frazer Carsley (2):
  arm-bsp/tf-m:cs1k: Add GPT library
  arm-bsp/tf-m:cs1k: modified mcuboot to use GPT library

 .../conf/machine/corstone1000-fvp.conf        |    2 +
 .../conf/machine/corstone1000-mps3.conf       |    2 +
 .../conf/machine/include/corstone1000.inc     |    1 -
 ...-lib-efi_guid-Added-EFI-GUID-library.patch |  217 +
 ...b-efi_soft_crc-Added-EFI-CRC-library.patch |  136 +
 ...emented-generic-GPT-parser-for-flash.patch | 1495 ++++++
 ...-how-GPT-partition-can-be-identified.patch |  308 ++
 ...dded-operations-to-modify-partitions.patch |  961 ++++
 ...ib-gpt-Added-operation-to-move-entry.patch |  374 ++
 ...ility-to-create-and-remove-partition.patch |  713 +++
 ...pt-Added-table-validation-operations.patch |  412 ++
 ...-gpt-Added-defragmentation-operation.patch |  280 +
 .../0026-lib-GPT-Fix-cppcheck-warnings.patch  |   74 +
 ...uid-Remove-unecessary-include-folder.patch |   28 +
 ...lib-efi_guid-Correct-included-folder.patch |   28 +
 ...i_soft_crc-Correct-include-directory.patch |   25 +
 ...030-lib-gpt-Add-missing-link-library.patch |   27 +
 ...1-lib-gpt-Correct-variable-name-used.patch |   24 +
 ...32-lib-gpt-Correct-include-directory.patch |   27 +
 ...t-Move-contents-of-CMake-config-file.patch |   51 +
 ...34-plat-cs1k-Fixed-formatting-errors.patch |  261 +
 ...5-plat-cs1k-Removed-unused-variables.patch |   43 +
 ...plat-cs1k-Fixed-bad-function-returns.patch |   40 +
 ...at-cs1k-Improved-logging-in-function.patch |   48 +
 ...038-plat-cs1k-Remove-unused-function.patch |   93 +
 ...039-plat-cs1k-Reduce-BL1-binary-size.patch |  464 ++
 ...-plat-cs1k-Update-license-identifier.patch |   35 +
 ...-cs1k-Changed-to-use-new-GPT-library.patch | 4536 +++++++++++++++++
 ...s1k-Move-variable-from-stack-to-data.patch |   55 +
 ...eate-and-remove-FWU-image-partitions.patch |  521 ++
 .../trusted-firmware-m-corstone1000.inc       |   31 +-
 ...=> corstone1000-flash-firmware-fvp.wks.in} |   22 +-
 .../corstone1000-flash-firmware-mps3.wks.in   |   34 +
 33 files changed, 11351 insertions(+), 17 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0017-lib-efi_guid-Added-EFI-GUID-library.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0018-lib-efi_soft_crc-Added-EFI-CRC-library.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0019-lib-gpt-Implemented-generic-GPT-parser-for-flash.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0020-lib-gpt-Expanded-how-GPT-partition-can-be-identified.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0021-lib-gpt-Added-operations-to-modify-partitions.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0022-lib-gpt-Added-operation-to-move-entry.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0023-lib-gpt-Added-ability-to-create-and-remove-partition.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0024-lib-gpt-Added-table-validation-operations.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0025-lib-gpt-Added-defragmentation-operation.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0026-lib-GPT-Fix-cppcheck-warnings.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0027-lib-efi_guid-Remove-unecessary-include-folder.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0028-lib-efi_guid-Correct-included-folder.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0029-lib-efi_soft_crc-Correct-include-directory.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0030-lib-gpt-Add-missing-link-library.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0031-lib-gpt-Correct-variable-name-used.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0032-lib-gpt-Correct-include-directory.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0033-lib-gpt-Move-contents-of-CMake-config-file.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0034-plat-cs1k-Fixed-formatting-errors.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0035-plat-cs1k-Removed-unused-variables.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0036-plat-cs1k-Fixed-bad-function-returns.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0037-plat-cs1k-Improved-logging-in-function.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0038-plat-cs1k-Remove-unused-function.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0039-plat-cs1k-Reduce-BL1-binary-size.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0040-plat-cs1k-Update-license-identifier.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0041-plat-cs1k-Changed-to-use-new-GPT-library.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0042-plat-cs1k-Move-variable-from-stack-to-data.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0043-plat-cs1k-Create-and-remove-FWU-image-partitions.patch
 rename meta-arm-bsp/wic/{corstone1000-flash-firmware.wks.in => corstone1000-flash-firmware-fvp.wks.in} (65%)
 create mode 100644 meta-arm-bsp/wic/corstone1000-flash-firmware-mps3.wks.in

Comments

Jon Mason March 27, 2026, 1:48 a.m. UTC | #1
On Thu, 26 Mar 2026 13:28:38 +0000, Frazer Carsley wrote:
> Adds to Corstone1000 the GPT library from TF-M. This is used to
> dynamically provision partitions, and remove them, during a firmware
> update. This way, there is no need to provision the second bank at build
> time.
> 
> All patches added in these commits are either submitted or backports,
> and can be removed when Corstone1000 upgrades to a version of TF-M that
> contains them.
> 
> [...]

Applied, thanks!

[1/2] arm-bsp/tf-m:cs1k: Add GPT library
      commit: 5fc4c29db9a0ac5eb937d008e8f5adbb52684480
[2/2] arm-bsp/tf-m:cs1k: modified mcuboot to use GPT library
      commit: 1778b36d666e5c990778bac8abe503175149b451

Best regards,