public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader
@ 2022-01-11 16:01 Dzmitry Sankouski
  2022-01-11 16:01 ` [PATCH 1/2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc Dzmitry Sankouski
  2022-01-11 16:01 ` [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options Dzmitry Sankouski
  0 siblings, 2 replies; 5+ messages in thread
From: Dzmitry Sankouski @ 2022-01-11 16:01 UTC (permalink / raw)
  To: u-boot; +Cc: Dzmitry Sankouski

U-boot is intended to replace linux kernel in android boot image(ABL), and
it's FIT payload to replace initramfs file. The boot process is similar to
boot image with linux:
- android bootloader (ABL) unpacks android boot image
- ABL sets `linux,initrd-start property` in chosen node in unpacked FDT
- ABL sets x0 register to FDT address, and passes control to u-boot
- u-boot reads x0 register, and stores it in `abl_fdt_addr` env variable
- u-boot reads `linux,initrd-start` property,
and stores it in `abl_initrd_start_addr`

In this way, u-boot bootcmd relies on `abl_initrd_start_addr` env variable,
and boils down to `bootm $abl_initrd_start_addr`. If more control on
boot process is desired, pack a boot script in FIT image, and put it to
default configuration

Dzmitry Sankouski (2):
  soc: sdm845: implement ABL info collecting, add bootcommand and usage
    doc
  board: starqltechn: get board usable - fix defconfig and strip config
    options

 arch/arm/mach-snapdragon/init_sdm845.c | 60 ++++++++++++++++++++----
 configs/starqltechn_defconfig          | 12 +++--
 doc/board/qualcomm/sdm845.rst          | 63 +++++++++++++++++++++++++-
 include/configs/sdm845.h               |  5 ++
 4 files changed, 124 insertions(+), 16 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-30 10:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11 16:01 [PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader Dzmitry Sankouski
2022-01-11 16:01 ` [PATCH 1/2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc Dzmitry Sankouski
2022-01-11 16:01 ` [PATCH 2/2] board: starqltechn: get board usable - fix defconfig and strip config options Dzmitry Sankouski
2022-01-11 16:19   ` Tom Rini
2022-01-30 10:43     ` Dzmitry Sankouski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox