From cdd505b6bc60dc06feb4f518ff06fd2daaf1c6d0 Mon Sep 17 00:00:00 2001 From: nearology Date: Mon, 9 Nov 2026 20:56:04 +0330 Subject: [PATCH] =?UTF-8?q?=D8=A7=D8=B5=D9=84=D8=A7=D8=AD=20=D9=88=D8=B1?= =?UTF-8?q?=DA=A9=20=D9=81=D9=84=D9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/serial_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/serial_command.py b/scripts/serial_command.py index 175a379..c7da679 100644 --- a/scripts/serial_command.py +++ b/scripts/serial_command.py @@ -98,7 +98,8 @@ def transfer(cli, firmware, *, dtb=False, kernel=False, rootfs=False, rootfs_siz if rootfs and len(image) > 0x1800000: raise RuntimeError("RootFS exceeds the non-overlapping RAM buffer capacity (0x1800000)") # Invalidate any previous transfer length before attempting a new transfer. - cli.command("setenv filesize") + cli.command("setenv filesize 0") + cli.command("printenv filesize", r"^filesize=0$") output = cli.command( f"tftp {address:#x} {filename}", r"^Bytes transferred = \d+", timeout=120,