Skip to content

spl: Add features for passing info from SPL to U-Boot proper

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22log: Correct definition of log_msg_ret()include/log.h+1 -10 replies
2/22spl: Add support for logging in SPL and TPLcommon/Kconfig common/Makefile common/spl/spl.c +1 more+49 -50 replies
3/22Add core support for a bloblist to convey data from SPLcommon/Kconfig common/Makefile common/bloblist.c +2 more+483 -01 reply
3/22Add core support for a bloblist to convey data from SPL+0 -00 replies
4/22spl: Set up the bloblist in SPLcommon/spl/spl.c include/spl.h+43 -20 replies
5/22bloblist: Locate bloblist in U-Bootcommon/board_f.c include/asm-generic/global_data.h+38 -00 replies
6/22test: Add a simple test for bloblistarch/Kconfig include/test/suites.h test/Makefile +2 more+193 -00 replies
7/22Add bloblist documentationdoc/README.bloblist+82 -00 replies
8/22spl: Support hash, input, pch, pci, rtc, tpm in SPLcommon/spl/Kconfig drivers/Makefile+53 -60 replies
9/22spl: Add a define for SPL_TPL_PROMPTcommon/spl/spl.c include/spl.h test/py/u_boot_console_base.py+32 -160 replies
10/22spl: Make SPL_DISABLE_BANNER_PRINT a positive optioncommon/spl/Kconfig common/spl/spl.c+14 -50 replies
11/22spl: Add a comment to spl_set_bd()common/spl/spl.c+4 -00 replies
12/22spl: Print a message if we are unable to load an imagecommon/spl/spl.c+1 -00 replies
13/22sandbox: Add a memory map to the sandbox READMEboard/sandbox/README.sandbox+13 -10 replies
14/22test/py: Add a way to pass flags to sandboxtest/py/u_boot_console_sandbox.py+17 -11 reply
15/22sandbox: Add an option to display of-platdata in SPLarch/sandbox/cpu/spl.c arch/sandbox/cpu/start.c arch/sandbox/cpu/u-boot-spl.lds +2 more+55 -20 replies
16/22sandbox: Add a new 'sb' commandarch/sandbox/cpu/start.c arch/sandbox/include/asm/state.h cmd/Makefile +2 more+64 -50 replies
17/22sandbox: Allow puts() output before global_data is set upcommon/console.c+7 -01 reply
18/22sandbox: Refactor code to create os_jump_to_file()arch/sandbox/cpu/os.c+38 -100 replies
19/22sandbox: Use malloc() and free() from os layerarch/sandbox/cpu/eth-raw-os.c arch/sandbox/cpu/os.c+15 -121 reply
20/22sandbox: Filter arguments when starting U-Bootarch/sandbox/cpu/os.c+26 -60 replies
21/22sandbox: Boot in U-Boot through the standard callarch/sandbox/cpu/os.c arch/sandbox/cpu/spl.c+20 -140 replies
22/22spl: Add support for passing handoff info to U-Boot properarch/powerpc/include/asm/spl.h arch/sandbox/include/asm/handoff.h cmd/sb.c +11 more+250 -170 replies

Reviews trailers per patch

5 of 23 patches have a Reviewed-by or Acked-by.

PatchJoe HershbergerAndreas DannenbergStephen Warren
1/22
2/22
3/22A-b
3/22A-b
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22A-b
15/22
16/22
17/22R-b
18/22
19/22R-b
20/22
21/22
22/22

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 v1 thread

Cover letter [U-Boot] [PATCH 00/22] spl: Add features for passing info from SPL to U-Boot proper

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.

Simon Glass (22):
log: Correct definition of log_msg_ret()
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()
spl: Print a message if we are unable to load an image
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: 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                   |  47 ++++++
 common/console.c                   |   7 +
 common/init/Makefile               |   1 +
 common/init/handoff.c              |  47 ++++++
 common/spl/Kconfig                 |  95 +++++++++++-
 common/spl/spl.c                   | 142 +++++++++++++----
 configs/sandbox_spl_defconfig      |   1 +
 doc/README.bloblist                |  82 ++++++++++
 drivers/Makefile                   |  11 +-
 include/asm-generic/global_data.h  |   7 +
 include/bloblist.h                 | 194 +++++++++++++++++++++++
 include/handoff.h                  |  36 +++++
 include/log.h                      |  10 +-
 include/spl.h                      |  41 +++++
 include/test/suites.h              |   1 +
 test/Makefile                      |   1 +
 test/bloblist.c                    | 187 ++++++++++++++++++++++
 test/cmd_ut.c                      |   3 +
 test/py/tests/test_handoff.py      |  14 ++
 test/py/tests/test_ofplatdata.py   |  31 +++-
 test/py/u_boot_console_base.py     |   2 +-
 test/py/u_boot_console_sandbox.py  |  18 ++-
 test/run                           |   2 +-
 39 files changed, 1497 insertions(+), 102 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
Signature · 1 line
2.19.0.605.g01d371f741-goog