mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
tools: kwboot: Show verbose message when waiting for baudrate change magic
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 <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
4bebab69a9
commit
8e2e7ca1fe
@ -1065,7 +1065,7 @@ kwboot_xmodem(int tty, const void *_img, size_t size, int baudrate)
|
|||||||
if (baudrate) {
|
if (baudrate) {
|
||||||
char buf[sizeof(kwb_baud_magic)];
|
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);
|
rc = kwboot_tty_recv(tty, buf, sizeof(buf), 1000);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user