Aristo Chen
f717d798be
bootm: improve error message when gzip decompression buffer is too small
...
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
By providing clearer hints when decompression fails due to insufficient
buffer size, this change helps users diagnose and fix boot failures more
easily.
Signed-off-by: Aristo Chen <aristo.chen@canonical.com >
Reviewed-by: Tom Rini <trini@konsulko.com >
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org >
2025-05-05 14:16:57 -06:00
..
2025-04-11 12:16:49 -06:00
2025-04-11 12:16:44 -06:00
2023-12-21 08:54:37 -05:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-04-11 12:16:44 -06:00
2024-07-15 12:12:18 -06:00
2025-04-11 12:16:44 -06:00
2024-09-12 17:35:37 +02:00
2025-02-20 11:07:44 +01:00
2025-05-01 10:49:07 -06:00
2025-04-19 12:47:17 +02:00
2024-09-19 10:52:50 +03:00
2024-07-15 12:12:18 -06:00
2024-10-11 11:44:48 -06:00
2025-04-11 12:16:44 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-04-11 12:16:49 -06:00
2023-12-21 08:54:37 -05:00
2025-03-13 14:23:09 -06:00
2025-04-08 16:23:51 -06:00
2024-07-15 12:12:18 -06:00
2020-01-22 17:47:57 -05:00
2025-01-22 15:58:03 -06:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-11-03 21:27:12 -06:00
2024-08-26 14:06:08 -06:00
2023-09-24 09:54:57 -04:00
2023-12-21 08:54:37 -05:00
2024-12-02 07:40:30 -06:00
2024-04-20 08:22:24 +02:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-02-03 16:01:36 -06:00
2023-12-21 08:54:37 -05:00
2022-04-21 14:32:40 -04:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-10-11 11:44:48 -06:00
2020-05-18 21:19:23 -04:00
2024-08-27 18:01:21 -06:00
2023-12-21 08:54:37 -05:00
2021-05-24 14:21:30 -04:00
2021-04-14 15:06:08 -04:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2025-04-28 10:13:19 -06:00
2023-12-21 08:54:37 -05:00
2025-05-05 14:16:57 -06:00
2024-07-05 13:57:02 -06:00
2024-10-11 11:44:48 -06:00
2023-12-21 08:54:37 -05:00
2024-12-07 09:07:45 -03:00
2024-10-11 11:44:48 -06:00
2024-02-09 09:42:04 +01:00
2025-04-23 13:19:44 -06:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2025-03-24 20:10:55 -06:00
2025-02-03 16:01:36 -06:00
2025-02-03 16:01:36 -06:00
2025-04-23 13:19:44 -06:00
2024-12-06 17:47:23 -06:00
2025-04-03 16:54:49 -06:00
2024-11-18 16:12:35 +01:00
2025-05-02 08:38:02 -06:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2021-06-11 16:34:52 +05:30
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-12-06 17:47:23 -06:00
2025-01-18 17:12:47 -06:00
2025-01-18 17:12:47 -06:00
2024-12-06 17:47:23 -06:00
2023-12-21 08:54:37 -05:00
2024-02-02 19:57:45 +01:00
2025-04-24 08:23:02 -06:00
2020-08-24 14:11:31 -04:00
2025-02-12 12:37:12 -06:00
2024-11-13 08:14:23 -06:00
2024-01-09 10:08:52 +01:00
2025-04-23 13:19:44 -06:00
2025-04-08 16:24:12 -06:00
2025-01-28 08:58:41 +02:00
2025-01-28 09:09:32 +02:00
2023-12-21 08:54:37 -05:00
2022-01-19 18:11:34 +01:00
2024-10-14 17:58:30 -06:00
2025-01-28 08:58:41 +02:00
2025-01-01 10:40:33 -06:00
2025-04-23 13:19:44 -06:00
2025-04-22 12:54:32 -06:00
2024-11-13 08:16:41 -06:00