Add EOL support for iMX8#51
Open
actia-martin-larsson wants to merge 7 commits intojonasblixt:masterfrom
Open
Conversation
On some platforms, such as imx8x, an authenticated message is necessary to advance the life cycle to EOL. Prepare the EOL SLC API's to receive such a message. For imx8x, knowing the length of the message is not strictly necessary as it will just relay this message to the SCU and eventually the SECO. For future purposes, a length argument might be necessary. Therefore, add it right away.
The SECO is able to provide additional events which may contain things such as extended error codes to previous RPC calls. It's quite rough on the edges as the documentation states that it has a fixed number of events it can store and once the maximum number of events have been reached, it will no longer store any more events. The event codes are still useful in some cases for debugging purposes. Add support for reading the last recorded event.
Some RPC calls, such as return_lifecycle takes an address as argument. These addresses must be readable from the SCU's point of view. Add a mapping to "Secure RAM" to be able to send authenticated messages to the SCU.
Add support for advancing to EOL/Return Lifecycle
Some platforms require a authentication message in order to advance to EOL lifecycle. Add an optional argument to support this.
If the SECO is unable to provide the current life cycle, take the safe route and panic as the result is used to determine whether or not authentication is needed for command mode.
for more information, see https://pre-commit.ci
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.
No description provided.