From: George Chan Subject: [PATCH v3 0/3] u-boot chain-loading LineageOS bootimg Date: Sun, 18 May 2025 19:16:17 +0800 Message-Id: <20250518-android-boot-v3-0-02c8768e131f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIHBKWgC/3WMwQ6CMBAFf4X0bA0US6kn/8N46G4LbCLUtKTRE P7dwkVjYt5pXjKzsOgCucjOxcKCSxTJTxnqQ8FwMFPvONnMTJRCliehuJls8GQ5eD9zhwCqadE aJVhWHsF19Nxz11vmgeLsw2uvp2p7/4RSxUsO0ECtUKPuqks/Grof0Y9sCyXxkfN+ZJFlLSyCh E5qbL/ldV3fnyYbPOUAAAA= To: Tom Rini , Mattijs Korpershoek , Simon Glass , Casey Connolly , Neil Armstrong , Sumit Garg , Rayagonda Kokatanur Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, George Chan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1747567000; l=2455; i=gchan9527@gmail.com; s=20241015; h=from:subject:message-id; bh=okd2bvwfGMtJalyB489MmYbnJIYdDdZIfl2S0cbVj4w=; b=eUeoQlVe37jcqoWyIGbVVi1QNrckIj/8RpE4/F8APtcQMFbo0fIrF5tlrptEg+uqxcWSL1xEg YqIF6ikeGXBDF84S/86c6EEIW/NLCJjkQaJ9kOQ1nhXBHohkB8qiOZZ X-Developer-Key: i=gchan9527@gmail.com; a=ed25519; pk=dscYWhT+BiQOBMpPE19NFQAjBBmcpipc6zdf2MTze/U= X-Endpoint-Received: by B4 Relay for gchan9527@gmail.com/20241015 with auth_id=248 List-Id: B4 Relay Submissions 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 To: Mattijs Korpershoek To: Simon Glass To: Casey Connolly To: Neil Armstrong To: Sumit Garg To: Rayagonda Kokatanur Cc: u-boot@lists.denx.de Cc: u-boot-qcom@groups.io Signed-off-by: George Chan 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, -- George Chan