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

bootutil: Fix boot_set_next passing wrong image number #1763

Merged

Conversation

de-nordic
Copy link
Collaborator

@de-nordic de-nordic commented Jul 31, 2023

The commit fixes boot_set_next always passing image 0 to boot_write_swap_info, instead of the proper image number. This has been affecting applications that tried to call boot_set_next in multi-image MCUboot configuration using scratch-swap algorithm.

Fixes #1762

Currently blocked by: #1761 as it can not be properly tested.

Update 2023-08-02 11:31 UTC
Tested with swap-scratch algorithm and works ok.

@de-nordic de-nordic added the [DNM] Do Not Merge label Jul 31, 2023
@de-nordic de-nordic force-pushed the fix-for-boot-set-next-issue-1762 branch from b4c87a6 to d78620e Compare August 1, 2023 16:18
The commit fixes boot_set_next always passing image 0 to
boot_write_swap_info, instead of the proper image number.
This has been affecting applications that tried to call boot_set_next
in multi-image MCUboot configuration using scratch-swap algorithm.

Fixes mcu-tools#1762

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
@de-nordic de-nordic force-pushed the fix-for-boot-set-next-issue-1762 branch from d78620e to 429a4d5 Compare August 2, 2023 11:30
@de-nordic de-nordic removed the [DNM] Do Not Merge label Aug 2, 2023
@nordicjm nordicjm added bug area: core Affects core functionality labels Aug 2, 2023
@nvlsianpu nvlsianpu merged commit f17b005 into mcu-tools:main Aug 4, 2023
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Affects core functionality bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bootutil: boot_set_next always uses image 0
3 participants