Skip to content

Add EOL support for iMX8#51

Open
actia-martin-larsson wants to merge 7 commits intojonasblixt:masterfrom
actia-martin-larsson:add-eol-support-imx8x
Open

Add EOL support for iMX8#51
actia-martin-larsson wants to merge 7 commits intojonasblixt:masterfrom
actia-martin-larsson:add-eol-support-imx8x

Conversation

@actia-martin-larsson
Copy link

No description provided.

actia-martin-larsson and others added 7 commits December 3, 2025 15:41
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.
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.

1 participant