Thor Bootloader update failure

From the jetson linux developer guide:
If there is a bootloader update failure, the following process is followed to fail over to the second slot:

In the case where the second slot is activated (the following branch of the flowchart):

image
Which slot is marked as invalid? From my understanding, following this branch the current slot is already marked as invalid, and the other slot is valid - otherwise “Load next stage from active slot and boot” is not a valid operation. Some clarification would be much appreciated here.

Hi @andrei49,

In that branch, after the flow switches to the other slot, the later “Mark slot as invalid” step applies to the newly selected active/current slot.

For example, if slot A was the current slot and is already invalid, the boot flow checks slot B. If slot B is not invalid, the flow switches to slot B. At that point, slot B becomes the active/current boot attempt, so it is marked invalid temporarily before loading the next stage from slot B. Once control reaches cpu-bootloader, that same slot is marked valid again in the Scratch Register.

So the earlier failed slot remains invalid, and the newly selected slot is marked invalid only during the boot attempt until cpu-bootloader confirms that the flow reached that stage.

Hope this helps!

I understand now, that cleared it up, thank you.