[PATCH u-boot-marvell 08/13] tools: kwboot: Show verbose message when waiting for baudrate change magic

Stefan Roese sr at denx.de
Tue Oct 26 07:45:31 CEST 2021


On 25.10.21 15:12, Marek Behún wrote:
> From: Pali Rohár <pali at kernel.org>
> 
> 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 at kernel.org>
> Reviewed-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   tools/kwboot.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/kwboot.c b/tools/kwboot.c
> index 6228838228..7fd28aa754 100644
> --- a/tools/kwboot.c
> +++ b/tools/kwboot.c
> @@ -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;
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list