-
Notifications
You must be signed in to change notification settings - Fork 3k
Import latest python scripts and MCUBoot image #12231
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
@Devran01, thank you for your changes. |
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 also rebase to resolve a conflict
targets/targets.json
Outdated
@@ -5757,7 +5757,7 @@ | |||
"inherits": ["Target"], | |||
"default_toolchain": "ARMC6", | |||
"extra_labels": ["ARM_SSG", "MUSCA_A1"], | |||
"forced_reset_timeout": 7, | |||
"forced_reset_timeout": 13, |
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.
this should be a separate commit, or even a pull request?
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.
@0xc0170 This workaround was done to fix the bug in TF-M bootloader. But it is already fixed in the version of TF-M bootloader imported into Mbed OS. Therefore we don't need this workaround anymore.
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
To help with the integration of Musca B1 into Mbed OS, python signing scripts and MCUBoot image and RSA private key for Musca A has been updated from latest TF-M (https://git.trustedfirmware.org/trusted-firmware-m.git/commit/?id=6c5be4a98e4d7055ee49076ca4e515fb4b172e66). Signed-off-by: Devaraj Ranganna <[email protected]>
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.
Some comments in line.
requirements.txt
Outdated
@@ -26,5 +26,5 @@ cmsis-pack-manager>=0.2.3,<0.3.0 | |||
pywin32==224;platform_system=='Windows' | |||
wmi==1.4.9;platform_system=='Windows' | |||
psutil==5.6.2 | |||
cryptography>=2.4.x,<2.5 | |||
cryptography>=2.5,<=2.8 |
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.
Is there a reason why the upper bound is limited to 2.8? Can we not use '<3'
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.
Fixed.
RSA_KEY_SIZES = [2048, 3072] | ||
|
||
# Public exponent | ||
PUBLIC_EXPONENT = 65537 |
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.
Query: should this be 65536?
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.
@mark-edgeworth The recommended value for RSA public exponent is 65537.
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.
ok, just checking
The requirements.txt mandates 2.4.x version of cryptography python module which has an issue as it checks if the payload is an instance of bytes which is actually a bytearray. This issue is fixed in 2.5 version, hence bump up minimum version to 2.5. Signed-off-by: Devaraj Ranganna <[email protected]>
If we modified any files that are imported from TF-M, are there patches raised to TF-M to make the modifications we want (for example, adding SPDX identifiers)? |
@Patater @adbridge This commit has more changes to imported files than just SPDX identifier addition. The reason for that is MUSCA A target support in Mbed OS hans't been updated in a while. OSS team is planning to update MUSCA A target support in Mbed OS. When that happens we can import signing scripts from TF-M without any modification. I'll create a patchset to add SPDX license identifier so that next TF-M import need not have any modifications. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This PR does not contain release version label after merging. |
Summary of changes
To help with the integration of Musca B1 into Mbed OS, python
signing scripts and MCUBoot image and RSA private key for Musca A
has been updated from latest TF-M
(https://git.trustedfirmware.org/trusted-firmware-m.git/commit/?id=6c5be4a98e4d7055ee49076ca4e515fb4b172e66).
Signed-off-by: Devaraj Ranganna [email protected]
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@Patater @jainvikas8