On Wed, 30 Apr 2025 10:23:25 +0800, Aristo Chen wrote: > Currently, when decompressing a gzip-compressed image during bootm, a > generic error such as "inflate() returned -5" is shown when the buffer is > too small. However, it is not immediately clear that this is caused by > CONFIG_SYS_BOOTM_LEN being too small. > > This patch improves error handling by: > - Detecting Z_BUF_ERROR (-5) returned from the inflate() call > - Suggesting the user to increase CONFIG_SYS_BOOTM_LEN when applicable > - Preserving the original return code from zunzip() instead of overwriting > it with -1 > > [...]
Applied to u-boot/master, thanks! [1/1] bootm: improve error message when gzip decompression buffer is too small commit: f717d798becf2dffd5816484962c350808e98a18 -- Tom