flash_partitions: a flash_map alternative #71158
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working with partitions on a flash device has been done using the flash_map subsystem. The flash_map subsystem has been limiting (e.g. #52395) and does not support support for flash devices that do not need an erase (non flash devices that are supported as if they are flash).
The PR proposes an alternative for flash_map that supports classic flash devices, "no-erase" flash devices. Partitions can be read-only, and it is possible to provide an "override" erase-block-size.
The support for "no-erase" flash devices is achieved by the definition of a "zephyr,flash-no-erase" compatible that is added to the flash device.
The PR is a simplified version of #70979 and only targeting flash devices.
Signed-off-by: Laczen JMS laczenjms@gmail.com