u-boot/boot
Mattijs Korpershoek 3078766134 image: Set load_end on partial loads
When decompressing, it's possible that the algorithm only performs
a partial decompression.
This usually happens when CONFIG_SYS_BOOTM_LEN is too small for
the uncompressed image.

When that happens, image_decomp() returns an error and *load_end == load.
The error is then handled by handle_decomp_error().

handle_decomp_error() expects the number of uncompressed bytes in
uncomp_size but receives *load_end - load == load - load == 0.

Because of this, handle_decomp_error does not report the expected
"Image too large: increase CONFIG_SYS_BOOTM_LEN" error message.

Modify the image_decomp() logic to always report the decompressed size,
even when a partial decompression happened.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2024-06-07 16:20:28 -06:00
..
android_ab.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
boot_fit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootdev-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootflow_internal.h bootstd: Support creating a boot menu 2023-01-16 18:26:50 -05:00
bootflow_menu.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootflow.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootm_os.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootm.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_cros.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_cros.h bootstd: cros: Bring in some ChromiumOS structures 2023-08-10 18:34:54 -06:00
bootmeth_efi_mgr.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_efi.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_extlinux.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_pxe.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_qfw.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_sandbox.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth_script.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootmeth-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootretry.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
bootstd-uclass.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
cedit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
common_fit.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
expo_build.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
expo.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
fdt_simplefb.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
fdt_support.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-android-dt.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-android.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-board.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-cipher.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fdt.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fit-sig.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-fit.c image: remove redundant hash includes 2024-05-22 08:55:28 -06:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-pre-load.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image-sig.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
image.c image: Set load_end on partial loads 2024-06-07 16:20:28 -06:00
Kconfig Kconfig: Remove all default n options 2024-04-18 16:37:22 -06:00
Makefile Revert "Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled"" 2024-04-18 08:29:35 -06:00
prog_boot.c bootstd: Introduce programmatic boot 2023-12-13 11:51:24 -05:00
pxe_utils.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene_internal.h expo: Plumb in textlines to a scene 2023-10-11 15:43:55 -04:00
scene_menu.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene_textline.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
scene.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_request.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple_fw.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple_os.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00
vbe_simple.h vbe: Move OS implementation into a separate file 2022-10-31 11:03:36 -04:00
vbe.c boot: Remove <common.h> and add needed includes 2024-05-06 15:05:04 -06:00