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

suit: in-place updateable components #19760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SylwesterKonczyk
Copy link
Contributor

Extension of SUIT in-place updateable component module. Support for an access to IPUC from IPC client added.

Ref: NCSDK-30808

@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jan 7, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Jan 7, 2025

CI Information

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

Inputs:

Sources:

sdk-nrf: PR head: 616e493e7718bb70e2d6806d2ab604b36a3bf82f

more details

sdk-nrf:

PR head: 616e493e7718bb70e2d6806d2ab604b36a3bf82f
merge base: f26a3904094961c09ad0901f681eb6644c7e3948
target head (main): 48253248ecc493e0c3fed104f8ff090d5a55964d
Diff

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 (40)
subsys
│  ├── sdfw_services
│  │  ├── services
│  │  │  ├── suit_service
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── suit_ipuc.c
│  │  │  │  ├── suit_service.cddl
│  │  │  │  ├── zcbor_generated
│  │  │  │  │  ├── suit_service_decode.c
│  │  │  │  │  ├── suit_service_decode.h
│  │  │  │  │  ├── suit_service_encode.c
│  │  │  │  │  ├── suit_service_encode.h
│  │  │  │  │  │ suit_service_types.h
│  ├── suit
│  │  ├── CMakeLists.txt
│  │  ├── Kconfig
│  │  ├── ipuc
│  │  │  ├── CMakeLists.txt
│  │  │  ├── Kconfig
│  │  │  ├── include
│  │  │  │  ├── suit_ipuc.h
│  │  │  │  │ suit_ipuc_sdfw.h
│  │  │  ├── src
│  │  │  │  │ suit_ipuc_sdfw.c
│  │  ├── platform
│  │  │  ├── CMakeLists.txt
│  │  │  ├── include
│  │  │  │  │ suit_plat_ipuc.h
│  │  │  ├── sdfw
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── Kconfig
│  │  │  │  ├── src
│  │  │  │  │  ├── suit_plat_copy_sdfw_specific.c
│  │  │  │  │  ├── suit_plat_ipuc.c
│  │  │  │  │  │ suit_plat_write_sdfw_specific.c
│  │  │  ├── src
│  │  │  │  ├── suit_plat_components.c
│  │  │  │  │ suit_plat_fetch.c
tests
│  ├── subsys
│  │  ├── suit
│  │  │  ├── copy
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── prj.conf
│  │  │  │  ├── src
│  │  │  │  │  │ main.c
│  │  │  ├── fetch
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── src
│  │  │  │  │  │ main.c
│  │  │  ├── ipuc
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── prj.conf
│  │  │  │  ├── src
│  │  │  │  │  │ main.c
│  │  │  ├── unit
│  │  │  │  ├── mocks
│  │  │  │  │  ├── CMakeLists.txt
│  │  │  │  │  ├── include
│  │  │  │  │  │  ├── mock_suit_ipuc_sdfw.h
│  │  │  │  │  │  ├── mock_suit_plat_ipuc.h
│  │  │  │  │  │  │ mocks.h
│  │  │  │  ├── suit_plat_override_image_size
│  │  │  │  │  ├── CMakeLists.txt
│  │  │  │  │  ├── src
│  │  │  │  │  │  │ main.c
│  │  │  ├── write
│  │  │  │  ├── CMakeLists.txt
│  │  │  │  ├── src
│  │  │  │  │  │ main.c

Outputs:

Toolchain

Version: 11349092be
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:11349092be_912848a074

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

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 145
  • 🟠 Integration tests
    • 🟠 test-sdk-dfu
    • ⚠️ test-sdk-dfu
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_nrf_provisioning
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

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

@SylwesterKonczyk SylwesterKonczyk force-pushed the ipuc branch 10 times, most recently from 6bfc33c to dc2b027 Compare January 9, 2025 13:19
@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 Publish GitHub Action.

@SylwesterKonczyk SylwesterKonczyk force-pushed the ipuc branch 2 times, most recently from f47894d to 3ffeeca Compare January 9, 2025 15:10
@SylwesterKonczyk SylwesterKonczyk marked this pull request as ready for review January 10, 2025 04:31
@SylwesterKonczyk SylwesterKonczyk requested review from a team as code owners January 10, 2025 04:31
Copy link
Contributor

@adsz-nordic adsz-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor findings

subsys/suit/ipuc/Kconfig Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Show resolved Hide resolved
subsys/suit/ipuc/Kconfig Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
Copy link
Contributor

@ahasztag ahasztag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a couple of places related to memory reading and writing, it seems that very "advanced" tools are used, while much simpler ones are necessary.

subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Outdated Show resolved Hide resolved
subsys/suit/ipuc/src/suit_ipuc_sdfw.c Show resolved Hide resolved
subsys/suit/ipuc/Kconfig Show resolved Hide resolved
*role = rsp_data->SSF_SUIT_RSP_ARG(get_ipuc_info, role);
ssf_client_decode_done(rsp_pkt);

#if (defined CONFIG_SUIT_LOG_LEVEL_INF || defined CONFIG_SUIT_LOG_LEVEL_DBG)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#if (defined CONFIG_SUIT_LOG_LEVEL_INF || defined CONFIG_SUIT_LOG_LEVEL_DBG)
#if defined(CONFIG_SUIT_LOG_LEVEL_INF) || defined(CONFIG_SUIT_LOG_LEVEL_DBG)

Apply bracket changes throughout whole PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -93,7 +93,8 @@ endif()

if (CONFIG_MOCK_SUIT_IPUC)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be a space here (fix in a later cleanup PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when time comes

Extension of SUIT in-place updateable component module.
Support for an access to IPUC from IPC client added.

Ref: NCSDK-30808

Signed-off-by: Sylwester Konczyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants