Skip to content

Commit

Permalink
utils/fwutils.py: Add fixboard setup to fw reflash
Browse files Browse the repository at this point in the history
  • Loading branch information
SamD2021 committed Dec 4, 2024
1 parent 4b9fc23 commit 4cd5e98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion utils/fwutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def __init__(
"clean_up_imc",
"flash_ssd_image",
"flash_spi_image",
"apply_fixboard",
]
self.steps_to_run = steps_to_run
self.steps_to_run = steps_to_run if not dry_run else []
if self.dry_run:
self.logger.info(
"DRY RUN, This is just a preview of the actions that will be taken"
Expand Down Expand Up @@ -138,6 +139,15 @@ def reflash_ipu(self) -> None:
else:
self.logger.info("Skipping flash_spi_image")

self.logger.info("Step 5: apply_fixboard")
if self.should_run("apply_fixboard"):
should_fixboard = self.fixboard_is_needed()
assert should_fixboard is not None
if should_fixboard:
self.logger.info("Applying fixboard!")
self.apply_fixboard()
else:
self.logger.info("Skipping applying_fixboard")
# Step 5: Reboot IMC
self.logger.info("Done!")
self.logger.info(f"Please cold reboot IMC at {self.imc_address}")
Expand Down

0 comments on commit 4cd5e98

Please sign in to comment.