public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dzmitry Sankouski <dsankouski@gmail.com>
To: u-boot@lists.denx.de
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
Subject: [PATCH 0/3] save prev bootloader data, when u-boot chainloaded
Date: Sun, 30 Jan 2022 13:40:15 +0300	[thread overview]
Message-ID: <20220130104018.25511-1-dsankouski@gmail.com> (raw)

When u-boot is used as a chain-loaded bootloader (replacing OS kernel),
previous bootloader leaves data in RAM, that can be reused.

For example, on recent arm linux system, when chainloading u-boot,
there are initramfs and fdt in RAM prepared for OS booting. Initramfs
may be modified to store u-boot's payload, thus providing the ability to
use chainloaded u-boot to boot OS without any storage support.

Two config options added:
- SAVE_PREV_BL_INITRAMFS_START_ADDR
  saves initramfs start address to 'prevbl_initrd_start_addr' environment
  variable
- SAVE_PREV_BL_FDT_ADDR
  saves fdt address to 'prevbl_fdt_addr' environment variable

This feature will be used for axy17lte and starqltechn boards for now,
and more phones in future.

Dzmitry Sankouski (3):
  arm: init: save previous bootloader data
  board: starqltechn: get board usable - add bootcmd and docs
  board: axy17lte: get board usable - add bootcmd and docs

 arch/arm/lib/Makefile               |  2 +
 arch/arm/lib/save_prev_bl_data.c    | 93 +++++++++++++++++++++++++++++
 boot/Kconfig                        | 79 +++++++++++++++---------
 configs/a3y17lte_defconfig          | 12 ++--
 configs/a5y17lte_defconfig          | 13 ++--
 configs/a7y17lte_defconfig          | 13 ++--
 configs/starqltechn_defconfig       | 13 ++--
 doc/board/qualcomm/sdm845.rst       | 47 ++++++++++++++-
 doc/board/samsung/axy17lte.rst      | 15 +----
 include/configs/exynos78x0-common.h |  4 ++
 include/configs/sdm845.h            |  5 ++
 include/init.h                      | 13 ++++
 12 files changed, 250 insertions(+), 59 deletions(-)
 create mode 100644 arch/arm/lib/save_prev_bl_data.c

-- 
2.20.1


             reply	other threads:[~2022-01-30 10:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-30 10:40 Dzmitry Sankouski [this message]
2022-01-30 10:40 ` [PATCH 1/3 v2] arm: init: save previous bootloader data Dzmitry Sankouski
2022-01-30 10:40 ` [PATCH 2/3 v2] board: starqltechn: get board usable - add bootcmd and docs Dzmitry Sankouski
2022-01-30 10:40 ` [PATCH 3/3 v2] board: axy17lte: " Dzmitry Sankouski
  -- strict thread matches above, loose matches on Subject: below --
2022-02-22 18:49 [PATCH 0/3] save prev bootloader data, when u-boot chainloaded Dzmitry Sankouski
2022-02-13 19:39 Dzmitry Sankouski
2022-01-27 15:32 sankouski-dzmitry

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=20220130104018.25511-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