Skip to content

Update mcuboot configuration for nrf7120 - #702

Open
erdemsimsek wants to merge 2 commits into
nrfconnect:mainfrom
erdemsimsek:update-mcuboot-configuration-for-nrf7120
Open

Update mcuboot configuration for nrf7120#702
erdemsimsek wants to merge 2 commits into
nrfconnect:mainfrom
erdemsimsek:update-mcuboot-configuration-for-nrf7120

Conversation

@erdemsimsek

Copy link
Copy Markdown
Contributor

No description provided.

@erdemsimsek
erdemsimsek requested a review from a team as a code owner July 1, 2026 19:45
@erdemsimsek
erdemsimsek force-pushed the update-mcuboot-configuration-for-nrf7120 branch from a742340 to 2d6490a Compare July 1, 2026 20:00
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jul 1, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-mcuboot#702

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
nRF7120 builds without Partition Manager, where
BOOT_MAX_IMG_SECTORS_AUTO is enabled by default and derives the sector
count from the DTS slot size and the MRAM erase-block.

Enable link-time optimization (CONFIG_LTO and
CONFIG_ISR_TABLES_LOCAL_DECLARATION) to reduce the MCUboot footprint.

Enable FPROTECT.

Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
Generalize the self-RWX lock for nRF71 and nRF54 series devices.

Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
@erdemsimsek
erdemsimsek force-pushed the update-mcuboot-configuration-for-nrf7120 branch from 2d6490a to 6ddcf08 Compare July 1, 2026 20:04
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jul 1, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-mcuboot#702

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
@de-nordic
de-nordic requested a review from michalek-no July 4, 2026 20:10
@nvlsianpu
nvlsianpu self-requested a review July 23, 2026 07:12
@nvlsianpu

Copy link
Copy Markdown
Collaborator

@michalek-no Can you check whether rework of the self RWX cut-off implementation gives proper eqivalent?

Comment thread boot/zephyr/main.c
* lives in RAM (__ramfunc), so the now non-readable/executable MCUboot
* slot is never fetched or read again.
*/
disable_self_rwx();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new procedure should works - it now uses stack, although it is moved before stack reconfiguration.
Original procedure was sackless - so it was not the case.

Comment thread boot/zephyr/main.c
* region may already be locked.
*/
if ((cfg & NVM_CONFIG_SIZE_Msk) == 0) {
cfg &= ~NVM_CONFIG_SIZE_Msk;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clearing if it's clear?

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.

3 participants