From: Dzmitry Sankouski <dsankouski@gmail.com>
To: u-boot@lists.denx.de
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
Subject: [PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader
Date: Tue, 11 Jan 2022 20:58:15 +0300 [thread overview]
Message-ID: <20220111175817.5973-1-dsankouski@gmail.com> (raw)
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
next reply other threads:[~2022-01-11 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 17:58 Dzmitry Sankouski [this message]
2022-01-11 17:58 ` [PATCH 1/2 v2] soc: sdm845: implement ABL info collecting, add bootcommand and usage doc Dzmitry Sankouski
2022-01-11 17:58 ` [PATCH 2/2 v2] board: starqltechn: get board usable - fix defconfig and strip config options Dzmitry Sankouski
-- strict thread matches above, loose matches on Subject: below --
2022-01-11 16:01 [PATCH 0/2] get sdm845 boards u-boot usable as a secondary bootloader Dzmitry Sankouski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220111175817.5973-1-dsankouski@gmail.com \
--to=dsankouski@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox