[U-Boot] [PATCH 00/25] sandbox: Changes and improvements to support verified boot

Simon Glass sjg at chromium.org
Tue Nov 6 22:21:17 UTC 2018


This series compiles a number of fixes and improvement to sandbox,
cros_ec, tpm and a few other pieces. This allows U-Boot to support
Chromium OS verified boot and assist with debugging of this.


Simon Glass (25):
  cros_ec: Use uint instead of u8 for parameters
  cros_ec: Add error logging on a few commands
  cros_ec: Fail if we cannot determine the flash burst size
  cros_ec: Align uclass data to a cache boundary
  cros_ec: Add new features for events and power
  sandbox: tpm: Allow debugging of data packages
  sandbox: log: Add a category for sandbox
  sandbox: Add a function to read a host file
  sandbox: cros_ec: exynos: Drop use of cros_ec_get_error()
  sandbox: Update some drivers to work in SPL/TPL
  spl: Support bootstage, log, hash and early malloc in TPL
  spl: Correct malloc debugging in board_init_r()
  spl: lz4: Allow use of lz4 compression in SPL
  binman: Add a way to enable debugging from the build
  binman: Drop an unnecessary comma in blob handling
  binman: Set the pathname correctly for ELF files
  tpm: Export the open/close functions
  tpm: Convert to use a device parameter
  video: Update video_set_default_colors() to support invert
  efi_loader: Don't enable in SPL/TPL by default
  string: Include the config header
  misc: Update read() and write() methods to return bytes xfered
  test: sf: Add a simple SPI flash test
  sf: Add a method to obtain the block-protect setting
  mmc: Add hardware partition support

 Makefile                              |   6 +-
 arch/arm/mach-stm32mp/cpu.c           |   4 +-
 arch/sandbox/cpu/os.c                 |  44 ++-
 arch/sandbox/dts/sandbox.dts          |  15 ++
 arch/sandbox/include/asm/test.h       |   8 +
 board/gdsys/a38x/controlcenterdc.c    |   8 +-
 board/gdsys/p1022/controlcenterd-id.c |  22 +-
 board/samsung/common/board.c          |  10 +-
 board/sandbox/sandbox.c               |   9 +-
 cmd/tpm-common.c                      |   8 +-
 cmd/tpm-v1.c                          | 122 +++++++--
 cmd/tpm-v2.c                          |  78 +++++-
 cmd/tpm_test.c                        | 371 +++++++++++++-------------
 common/Kconfig                        |  35 +++
 common/Makefile                       |  10 +-
 common/cros_ec.c                      |  12 -
 common/spl/spl.c                      |   2 +-
 drivers/clk/clk_vexpress_osc.c        |   4 +-
 drivers/misc/altera_sysid.c           |   2 +-
 drivers/misc/cros_ec.c                | 370 ++++++++++++++++++++++++-
 drivers/misc/cros_ec_sandbox.c        |   2 +-
 drivers/misc/misc_sandbox.c           |   4 +-
 drivers/misc/rockchip-efuse.c         |   2 +-
 drivers/misc/stm32mp_fuse.c           |  12 +
 drivers/mmc/mmc.c                     |  46 ++++
 drivers/mtd/spi/sandbox.c             |  10 +
 drivers/mtd/spi/sf-uclass.c           |   9 +
 drivers/mtd/spi/sf_internal.h         |   3 +
 drivers/mtd/spi/sf_probe.c            |   8 +
 drivers/mtd/spi/spi_flash.c           |  12 +
 drivers/tpm/tpm_tis_lpc.c             |  50 ++--
 drivers/tpm/tpm_tis_sandbox.c         |   6 +
 drivers/video/vidconsole-uclass.c     |   2 +-
 drivers/video/video-uclass.c          |  27 +-
 include/cros_ec.h                     |  89 ++++++
 include/log.h                         |   1 +
 include/misc.h                        |   8 +-
 include/mmc.h                         |  31 +++
 include/os.h                          |  14 +
 include/spi_flash.h                   |  27 ++
 include/tpm-common.h                  |  36 ++-
 include/tpm-v1.h                      |  97 ++++---
 include/tpm-v2.h                      |  49 ++--
 include/video.h                       |   5 +-
 lib/Kconfig                           |   8 +
 lib/Makefile                          |  10 +-
 lib/string.c                          |   1 +
 lib/tpm-common.c                      |  16 +-
 lib/tpm-utils.h                       |  21 +-
 lib/tpm-v1.c                          | 136 +++++-----
 lib/tpm-v2.c                          |  60 +++--
 test/dm/sf.c                          |  55 +++-
 tools/binman/README                   |   6 +
 tools/binman/etype/blob.py            |   2 +-
 tools/binman/etype/u_boot_elf.py      |   5 +-
 55 files changed, 1520 insertions(+), 490 deletions(-)

-- 
2.19.1.930.g4563a0d9d0-goog



More information about the U-Boot mailing list