This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 24d45f1b7b289a2d8b7f2803ea977070d549689c Author: wangjianyu3 <[email protected]> AuthorDate: Mon Nov 9 23:13:28 2026 +0800 fastboot: raise the default download buffer to 64 KiB The download buffer is split in half to overlap flash writes with downloads, so max-download-size is half of SYSTEM_FASTBOOTD_DOWNLOAD_MAX. With the default of 40960 that is 20480, and older host fastboot (libsparse 1:10.0.0+r36) fails to split an ordinary image for a max-download-size below roughly 28 KiB, reporting "Sparse file is too large or invalid". Raise the default to 65536 so max-download-size is 32768. Assisted-by: OpenCode:claude-sonnet-5 Signed-off-by: wangjianyu3 <[email protected]> --- system/fastboot/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/fastboot/Kconfig b/system/fastboot/Kconfig index ff4bc1caa..0a13456d5 100644 --- a/system/fastboot/Kconfig +++ b/system/fastboot/Kconfig @@ -28,7 +28,7 @@ config SYSTEM_FASTBOOTD_STACKSIZE config SYSTEM_FASTBOOTD_DOWNLOAD_MAX int "fastboot download buffer size" - default 40960 + default 65536 config SYSTEM_FASTBOOTD_DOWNLOAD_ADDR hex "fixed download buffer address (0 = malloc)"
