image: android: misc fixes when using on Qualcomm platforms When trying to use the Android boot image with header version 2 on recent Qualcomm platforms, we get into some troubles. First the kernel in-place address can be > 32bit, then since we use the Android mkbootimg, it uses the default load address which isn't big enough to uncompress the kernel. Finally, the ramdisk also uses a default load address, and it should be taken in account like for the kernel address. To: Tom Rini <trini@konsulko.com> Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com> Cc: Guillaume La Roque <glaroque@baylibre.com> Cc: Caleb Connolly <caleb.connolly@linaro.org> Cc: u-boot-qcom@groups.io Cc: u-boot@lists.denx.de Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- Changes in v2: - Fix patch 2 prefix - Fix patch 3 commit msg - Fix patch 3 behavior when using boot image header version > 2, use the original ramdisk_ptr - Link to v1: https://lore.kernel.org/r/20241016-topic-fastboot-fixes-mkbootimg-v1-0-94fd9340722b@linaro.org --- Neil Armstrong (3): image: android: use ulong for kernel address image: android: do not boot XIP when kernel is compressed image: android: handle ramdisk default address boot/image-android.c | 62 +++++++++++++++++++++++++++++++++++++------------ include/android_image.h | 2 +- 2 files changed, 48 insertions(+), 16 deletions(-) --- base-commit: d5cab0d6adc26ec1bbd45c2fed101184d04454ae change-id: 20241016-topic-fastboot-fixes-mkbootimg-8d73ab93db3d Best regards,