-
Notifications
You must be signed in to change notification settings - Fork 8.2k
sysbuild: Default to swap using offset for MCUboot #93310
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
Conversation
This swapping method is more efficient than swap using move and has been available for some time, remove experimental flag and set it as the default except for stm32 devices which have partition alignment for swap using move Signed-off-by: Jamie McCrae <[email protected]>
|
| config MCUBOOT_MODE_SWAP_USING_OFFSET | ||
| bool "Swap using offset" | ||
| select EXPERIMENTAL | ||
| help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Funnily this description isn't really helpful IMO. I would have expected to learn about the difference between USING_MOVE vs USING_OFFSET from the help texts. But they appear to be identical.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is in MCUboot: https://github.com/mcu-tools/mcuboot/blob/main/boot/zephyr/Kconfig#L481
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but it wouldn't hurt refer to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor non-blocking comment, and also think this would be nice:
#93310 (comment)
| # Should be removed if board dts is updated | ||
| default MCUBOOT_MODE_SWAP_USING_MOVE if SOC_FAMILY_STM32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice if comment contains a bit more info, for example.
# default MCUBOOT_MODE_SWAP_USING_MOVE should be removed if STM32 board dts is updated
especially because sometimes when code gets updated then developers forget to remove the comment, making other people puzzled on the meaning of the comment.
btw. you mention board dts, but checks againts STM32 SoC.
Is this in the board dts for all STM32, or in a soc dts ?
Sorry @tejlmand - I only saw this after merging. I should have given @nordicjm a bit of time to address your comment. |
|
Introduced regression in tests:
|
|
@nordicjm this major change should be detailed in the migration guide. |



This swapping method is more efficient than swap using move and has been available for some time, remove experimental flag and set it as the default except for stm32 devices which have partition alignment for swap using move
FYI @erwango