]> git.dujemihanovic.xyz Git - u-boot.git/commit
image: android: do not boot XIP when kernel is compressed
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 17 Oct 2024 14:44:43 +0000 (16:44 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 24 Oct 2024 07:48:14 +0000 (09:48 +0200)
commitd5a85e8e95db57e350a092af62077917c7edd571
tree0fc43127e3a5d45106f3f4878033e653bf27b118
parent8f8e646d790199f023f82b8100b6e160d510206d
image: android: do not boot XIP when kernel is compressed

When trying to boot an android boot image with a compressed
kernel, if the kernel is used in-place because it was created
with mkbootimg, the space will be too small to properly
uncompress.

Take in account the compressed state, and if compressed
use the kernel_addr_r which should be big enough.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Guillaume La Roque <glaroque@baylibre.com>
Link: https://lore.kernel.org/r/20241017-topic-fastboot-fixes-mkbootimg-v2-2-c3927102d931@linaro.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/image-android.c