]> Git Repo - J-u-boot.git/commitdiff
tools: kwboot: Show verbose message when waiting for baudrate change magic
authorPali Rohár <[email protected]>
Mon, 25 Oct 2021 13:12:59 +0000 (15:12 +0200)
committerStefan Roese <[email protected]>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
It is hard to debug why kwboot is failing when the last message is
'Finishing transfer' and no additional output. So show verbose message when
kwboot finished transfer and is waiting for baudrate change magic sequence.

Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
tools/kwboot.c

index 62288382289f27b82ade33d22c1f189809a9a721..7fd28aa75478f75252d21270e52f13714a6cc9c1 100644 (file)
@@ -1065,7 +1065,7 @@ kwboot_xmodem(int tty, const void *_img, size_t size, int baudrate)
        if (baudrate) {
                char buf[sizeof(kwb_baud_magic)];
 
-               /* Wait 1s for baudrate change magic */
+               kwboot_printv("Waiting 1s for baudrate change magic\n");
                rc = kwboot_tty_recv(tty, buf, sizeof(buf), 1000);
                if (rc)
                        return rc;
This page took 0.035897 seconds and 4 git commands to generate.