Skip to content

Commit

Permalink
Merge pull request #116 from sdgtt/dev
Browse files Browse the repository at this point in the history
manager: Update boot files using network/uart when sd card mux fails
  • Loading branch information
kimpaller authored Jun 3, 2024
2 parents fe553ff + 0a1235a commit 2754d5b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions nebula/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,17 +862,23 @@ def board_reboot_auto(
sdcard=sdcard,
)
else:
if self.usbsdmux:
self.board_reboot_sdmux_pdu(
system_top_bit_path=system_top_bit_path,
bootbinpath=bootbinpath,
uimagepath=uimagepath,
devtreepath=devtreepath,
extlinux_path=extlinux_path,
scr_path=scr_path,
preloader_path=preloader_path,
)
else:
try:
if self.usbsdmux:
log.info("Updating bootfiles using SD Card Mux")
self.board_reboot_sdmux_pdu(
system_top_bit_path=system_top_bit_path,
bootbinpath=bootbinpath,
uimagepath=uimagepath,
devtreepath=devtreepath,
extlinux_path=extlinux_path,
scr_path=scr_path,
preloader_path=preloader_path,
)
else:
raise Exception("SD Card Mux not Supported")
except Exception as ex:
log.info(ex)
log.info("Updating bootfiles via Network/UART/PDU")
self.board_reboot_uart_net_pdu(
system_top_bit_path=system_top_bit_path,
bootbinpath=bootbinpath,
Expand Down

0 comments on commit 2754d5b

Please sign in to comment.