[PATCH 2/4] bootm: use CONFIG_SYS_BOOTM_LEN for IH_TYPE_KERNEL_NOLOAD decompression buffer
Simon Glass
sjg at chromium.org
Sun Jun 14 14:19:57 CEST 2026
Hi Nora,
On 2026-06-10T09:01:22, Nora Schiffer <nora.schiffer at ew.tq-group.com> wrote:
> bootm: use CONFIG_SYS_BOOTM_LEN for IH_TYPE_KERNEL_NOLOAD decompression buffer
>
> CONFIG_SYS_BOOTM_LEN is passed to image_decomp(), so the same should be
> used for the buffer allocation. Deriving a buffer size from the
> compressed size if not possible, as the compression ratio may be
> arbitrarily high for data with many repititions (for example ranges of
> 0x00 or 0xff).
>
> Fixes: 69544c4fd8b1 ("bootm: Support kernel_noload with compression")
> Signed-off-by: Nora Schiffer <nora.schiffer at ew.tq-group.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>
>
> boot/bootm.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
Note typos: 'if not possible' should be 'is not possible'
and 'repititions' should be 'repetitions'.
Regards,
Simon
More information about the U-Boot
mailing list