tbot testcases for flashing U-Boot
flash() method to your board-config like this:
class MyBoardUBoot(board.Connector, board.UBootShell): def flash(self, repo: git.GitRepository): # Implementation of flashing the U-Boot binaries # from repo onto this (running) U-Boot instance.
Then you can build & flash using
tbot uboot_build_and_flash -fsafe (
-fsafe means that in case of a failed flashing attempt, tbot won't immediately power off the board, but instead give you interactive access to the U-Boot command-line to fix the situation).