boot: bootutil: introduce boot_load_image_to_sram hook - #2741
Open
danieldegrasse wants to merge 1 commit into
Open
boot: bootutil: introduce boot_load_image_to_sram hook#2741danieldegrasse wants to merge 1 commit into
danieldegrasse wants to merge 1 commit into
Conversation
This hook allows to define a custom way of handling loading an image to SRAM. This can be useful if a system needs to override image loading routines (for example, if a security enclave needs to perform loading and validation) Signed-off-by: Andrei Narkevitch <andrei.narkevitch@analog.com> Signed-off-by: Daniel DeGrasse <daniel.degrasse@analog.com>
danieldegrasse
requested review from
davidvincze,
de-nordic and
nordicjm
as code owners
May 21, 2026 20:13
nordicjm
reviewed
May 22, 2026
Comment on lines
+240
to
+241
| int boot_load_image_to_sram_hook(int image_index, int slot, | ||
| uint32_t *img_dst, uint32_t *img_sz); |
Collaborator
There was a problem hiding this comment.
this doesn't make sense vs what boot_load_image_to_sram has?
Contributor
Author
There was a problem hiding this comment.
Sorry, not 100% clear here. The intention of this call is that we can hook the SRAM load process to replace the decryption and memory copy routines, for cases where we have custom hardware that handles those routines. Are you saying that the documentation here isn't clear, or that the hook should behave differently?
Collaborator
There was a problem hiding this comment.
This should have the same function arguments that the normal function has to allow it to do a variety of different things. Also not sure how this would work loading since you have no information from the image?
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.
This hook allows to define a custom way of handling loading an image to SRAM. This can be useful if a system needs to override image loading routines (for example, if a security enclave needs to perform loading and validation)