-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add Musca B1 target #12458
Add Musca B1 target #12458
Conversation
@GaborAbonyi, thank you for your changes. |
ab84fd3
to
355e664
Compare
Should not fail the test but rather skip so all fine. I can see from the logs it timeouted, why? |
The mbed_hal trng test does not have TEST_SKIP or similar conditions, so it is always run if built.
But in targets.json, NSPE_Target is defined (which is inherited by Musca-B1) to have TRNG, but for Musca-B1 it is not the case. |
If that is the case, you can remove it. Add to targets.json file: |
Thanks, it seems to be the right way. I checked and it has some other consequences I also have to rerun the greentea tests. I'll check and get back with the results. |
I checked if it is feasible to add |
CI started |
Test run: FAILEDSummary: 2 of 4 test jobs failed Failed test jobs:
|
Please review failures (build logs above) |
crypto_access_control build failed because the secure partition size on Musca B1 is only 320KB, and this test would need around 500 KB. Is there a way to disable that test for this target? |
@Patater is there a reason for the test to require that much ? Is there a way to fix this or the only way to have target skip this test (we often prefer if we test on all targets rather than having specific rules per target) |
If I add the secure binary to the prebuilt binaries with this command: |
Define weak functions that the platforms can overwrite Change-Id: I3d6f3e59a9c5b88456875a495fa6decc1337683e Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com> Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
Musca-B1 is a Cortex-M33 based target with security extension enabled. - ARM_MUSCA_B1 is the non-secure target running mbed-os. - ARM_MUSCA_B1_S is the secure target running TF-M. - TF-M sources were imported and patched in previous commits. - TF-M secure bootloader (McuBoot) for MUSCA_B1 is submitted by a pre-built binary. - A post-build hook concatenates The secure and non-secure binaries, signs it and then concatenates the bootloader with the signed binary. Change-Id: I4b36290941b5f0bb7aa7c12dda2f38b5c1e39ae2 Signed-off-by: Tamas Kaman <tamas.kaman@arm.com> Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
355e664
to
551c3c5
Compare
Pull request has been modified.
I run the tests and they passed for both GCC and ARMC6: I also corrected the format of the targets.json to match the rest of the file. |
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
It seems there is some environmental issue in the tests. K66F test board is not properly connected. |
I restarted the test. I already reported this earlier today, we will need to investigate (it affects most of PRs today). |
Added Arm Musca B1 as a new target. Prebuilt secure binaries also added.
Summary of changes
These targets are defined:
Impact of changes
Now mbed-os can be compiled to Musca B1 target
Migration actions required
Documentation
To build an overall Musca B1 image containing secure and non-secure with a pre-compiled bootloader:
To rebuild special SPM IPC test secure-side binaries:
Pull request type
Test results
Greentea tests run with both GCC_ARM and ARMC6 toolchain:
greentea_musca_B1_profile_release_armc6.log
greentea_musca_B1_profile_release_gcc_arm.log
All tests passed except for tests-mbed_hal-trng, as Musca B1 does not have TRNG support.
Reviewers