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

M2354: Fix some TF-M minor issues #376

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-m2354-tfm INTERFACE)
if(NOT TARGET mbed-m2354-tfm)
add_library(mbed-m2354-tfm INTERFACE)
endif()

if("NU_M2354" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NU_M2354)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ $ cmake -S . \
-G"Unix Makefiles"
```

**NOTE**: To build for NuMaker-IoT-M2354 board, add below lines to above:
```
-DNU_TGT_NUMAKER_M2354=OFF \
-DNU_TGT_NUMAKER_IOT_M2354=ON \
```

Then:

```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Nuvoton M2354 RSA keypair

A default RSA key pair is given to the Nuvoton M2354 target.
Two default RSA key pairs are given to the Nuvoton M2354 target.

Public key was pre-compiled to `targets/TARGET_NUVOTON/TARGET_M2354/TARGET_TFM/TARGET_NU_M2354/COMPONENT_TFM_S_FW/bl2.bin` and private key is in `nuvoton_m2354-root-rsa-3072.pem` for Secure image and `nuvoton_m2354-root-rsa-3072_1.pem` for Non-Secure image.
Public keys were pre-compiled to `bl2.bin` and private keys are in
`nuvoton_m2354-root-rsa-3072.pem` and `nuvoton_m2354-root-rsa-3072_1.pem`
for Secure image and Non-Secure image separately.

DO NOT use them in production code, they are exclusively for testing!

Private key must be stored in a safe place outside of the repository.
Private keys must be stored in a safe place outside of the repository.

`tools/psa/tfm/bin_utils/imgtool.py` can be used to generate new key pairs.
[Image tool](https://github.com/mcu-tools/mcuboot/blob/main/docs/imgtool.md)
can be used to generate new key pairs.
Loading