Skip to content

[nrf noup] subsys/fs: move FS partition to the end back #293

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

Closed

Conversation

nvlsianpu
Copy link
Contributor

In case of the DFU capability enabled:
Up to NCS v1.1.0 any storage partition lands at the end of the flash memory.
Since v1.2.0 any storage partition lands right after
the executable application.
So it is impossible to build proper update application out-of-the box.

This patch moves storage partitions at the flash end back.
User needs only to correct the partition size (via Kconfig) to
the same as in previous release for ensure proper upgrade build.

Signed-off-by: Andrzej Puzdrowski andrzej.puzdrowski@nordicsemi.no

@nvlsianpu
Copy link
Contributor Author

btw, mcuboot_storage pm partition doesn't exist anymore

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Apr 15, 2020

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

@nvlsianpu nvlsianpu force-pushed the partittion-backward-com branch from 892b9ff to 151007e Compare April 15, 2020 14:08
@mbolivar-nordic
Copy link
Contributor

How can we avoid similar problems affecting users during the 1.2 -> 1.3 transition?

@hakonfam
Copy link
Contributor

This stuff should have been picked up by our DFU tests, not sure why they were not.

@mbolivar I will make sure that we add backwards compatible tests to ensure that this does not happen again. As for products in field, they will use static configuration, so there is no risk of bricking a configuration so that you are not able to produce valid updates once a device is out.

@mbolivar-nordic
Copy link
Contributor

I will make sure that we add backwards compatible tests to ensure that this does not happen again.

Awesome, thanks!

In case of the DFU capability enabled:
Up to NCS v1.1.0 any storage partition lands at the end of
the flash memory.
Since v1.2.0 any storage partition lands right after
the executable application.
So it is impossible to build proper update application out-of-the box.

This patch moves storage partitions at the flash end back.
User needs only to correct the partition size (via Kconfig) to
the same as in previous release for ensure proper upgrade build.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
@nvlsianpu nvlsianpu force-pushed the partittion-backward-com branch from 151007e to 1e802ec Compare April 16, 2020 10:03
@nvlsianpu
Copy link
Contributor Author

ping @mbolivar @sigvartmh
cc @carlescufi

@nvlsianpu nvlsianpu added the DNM label Apr 22, 2020
@nvlsianpu
Copy link
Contributor Author

DNM until Upmerge #296 will be merged

@nvlsianpu
Copy link
Contributor Author

moved to nrfconnect/sdk-nrf#2382

@nvlsianpu nvlsianpu closed this Jun 2, 2020
Damian-Nordic added a commit to Damian-Nordic/sdk-zephyr that referenced this pull request May 15, 2025
…nect#293

Pull in clang compilation error fix.

Upstream PR #: 89989

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
Damian-Nordic added a commit to Damian-Nordic/sdk-zephyr that referenced this pull request May 15, 2025
…nect#293

Pull in clang compilation error fix.

Upstream PR #: 89989

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
rlubos pushed a commit that referenced this pull request May 15, 2025
Pull in clang compilation error fix.

Upstream PR #: 89989

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 2, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 2, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 2, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 2, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 3, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 3, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 3, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 4, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 5, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 5, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 5, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 6, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 6, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 6, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 11, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 11, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 11, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 11, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 11, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 12, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 12, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 12, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 12, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 12, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 13, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 13, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 13, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 13, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request Jun 16, 2025
…nrfconnect#293"

This reverts commit b1c7699.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants