Skip to content

Logical sectors #2352

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

de-nordic
Copy link
Collaborator

No description provided.

@de-nordic de-nordic force-pushed the this-is-not-your-sector branch 3 times, most recently from 66d8f3f to 8730406 Compare June 24, 2025 14:12
The commit adds support for logical/software sectors. User can
select size of sector by which image will be moved using
configuration identifier MCUBOOT_LOGICAL_SECTOR_SIZE.
Non-0 value set to MCUBOOT_LOGICAL_SECTOR_SIZE will be used
as sector size for image swap algorithms. Note that the value provided
here should be aligned to hardware erase page of device(s) used
and may not be smaller than of such a device.
There is also additional option provided, MCUBOOT_LOGICAL_SECTOR_VALIDATE,
that allows to enable validation of selected logical sector against
true layout of a device.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Add Kconfigs:
 - CONFIG_MCUBOOT_LOGICAL_SECTOR_SIZE
 - CONFIG_MCUBOOT_LOGICAL_SECTOR_VALIDATE

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
@de-nordic de-nordic force-pushed the this-is-not-your-sector branch from 8730406 to 4ad260c Compare June 24, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant