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

Add support for three pairs of image slots #59724

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

de-nordic
Copy link
Collaborator

@de-nordic de-nordic commented Jun 23, 2023

[DNM] [DNM] Currently the mcu-tools/mcuboot and Zephyr fork are out of sync because there is something circularly
broken... the west manifest here brings the mcu-tools/mcuboot commit with changes taken from Zephyr fork, for this thing to just compile and work, but until both things are fixed merging of this PR will not be possible.

Support for three pairs of image slots.
This PR mainly contains configuration of slots as the main job, that did the change possible, is done via PR #61342.

Set to DNM due to dependency on other PR in review.

Update 2023-08-17 16:01 UTC
Fixed compliance issues
Update 2023-08-18 17:55 UTC
Update of base PR.
Update 2023-08-24 10:30 UTC
Update from base and main.
Update 2023-09-08 16:05 UTC
Rebase from main.

@zephyrbot zephyrbot added manifest manifest-mcuboot DNM This PR should not be merged (Do Not Merge) labels Jun 23, 2023
@zephyrbot
Copy link
Collaborator

zephyrbot commented Jun 23, 2023

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
mcuboot mcu-tools/mcuboot@010019e mcu-tools/mcuboot#1784 mcu-tools/mcuboot#1784/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@de-nordic de-nordic force-pushed the three-images branch 4 times, most recently from dd74649 to 830d934 Compare August 11, 2023 15:10
@de-nordic de-nordic marked this pull request as ready for review August 11, 2023 15:44
@de-nordic de-nordic removed the request for review from nashif August 11, 2023 15:44
@zephyrbot zephyrbot added Release Notes To be mentioned in the release notes area: DFU Device Firmware Upgrade area: mcumgr labels Aug 11, 2023
nordicjm
nordicjm previously approved these changes Aug 14, 2023
#elif (CONFIG_MCUMGR_GRP_IMG_UPDATABLE_IMAGE_NUMBER > 1)
/* For more than one application image slot2 and slot3 are required. */
#define ADD_SLOT_2_CONDITION 1
#define ADD_SLOT_3_CONDITION 1
#if CONFIG_MCUMGR_GRP_IMG_UPDATABLE_IMAGE_NUMBER == 3
#define ADD_SLOT_4_CONDITION 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

A long term future goal should be to remove all of this and have "metadata" specified somehow, a main application might have 2 slots in the primary image, or actually might only have 1 slot, but might then have mismatched slots in other images, maybe 1 slot for an image for another device or core, maybe 2 slots for something else, but we need some way to have the freedom and flexibility to have odd or equal number of slots per image.
And to have it generated so we don't need to update this file each time a new slot/image is added

@zephyrbot zephyrbot added the DNM This PR should not be merged (Do Not Merge) label Aug 24, 2023
@carlescufi carlescufi removed the DNM This PR should not be merged (Do Not Merge) label Sep 8, 2023
nordicjm
nordicjm previously approved these changes Sep 11, 2023
The commit adds support for uploading images to secondary slots
of three images.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
de-nordic added a commit to de-nordic/sdk-zephyr that referenced this pull request Sep 14, 2023
…guration

The commit adds support for uploading images to secondary slots
of three images.

Upstream PR: zephyrproject-rtos/zephyr#59724

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
nordicjm pushed a commit to nordicjm/sdk-zephyr that referenced this pull request Sep 15, 2023
…guration

The commit adds support for uploading images to secondary slots
of three images.

Upstream PR: zephyrproject-rtos/zephyr#59724

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
de-nordic added a commit to de-nordic/sdk-zephyr that referenced this pull request Sep 21, 2023
…guration

The commit adds support for uploading images to secondary slots
of three images.

Upstream PR: zephyrproject-rtos/zephyr#59724

(cherry picked from commit a717dd20f3f54bf59d806974714e079f7fdb80bc)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
carlescufi pushed a commit to nrfconnect/sdk-zephyr that referenced this pull request Sep 22, 2023
…guration

The commit adds support for uploading images to secondary slots
of three images.

Upstream PR: zephyrproject-rtos/zephyr#59724

(cherry picked from commit a717dd20f3f54bf59d806974714e079f7fdb80bc)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
@carlescufi carlescufi merged commit ea6129c into zephyrproject-rtos:main Sep 22, 2023
17 checks passed
@de-nordic de-nordic deleted the three-images branch March 1, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DFU Device Firmware Upgrade area: mcumgr manifest manifest-mcuboot Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants