-
Notifications
You must be signed in to change notification settings - Fork 3k
Make MUSCA B1 and MUSCA A1 TF-M ready #12735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Patater, thank you for your changes. |
CI started |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
Updated to add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the copyright year of the files as needed.
|
||
/* To copy multiple ROM to RAM sections, | ||
* define etext2/data2_start/data2_end and | ||
* define __STARTUP_COPY_MULTIPLE in startup_cmsdk_musca_ns.S */ | ||
.copy.table : | ||
{ | ||
. = ALIGN(8); | ||
. = ALIGN(4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to know why the alignment has been changed to 4-bytes in a comment.
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
Please ignore lts jobs here , not valid for this PR. We will restart testing and fix lts status here later once 5.15 jobs are in |
CI started |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
CI restarted |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
Wrap inclusion of |
CI started |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
CI failure is due to outstanding PR to Mbed OS that is in CI now, will fix the issue and I'll start the tests |
CI started |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
Test psa failed, please review |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Avoid surprising users. Use the Mbed OS default baud rate. Applications that want to see TF-M debug prints can both enable and set their baud rate at the application level. Mbed OS should not turn on TF-M debug prints nor surprise the user with a non-default baud rate. Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
We are moving to flash_layout.h and region_defs.h being more closely aligned with TF-M's version. As such, some of the Mbed PSA implementation needs to additionally include region_defs.h.
Make the MUSCA_A1 target TF-M compatible by doing the following: - Add flash, region definitions, and preprocessed image macros from TF-M (at version 6e7be077eabe "Core: Add lifecycle API") - Update the MUSCA_A1 linker script to create a flash image compatible with TF-M. - Update the tfm/bin_utils/assemble.py signing script to work with preprocessed image macros rather than flat C pre-processor defines Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com> Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
Make the MUSCA_B1 target TF-M compatible by doing the following: - Add flash, region definitions, and preprocessed image macros from TF-M (at version 6e7be077eabe "Core: Add lifecycle API") - Update the MUSCA_B1 linker script to create a flash image compatible with TF-M. - Update the tfm/bin_utils/assemble.py signing script to work with preprocessed image macros rather than flat C pre-processor defines Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com> Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
Rebased on latest master to resolve conflicts. Conflicts were with MUSCA target tools and device_cfg.h because building for S targets was removed. |
CI restarted |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT looks ok to me
Summary of changes
Refactor MUSCA platform support in a way that makes the NS binaries compatible with how TF-M expects: same layout in flash and RAM. Doing this doesn't break ordinary Mbed OS usage.
Impact of changes
No breaking changes. MUSCA targets will be ready for TF-M.
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers
@Devran01 @jainvikas8