[PATCH v3 0/3] u-boot chain-loading LineageOS bootimg
Casey Connolly
casey.connolly at linaro.org
Wed Jun 4 15:25:48 CEST 2025
On 5/18/25 13:16, George Chan via B4 Relay wrote:
> 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 <trini at konsulko.com>
> To: Mattijs Korpershoek <mkorpershoek at kernel.org>
> To: Simon Glass <sjg at chromium.org>
> To: Casey Connolly <casey.connolly at linaro.org>
> To: Neil Armstrong <neil.armstrong at linaro.org>
> To: Sumit Garg <sumit.garg at kernel.org>
> To: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
> Cc: u-boot at lists.denx.de
> Cc: u-boot-qcom at groups.io
> Signed-off-by: George Chan <gchan9527 at gmail.com>
Thanks for sticking with us on this. It's really awesome to see you have
LineageOS booting! If you'd be interested in documenting how you got
this working (either in U-Boot docs or elsewhere) I think it would be
super interesting to read about :)
Reviewed-by: Casey Connolly <casey.connolly at linaro.org>
Kind regards,>
> 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/20250505-android-boot-v2-0-92dcb5bf59c8@gmail.com
>
> 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/20250427-android-boot-v1-0-bb6b37c9c9f1@gmail.com
>
> ---
> 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,
--
Casey (she/they)
More information about the U-Boot
mailing list