Skip to content
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

Do Not Review: Upmerge TF-M v2.1.0 Mbed TLS v3.6.0 (only for testing) #17229

Open
wants to merge 192 commits into
base: main
Choose a base branch
from

Conversation

frkv
Copy link
Contributor

@frkv frkv commented Sep 9, 2024

Current state: Do not merge, Do not review

This pull request adds support for TF-M 2.1.0 and Mbed TLS 3.6.0.

Missing:

  • Correct manifest checkout for related repositories (TF-M, nrfxlib, mcuboot, tf-m-tests, oberon-psa-core and Mbed TLS)
  • Removal of some WIP commits
  • Full run of CI once the aforementioned

The Do not Review statement will be removed once related repositories are synchronized)

@frkv frkv added the DNM label Sep 9, 2024
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Sep 9, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Sep 9, 2024

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 25

Inputs:

Sources:

more details

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (0)

Outputs:

Toolchain

Version:
Build docker image:

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain
  • ◻️ Build twister
  • ◻️ Integration tests

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

krish2718 and others added 19 commits September 30, 2024 11:53
When sysbuild Wi-Fi needs to be enabled explicitly to avoid build
issues.

Signed-off-by: Chaitanya Tata <[email protected]>
fixup! crypto: Adding threading support for PSA core

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
-Fixes issues booting TF-M

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
This will be re-enabled when sdl2 is added to toolchain.

Signed-off-by: Thomas Stilwell <[email protected]>
-Fixes issues on nRF54L15 devices (uses CRACEN)

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
Added this sample scenario to quarantine.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Fix build error by including missing file mbedtls_config.h.

Signed-off-by: Simen S. Røstad <[email protected]>
Enable WIFI_NRF70 only for Wi-Fi builds

Signed-off-by: Simen S. Røstad <[email protected]>
-Setting the flag was missing

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
-Added regression trying to fix tfm_hello_Word. This commmit fixes it

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
The flash_thread is using a colliding name when registering with
the log module LOG_MODULE_REGISTER(flash, LOG_LEVEL_INF). Update
name to flash_thd to avoid naming collision.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
The write struct member has been removed in bt_gatt_subscribe_params.
Replace it by another struct member 'subscribe'.

Signed-off-by: Lang Xie <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Update the nrf7002 in the thingy91x board to match upstream dts
model. Additionally add COEX model of nrf700x for use with for
example cpunet.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Ignore the min heap requirements for Wi-Fi and update the nrf9151/ns
overlay to properly reference the wifi wlan0 node.

Signed-off-by: Pete Skeggs <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Signal that we knowingly are setting the heap size smaller than
sum of min heaps.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
-This enabled md_ext.c for nRF54H20 (CPUAPP/CPURAD) to ensuce
 psa_can_do_hash and psa_can_do_cipher is available

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
Quarantine net.lib.wifi_credentials_backend_psa temporarily to be fixed
after upmerge.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Static RAM usage is exceeding the `RAM` region at build time. Decrease
the number of RX buffers to fix this.

Signed-off-by: Ravi Dondaputi <[email protected]>
-This adds Kconfis that can be used to signal that legacy MD/CIPHER
 functionality must be used even though MBEDTLS_PSA_CRYPTO_CLIENT is
 set. This is done to allow TF-M miminmal configuration to work
 (as it doesn't enable anything other than RNG). The real solution
 is to port to use PSA crypto APIs, so these configurations can be
 removed

Signed-off-by: Frank Audun Kvamtrø <[email protected]>
@frkv frkv force-pushed the upmerge-TF-M-2.1-mbedtls-3.6 branch from 0ec6c42 to 5421337 Compare September 30, 2024 13:04
The builtin keys are used in different ways for the
nRF54L15 and the nRF9160 and nRF5340 devices.

The L15 devices don't use the default TFM builtin key
loader but they implement their own function to load
the builtin keys.

The configuration MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS is
necessary for all the platforms though sinc the PSA
core will not include basic builtin key functionality
without it.

Signed-off-by: Georgios Vasilakis <[email protected]>
Enable MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS for the nRF54L15
since it is always required in order to use the HUKs.

This is relevant to the non-TFM target of L15.

Signed-off-by: Georgios Vasilakis <[email protected]>
Allow to import a ECC public key even when the algorithm is
not set. This is allowed in the other drivers and we observed
that some TLS tests don't set the algorithm.

Signed-off-by: Georgios Vasilakis <[email protected]>
Remove the test case for Oberon PSA on nRF54L15
since it is not fully suppoted. In nRF54L15
the random driver for Cracen has dependencies on
other functionality of the Cracen driver which
means that you are forced to enable more driver
features in order to get random. Enabling features
in Cracen automatically disable the equivalent features
in Oberon.
Since this case requires random from Cracen most of the
Oberon functionality of Oberon will be disabled anyway
so we disable it here.

Signed-off-by: Georgios Vasilakis <[email protected]>
With a more relevant name

Signed-off-by: Georgios Vasilakis <[email protected]>
These will be moved later to the Zephyr file:
modules/mbedtls/Kconfig.psa.nordic

Placing them here now to minimize the changes
in the upmerge Zephyr PR.

Signed-off-by: Georgios Vasilakis <[email protected]>
No funtional change here, just fixes spacing
issues causing compliance failures in
nrf_security and TFM.

Signed-off-by: Georgios Vasilakis <[email protected]>
@Vge0rge Vge0rge force-pushed the upmerge-TF-M-2.1-mbedtls-3.6 branch from c6ffa89 to b0be16e Compare October 4, 2024 12:02
Copy link

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.