From: Pali Rohár Date: Tue, 25 Jan 2022 17:13:00 +0000 (+0100) Subject: tools: kwboot: Increase blk_rsp_timeo to 2s X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=ef95143df4caaf8c144f33ad685d1c51f530f06b;p=u-boot.git tools: kwboot: Increase blk_rsp_timeo to 2s Fix xmodem retry mechanism if some bytes from xmodem packet were lost and BootROM is still waiting for completing previous xmodem packet. It is required to wait at least 1.312s on A385, otherwise BootROM does not accept next xmodem packet if previous one was not completely transferred. 2s should be enough timeout cause that BootROM will drop incomplete xmodem packet and expects new packet. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- diff --git a/tools/kwboot.c b/tools/kwboot.c index c3d8ab6544..82cfd9a827 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -75,7 +75,7 @@ struct kwboot_block { uint8_t csum; } __packed; -#define KWBOOT_BLK_RSP_TIMEO 1000 /* ms */ +#define KWBOOT_BLK_RSP_TIMEO 2000 /* ms */ #define KWBOOT_HDR_RSP_TIMEO 10000 /* ms */ /* ARM code to change baudrate */