super-rsu: call safe_rsu_boot for secure updates
There might be a bug in the fpgasupdate/max10 RoT flow that prevents
subsequent calls to fpgasupdate to succeed without rebooting the card.
This adds a call to safe_rsu_boot after every call to fpgasupdate if it
is determined that the board is secured.
@@ -742,6 +742,9 @@ class pac(object):
LOG.warning('%s exited with code: %s', task.cmd, p.returncode)
self._errors += 1
+ if self.is_secure:
+ self.fpga.safe_rsu_boot(self.boot_page)
+
LOG.debug('task completed in %s', timedelta(
seconds=time.time() - task.start_time))
