lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.53k stars 754 forks source link

[rom_ext] Try to boot other slot if primary is un-bootable #23876

Open jettr opened 3 months ago

jettr commented 3 months ago

Description

The ROM_EXT should try to boot into the other slot if the primary slot is not bootable.

I was just testing out the firmware update path where I corrupted the signed header of the primary slot while booted into the "next" slot to prevent a unintentional rollback if GSC is reset before the boot service message can take affect.

When I do that I get the following error message on infinite loop:

Starting ROM_EXT 0.3
MCAUSE=00000005 MEPC=200058be MTVAL=20090334
BFV:05524902
LCV:2318c631
VER:09976493
jettr commented 3 months ago

We think that #23378 will fix this and it has already landed on main