Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Dec 12, 2025

Backport 26128ab from #100689.

Fixes #100715

The FW loader reports and manages exactly two slots:
 - slot 0: this is the slot for the application code to update
 - slot 1: this is the slot, in which the FW loader is placed

The slot 1 is reported, so tools can fetch metadata about the
FW loader installed on the device.
Unfortunately, currently SMP-based FW loader allows to issue slot erase
command for the slot 1, effectively erasing the FW loader code that is
being executed.

This change correctly identifies the slot 1 as an active one, marking it
as used and blocking erase operation on that slot.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 26128ab)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label Dec 12, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Dec 12, 2025
@nordicjm nordicjm requested a review from de-nordic December 12, 2025 08:02
@jhedberg jhedberg moved this from To do to Ready in Backports Dec 12, 2025
@JarmouniA JarmouniA added this to the v4.3.1 milestone Dec 13, 2025
@JarmouniA JarmouniA closed this Dec 13, 2025
@github-project-automation github-project-automation bot moved this from Ready to Done in Backports Dec 13, 2025
@JarmouniA JarmouniA reopened this Dec 13, 2025
@github-project-automation github-project-automation bot moved this from Done to Needs more info in Backports Dec 13, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcumgr Backport Backport PR and backport failure issues

Projects

Status: Needs more info

Development

Successfully merging this pull request may close these issues.

6 participants