soc: renesas: ra: don't emit option settings when chain-loaded by MCUboot - #114429
Merged
fabiobaltieri merged 1 commit intoJul 28, 2026
Merged
Conversation
…boot Emit the option settings sections only when the image is a standalone app or MCUboot. Don't emit the option settings when the image is an app being chain-loaded by MCUboot. This avoids populating addresses outside of the code-partition area in the app image. Signed-off-by: Jeremy Dick <jdick@pivotint.com>
zephyrbot
requested review from
KhiemNguyenT,
duynguyenxa,
kartben,
khoa-nguyen-18,
nordicjm,
soburi,
sylvioalves,
thaoluonguw and
thenguyenyf
July 23, 2026 20:39
|
duynguyenxa
approved these changes
Jul 24, 2026
soburi
approved these changes
Jul 24, 2026
Contributor
|
LGTM. If we manage to merge mcu-tools/mcuboot#2797 while the zephyr flash driver gets updated in #109125 , you can also make mcuboot work by using the manual defines for the sectors: It Is a workaround, but It worked in my case. I think this one Is needed in any case: |
nordicjm
removed their request for review
July 27, 2026 08:15
fabiobaltieri
merged commit Jul 28, 2026
fbd79da
into
zephyrproject-rtos:main
24 of 26 checks passed
| #include <zephyr/devicetree.h> | ||
|
|
||
| /* Emit option setting sections only when standalone app OR MCUboot itself */ | ||
| #if !defined(CONFIG_BOOTLOADER_MCUBOOT) || defined(CONFIG_MCUBOOT) |
Member
There was a problem hiding this comment.
no endif, causing ci problems in main
| #include <zephyr/devicetree.h> | ||
|
|
||
| /* Emit option setting sections only when standalone app OR MCUboot itself */ | ||
| #if !defined(CONFIG_BOOTLOADER_MCUBOOT) || defined(CONFIG_MCUBOOT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Emit the option settings sections only when the image is a standalone app or MCUboot. Don't emit the option settings when the image is an app being chain-loaded by MCUboot.
This avoids populating addresses outside of the code-partition area in the app image, allowing app images to be signed correctly.
Enabling MCUboot for renesas ra-series is also dependent on:
#109125
mcu-tools/mcuboot#2797