Skip to content

sandbox: Add support for TPL and other improvements

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15log: Add helpers for common log levelsinclude/log.h test/log/log_test.c test/py/tests/test_log.py+33 -01 reply
2/15sandbox: Support file truncation with os_open()arch/sandbox/cpu/os.c include/os.h+3 -01 reply
3/15sandbox: Add a way to write data to the host filesystemarch/sandbox/cpu/os.c include/os.h+33 -01 reply
4/15sandbox: spi: Drop command-line SPI optiondrivers/mtd/spi/sandbox.c+9 -1131 reply
5/15sandbox: Support booting from TPL to SPLarch/sandbox/cpu/os.c+27 -21 reply
6/15sandbox: Add a flag to set the default log levelarch/sandbox/cpu/start.c arch/sandbox/include/asm/state.h common/log.c+16 -11 reply
7/15sandbox: Remove the old memory file laterarch/sandbox/cpu/start.c arch/sandbox/cpu/state.c+6 -61 reply
8/15sandbox: spi: Add more loggingdrivers/mtd/spi/sandbox.c drivers/spi/sandbox_spi.c include/log.h+39 -541 reply
9/15sandbox: video: Speed up video outputdrivers/video/vidconsole-uclass.c drivers/video/video-uclass.c drivers/video/video_bmp.c +2 more+14 -122 replies
10/15sandbox: Add a debug UARTconfigs/sandbox_defconfig drivers/serial/Kconfig drivers/serial/sandbox.c+30 -01 reply
11/15serial: sandbox: Allow serial output without device treedrivers/serial/sandbox.c+5 -01 reply
12/15sandbox: tpm: Tidy up enums and return valuesdrivers/tpm/tpm_tis_sandbox.c include/tpm-v1.h include/tpm-v2.h+25 -101 reply
13/15sandbox: tpm: Enhance to support the latest Chromium OSdrivers/tpm/tpm_tis_sandbox.c include/tpm-v1.h+116 -151 reply
14/15dm: spi: Clean up detection of sandbox SPI emulatorarch/sandbox/include/asm/state.h drivers/mtd/spi/sandbox.c+8 -111 reply
15/15sandbox: Restore blocking I/O on exitarch/sandbox/cpu/os.c drivers/serial/sandbox.c include/os.h+16 -191 reply

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchAnatolij Gustschin
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15R-b R-b
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/15] sandbox: Add support for TPL and other improvements

This series adds TPL support to sandbox and tidies up various other things along the way:

- Fix for console being left in non-blocking mode on exit
- Add debug UART (just for build coverage)
- Support for serial output without DT (intended for TPL)
- Enhancements to the sandbox TPM driver
- Command-line flag to set the logging level

So far there is not actually a separate TPL build. I am going to leave this until I have a full Chromium OS config for U-Boot.

Simon Glass (15):
log: Add helpers for common log levels
sandbox: Support file truncation with os_open()
sandbox: Add a way to write data to the host filesystem
sandbox: spi: Drop command-line SPI option
sandbox: Support booting from TPL to SPL
sandbox: Add a flag to set the default log level
sandbox: Remove the old memory file later
sandbox: spi: Add more logging
sandbox: video: Speed up video output
sandbox: Add a debug UART
serial: sandbox: Allow serial output without device tree
sandbox: tpm: Tidy up enums and return values
sandbox: tpm: Enhance to support the latest Chromium OS
dm: spi: Clean up detection of sandbox SPI emulator
sandbox: Restore blocking I/O on exit

 arch/sandbox/cpu/os.c             |  74 ++++++++++--
 arch/sandbox/cpu/start.c          |  19 ++-
 arch/sandbox/cpu/state.c          |   6 +-
 arch/sandbox/include/asm/state.h  |   2 +-
 common/log.c                      |   3 +-
 configs/sandbox_defconfig         |   2 +
 drivers/mtd/spi/sandbox.c         | 194 +++++++-----------------------
 drivers/serial/Kconfig            |  11 ++
 drivers/serial/sandbox.c          |  24 +++-
 drivers/spi/sandbox_spi.c         |  38 ++----
 drivers/tpm/tpm_tis_sandbox.c     | 115 ++++++++++++++----
 drivers/video/vidconsole-uclass.c |  12 +-
 drivers/video/video-uclass.c      |   6 +-
 drivers/video/video_bmp.c         |   2 +-
 include/log.h                     |  15 +++
 include/os.h                      |  24 ++--
 include/tpm-v1.h                  |  48 ++++++++
 include/tpm-v2.h                  |   1 +
 include/video.h                   |   4 +-
 test/dm/video.c                   |   2 +-
 test/log/log_test.c               |  13 ++
 test/py/tests/test_log.py         |   6 +
 22 files changed, 379 insertions(+), 242 deletions(-)
Signature · 1 line
2.19.0.605.g01d371f741-goog