Skip to content

u-boot chain-loading LineageOS bootimg

George Chan b4-sent u-boot 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250427-android-boot-ecbb768cda72

Versions newest first

  1. v3 Latest3 patches 1 replyIn review
  2. v25 patches 7 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- 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]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3boot/image-android: Workaround kernel/ramdisk invalid addrboot/Kconfig boot/image-android.c+17 -30 replies
2/3mach-snapdragon: Enable workaround of ignoring androidboot addrarch/arm/Kconfig+1 -00 replies
3/3mach-snapdragon: Enhance android image handling memory footprintarch/arm/mach-snapdragon/board.c+6 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNeil ArmstrongMattijs KorpershoekCasey Connolly
SeriesR-b
1/3R-b T-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] u-boot chain-loading LineageOS bootimg

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]>

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,

Signature · 1 line
George Chan <[email protected]>