Procedure or API to switch boot chains on Orin NX?

Hi…we are trying to respond to a detected authentication error in BOOTAA64.efi. In our testing, when BDS attempts to boot a corrupted/faulted BOOTAA64.efi, EfiBootManagerBoot() returns and the load option status is EFI_ACCESS_DENIED. Even though this is a dead end, we would like to still stay within the Nvidia “retry it 3 times” philosophy and have the switchover to the other chain be handled by Nvidia logic if at all possible. Is there a procedure or API that facilitates this?

Right now, once the fault is detected, we simply:

  1. Set BootChainFwNext to the opposite firmware chain
  2. Delete/clear BootChainFwStatus.
  3. Call ResetSystem(EfiResetCold, ...).

which works but now we are operating independently of the Nvidia switchover logic and we aren’t retrying the active chain 3 times.

is there a better way to handle this?

Thx!

Alin