Skip to content

Conversation

@pamaury
Copy link
Contributor

@pamaury pamaury commented Jan 29, 2026

Backport #26997. Depends on #29204, only review last 3 commits.

Allow `spi_device_cmd_get` to operate in a non-blocking fashion.  This
allows the rescue protocol to time out after a period of inactivity.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 6564a9b)
Add a `skip_once` parameter to rescue entry.  This allows the ROM_EXT to
send a message to itself to skip rescue detection (and entry) once on
the next boot.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 8e820ba)
Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 2933902)
1. Enter rescue on boot failure.
2. Exit rescue after a peroid of inactivty.  The inactivty timeout is
   cancelled if there is any rescue activity at all.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit ceedca4)
Parameterize builds of the `test_owner` module and associated ROM_EXTs
to avoid copy/pasting of the `cc_library` and `opentitan_binary` rules.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 59e6e66)
Add tests for the rescue enter-on-fail and inactivity timeout features.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit b3e481f)
1. Add a `no-op` mode to rescue so that the xmodem protocol is
   functional if the owner disables the `RescueFirwmare` command.
2. Make the `no-op` mode the default if `RescueFirmware` is absent
   from the allowed commands list.

Fixes lowRISC#26919.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit a147e46)
The `--reboot` flag on `rescue` commands needs to parse its arguments.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 6af8f88)
@pamaury pamaury requested review from a team and cfrantz as code owners January 29, 2026 10:25
@pamaury pamaury requested review from engdoreis and jwnrt and removed request for a team January 29, 2026 10:25
Test that the rescue protocol is functional when the `RescueFirmware`
mode is not in the list of allowed commands.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 23b5b87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants