From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 00/21] spl: Add features for passing info from SPL to U-Boot proper
Date: Thu, 15 Nov 2018 18:43:48 -0700 [thread overview]
Message-ID: <20181116014409.147279-1-sjg@chromium.org> (raw)
At present we have no standard way of passing information from SPL to
U-Boot. Such information may be the size of DRAM banks or some information
about the reset state of the machine,for example.
This series first adds a bloblist, which allows a list of 'blobs' to be
created, each with a tag so that subsystems can store data and retrieve it
later. Then it adds the SPL 'handoff' information, which uses bloblist.
Various minor sandbox enhancements are provided to make this easier, or to
support testing.
Changes in v3:
- Add comments to the log_ret() functions to indicate usage
- Update log_msg_ret() to make use of the message and avoid a warning
- Correct CONFIG_BLOBLIST_ADDR to have a default only for sandbox
- Drop patch 'spl: Print a message if we are unable to load an image'
Changes in v2:
- Fix several typos
- Add back a blank line, and put one in the new function too
- Drop the wildcard in the .lds file as it is not needed
Simon Glass (21):
spl: Add support for logging in SPL and TPL
Add core support for a bloblist to convey data from SPL
spl: Set up the bloblist in SPL
bloblist: Locate bloblist in U-Boot
test: Add a simple test for bloblist
Add bloblist documentation
spl: Support hash, input, pch, pci, rtc, tpm in SPL
spl: Add a define for SPL_TPL_PROMPT
spl: Make SPL_DISABLE_BANNER_PRINT a positive option
spl: Add a comment to spl_set_bd()
sandbox: Add a memory map to the sandbox README
test/py: Add a way to pass flags to sandbox
sandbox: Add an option to display of-platdata in SPL
sandbox: Drop the deprecated 'sb' command
sandbox: Add a new 'sb' command
sandbox: Allow puts() output before global_data is set up
sandbox: Refactor code to create os_jump_to_file()
sandbox: Use malloc() and free() from os layer
sandbox: Filter arguments when starting U-Boot
sandbox: Boot in U-Boot through the standard call
spl: Add support for passing handoff info to U-Boot proper
arch/Kconfig | 1 +
arch/powerpc/include/asm/spl.h | 3 -
arch/sandbox/cpu/eth-raw-os.c | 9 +-
arch/sandbox/cpu/os.c | 115 +++++++++-----
arch/sandbox/cpu/spl.c | 31 +++-
arch/sandbox/cpu/start.c | 19 +++
arch/sandbox/cpu/u-boot-spl.lds | 2 +-
arch/sandbox/include/asm/handoff.h | 18 +++
arch/sandbox/include/asm/state.h | 8 +
board/sandbox/README.sandbox | 14 +-
cmd/Makefile | 1 +
cmd/host.c | 5 -
cmd/sb.c | 65 ++++++++
common/Kconfig | 84 +++++++++-
common/Makefile | 5 +-
common/bloblist.c | 239 +++++++++++++++++++++++++++++
common/board_f.c | 49 ++++++
common/console.c | 7 +
common/init/Makefile | 1 +
common/init/handoff.c | 47 ++++++
common/spl/Kconfig | 95 +++++++++++-
common/spl/spl.c | 135 ++++++++++++----
configs/sandbox_spl_defconfig | 1 +
doc/README.bloblist | 82 ++++++++++
doc/README.trace | 2 +-
drivers/Makefile | 11 +-
include/asm-generic/global_data.h | 7 +
include/bloblist.h | 195 +++++++++++++++++++++++
include/handoff.h | 36 +++++
include/log.h | 20 ++-
include/spl.h | 41 +++++
include/test/suites.h | 1 +
test/Makefile | 1 +
test/bloblist.c | 187 ++++++++++++++++++++++
test/cmd_ut.c | 3 +
test/dm/sf.c | 2 +-
test/py/tests/test_fit.py | 12 +-
test/py/tests/test_handoff.py | 14 ++
test/py/tests/test_ofplatdata.py | 31 +++-
test/py/tests/test_vboot.py | 2 +-
test/py/u_boot_console_base.py | 2 +-
test/py/u_boot_console_sandbox.py | 18 +++
test/run | 2 +-
43 files changed, 1516 insertions(+), 107 deletions(-)
create mode 100644 arch/sandbox/include/asm/handoff.h
create mode 100644 cmd/sb.c
create mode 100644 common/bloblist.c
create mode 100644 common/init/handoff.c
create mode 100644 doc/README.bloblist
create mode 100644 include/bloblist.h
create mode 100644 include/handoff.h
create mode 100644 test/bloblist.c
create mode 100644 test/py/tests/test_handoff.py
--
2.19.1.1215.g8438c0b245-goog
next reply other threads:[~2018-11-16 1:43 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 1:43 Simon Glass [this message]
2018-11-16 1:43 ` [U-Boot] [PATCH v3 01/21] spl: Add support for logging in SPL and TPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 02/21] Add core support for a bloblist to convey data from SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 03/21] spl: Set up the bloblist in SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,03/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 04/21] bloblist: Locate bloblist in U-Boot Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,04/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 05/21] test: Add a simple test for bloblist Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 06/21] Add bloblist documentation Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot,v3,06/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 07/21] spl: Support hash, input, pch, pci, rtc, tpm in SPL Simon Glass
2018-11-26 18:43 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 08/21] spl: Add a define for SPL_TPL_PROMPT Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 09/21] spl: Make SPL_DISABLE_BANNER_PRINT a positive option Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 10/21] spl: Add a comment to spl_set_bd() Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot,v3,10/21] " Tom Rini
2018-11-16 1:43 ` [U-Boot] [PATCH v3 11/21] sandbox: Add a memory map to the sandbox README Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 12/21] test/py: Add a way to pass flags to sandbox Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 13/21] sandbox: Add an option to display of-platdata in SPL Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 14/21] sandbox: Drop the deprecated 'sb' command Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 15/21] sandbox: Add a new " Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot,v3,15/21] " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 16/21] sandbox: Allow puts() output before global_data is set up Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 17/21] sandbox: Refactor code to create os_jump_to_file() Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 18/21] sandbox: Use malloc() and free() from os layer Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 19/21] sandbox: Filter arguments when starting U-Boot Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 20/21] sandbox: Boot in U-Boot through the standard call Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-16 1:44 ` [U-Boot] [PATCH v3 21/21] spl: Add support for passing handoff info to U-Boot proper Simon Glass
2018-11-26 18:44 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-11-27 0:08 ` Simon Glass
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=20181116014409.147279-1-sjg@chromium.org \
--to=sjg@chromium.org \
--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