Authored by Harald Seiler

tbot testcases for flashing U-Boot

Add a 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).

Edited 2.67 KB
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment