[PATCH 00/15] rockchip: Support building ROM files automatically

Simon Glass sjg at chromium.org
Mon Jun 8 21:20:09 CEST 2020


Rockchip-based Chromebooks support booting from SPI flash. It is annoying
to have to manually build the SPI image when the SD image is built
automatically.

This feature is already available for x86 devices, so the existing
mechanism is reused. Briefly, this allows a BUILD_ROM environment variable
to be provided to indicate that any required binary blobs are present and
it is safe to build the ROM.

A new 'mkimage' type is added to binman to support building binaries with
mkimage with a binman definition. This avoids Makefile/shell/Python code
to do the same thing.

This series uses binman to produce a ROM image on two selected
Chromebooks, Bob (RK3399) and Jerry (RK3388).


Simon Glass (15):
  dm: core Fix long line in device_bind_common()
  .gitignore: Ignore Python 3 cache directories
  binman: cbfs: Fix IFWI typo
  binman: Correct the search patch for pylibfdt
  binman: Add support for calling mkimage
  binman: Fix a few typos in the entry docs
  binman: Adjust pylibfdt for incremental build
  x86: rockchip: Change how selection of ROMs works
  rockchip: Allow Bob to use SPI boot
  Allow building .rom files for non-x86 boards
  rockchip: jerry: Add serial support
  rockchip: bob: Support SPI-flash booting
  rockchip: Allow including rockchip dtsi on 32-bit machines
  rockchip: Enable building a SPI ROM image on jerry
  rockchip: Enable building a SPI ROM image on bob

 .gitignore                            |  3 ++
 Kconfig                               | 18 +++++++-
 Makefile                              | 30 ++++++++++---
 arch/Kconfig                          |  1 +
 arch/arm/dts/rk3288-u-boot.dtsi       | 24 +++++++++++
 arch/arm/dts/rk3399-gru-u-boot.dtsi   |  4 ++
 arch/arm/dts/rk3399-gru.dtsi          |  2 +-
 arch/arm/dts/rk3399-u-boot.dtsi       | 27 ++++++++++++
 arch/arm/dts/rockchip-u-boot.dtsi     | 10 ++++-
 arch/arm/mach-rockchip/rk3288/Kconfig |  1 +
 arch/arm/mach-rockchip/rk3399/Kconfig |  1 +
 arch/arm/mach-rockchip/spl.c          |  3 +-
 arch/x86/Kconfig                      |  4 ++
 configs/chromebook_bob_defconfig      |  4 +-
 configs/chromebook_jerry_defconfig    |  1 +
 drivers/core/device.c                 |  3 +-
 scripts/dtc/pylibfdt/Makefile         |  3 ++
 tools/binman/README.entries           | 27 +++++++++++-
 tools/binman/etype/_testing.py        |  5 +++
 tools/binman/etype/cbfs.py            |  2 +-
 tools/binman/etype/mkimage.py         | 62 +++++++++++++++++++++++++++
 tools/binman/ftest.py                 |  7 +++
 tools/binman/main.py                  |  2 +-
 tools/binman/test/156_mkimage.dts     | 23 ++++++++++
 24 files changed, 252 insertions(+), 15 deletions(-)
 create mode 100644 tools/binman/etype/mkimage.py
 create mode 100644 tools/binman/test/156_mkimage.dts

-- 
2.27.0.278.ge193c7cf3a9-goog



More information about the U-Boot mailing list