This is a series of patches to enable chainloading LineageOS on qcom SOC. Patch #1 introduce kconfig to ignore those default value and use loadaddr instead. That workaround some androidboot image have invalid kernel/ramdisk loadaddr.
Patch #2 enable #1 for snapdragon machine. Patch #3 override qcom soc loadaddr with fastboot_addr_r as a band-aid. Casey confirmed loadaddr and kernel_addr_r are purposely set to same address for memory-constrain case. A proper fix is far from get ready so this patch can work as a band-aid for maintainer atm. Remain as unchanged to make it conditional on CONFIG_FASTBOOT is because that also imply CONFIG_ANDROID_BOOT_IMAGE set y. To: Tom Rini <[email protected]> To: Mattijs Korpershoek <[email protected]> To: Simon Glass <[email protected]> To: Casey Connolly <[email protected]> To: Neil Armstrong <[email protected]> To: Sumit Garg <[email protected]> To: Rayagonda Kokatanur <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: George Chan <[email protected]> Changes in v3: - Rebase to origin/master - Drop optional patches, leaving those acked patches. - Gone through checkpatch.pl - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Revised patch #1 to control by kconfig, suggested by Casey - Split old #1 into new #1 and #5 for maintainer to choose. - Revised Casey's approach for #2 and make it as band-aid atm. - Revised Casey's approach for #3 and leave user to bake their own param set. - Introduce example for #1 - Introduce kconfig default for #1 with snapdragon soc, suggested by Casey - Link to v1: https://lore.kernel.org/r/[email protected] --- George Chan (3): boot/image-android: Workaround kernel/ramdisk invalid addr mach-snapdragon: Enable workaround of ignoring androidboot addr mach-snapdragon: Enhance android image handling memory footprint arch/arm/Kconfig | 1 + arch/arm/mach-snapdragon/board.c | 8 ++++++-- boot/Kconfig | 11 +++++++++++ boot/image-android.c | 9 ++++++--- 4 files changed, 24 insertions(+), 5 deletions(-) --- base-commit: 126a88d49bcae04bbfc0d6723097cd6341355ade change-id: 20250427-android-boot-ecbb768cda72 Best regards, -- George Chan <[email protected]>

