Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 11:15:58PM +0800, Aristo Chen wrote: > Tom Rini 於 2025年4月29日 週二 下午10:15寫道: > > > > On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > > > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > > > > > C

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Aristo Chen
Tom Rini 於 2025年4月29日 週二 下午10:15寫道: > > On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > > > Currently, when decompressing a gzip-compressed image during bootm, a > > > >

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread Tom Rini
On Tue, Apr 29, 2025 at 06:08:50PM +0800, 陳偉銘 wrote: > Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > > > On Mon, Apr 28, 2025 at 02:07:57PM +0800, Aristo Chen wrote: > > > > > Currently, when decompressing a gzip-compressed image during bootm, a > > > generic error such as "inflate() returned -5" is show

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-29 Thread 陳偉銘
Tom Rini 於 2025年4月29日 週二 上午1:24寫道: > > On Mon, Apr 28, 2025 at 02:07:57PM +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 immediatel

Re: [PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-28 Thread Tom Rini
On Mon, Apr 28, 2025 at 02:07:57PM +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_BOO

[PATCH] bootm: improve error message when gzip decompression buffer is too small

2025-04-28 Thread Aristo Chen
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: - Dete