-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
sysbuild: Add support for sysbuild-assigned MCUboot image IDs #17567
Changes from all commits
495ec29
283dc48
4687255
64dfdca
f579bae
ade6f3b
96e581d
cb8b903
cbae84c
acaaf83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&uart0 { | ||
status = "okay"; | ||
current-speed = < 1000000 >; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&uart0 { | ||
status = "okay"; | ||
current-speed = < 1000000 >; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,8 @@ config PM_PARTITION_SIZE_MCUBOOT | |
|
||
config PM_PARTITION_SIZE_MCUBOOT | ||
hex "Flash space allocated for the MCUboot partition" if !BOOT_USE_MIN_PARTITION_SIZE | ||
default 0xb800 if MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1 && SOC_SERIES_NRF54LX | ||
default 0xbe00 if MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1 && !SOC_SERIES_NRF54LX | ||
default 0xc000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is the default for child/parent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
help | ||
Flash space set aside for the MCUboot partition. | ||
|
@@ -103,7 +105,10 @@ config BOOT_ERASE_PROGRESSIVELY | |
|
||
config BOOT_IMAGE_ACCESS_HOOKS | ||
bool | ||
default y if UPDATEABLE_IMAGE_NUMBER > 1 && SOC_NRF5340_CPUAPP && PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY | ||
# Child/parent check | ||
default y if UPDATEABLE_IMAGE_NUMBER > 1 && SOC_NRF5340_CPUAPP && PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY && MCUBOOT_APPLICATION_IMAGE_NUMBER = -1 | ||
# Sysbuild check | ||
default y if MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1 | ||
depends on MCUBOOT | ||
|
||
config BOOT_IMAGE_ACCESS_HOOK_NRF5340 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&uart0 { | ||
status = "okay"; | ||
current-speed = < 1000000 >; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&uart0 { | ||
status = "okay"; | ||
current-speed = < 1000000 >; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
&uart0 { | ||
status = "okay"; | ||
current-speed = < 1000000 >; | ||
}; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add help with something like (informative only, populated by the build-system) to each entry There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why duplicate what is already there? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, in prompt.
tomi-font marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
menu "MCUboot IDs (informative only, do not change)" | ||
|
||
config MCUBOOT_APPLICATION_IMAGE_NUMBER | ||
int "Application image number (informative only, do not change)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know sysbuild defined setting values will always take precedence over image defined values. But is there no way we can avoid prompt settings purely for the purpose of sharing this info ? side-note, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For sysbuild they will be forced, the warning however is for child/parent because they can freely be changed with it (which could break things). I think you submitted 2 different PRs to allow options to be set without a prompt from sysbuild -> images upstream but don't think either ever got finished |
||
default -1 | ||
|
||
config MCUBOOT_NETWORK_CORE_IMAGE_NUMBER | ||
int "Netcore core image number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_WIFI_PATCHES_IMAGE_NUMBER | ||
int "WiFi patches image number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_QSPI_XIP_IMAGE_NUMBER | ||
int "QSPI XIP image number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_MCUBOOT_IMAGE_NUMBER | ||
int "MCUboot (S0/S1) image number (informative only, do not change)" | ||
default -1 | ||
|
||
if MCUBOOT | ||
|
||
config MCUBOOT_MCUBOOT_S0_S1_VERSION_MAJOR | ||
int "MCUboot (S0/S1) package major version number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_MCUBOOT_S0_S1_VERSION_MINOR | ||
int "MCUboot (S0/S1) package minor version number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_MCUBOOT_S0_S1_VERSION_REVISION | ||
int "MCUboot (S0/S1) package revision version number (informative only, do not change)" | ||
default -1 | ||
|
||
config MCUBOOT_MCUBOOT_S0_S1_VERSION_BUILD_NUMBER | ||
int "MCUboot (S0/S1) package build number version number (informative only, do not change)" | ||
default -1 | ||
|
||
endif # MCUBOOT | ||
|
||
endmenu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for not having this in https://github.com/nrfconnect/sdk-nrf/blob/main/applications/serial_lte_modem/boards/thingy91x_nrf9151_ns.overlay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxd-nordic