[RFC PATCH 0/8] migrate u-boot-rockchip.bin to binman and generate an image for SPI

Quentin Schulz foss+uboot at 0leil.net
Fri Jul 15 17:36:47 CEST 2022

From: Quentin Schulz <quentin.schulz at theobroma-systems.com>

This migrates the generation of u-boot-rockchip.bin from Makefile to binman
completely. There is therefore no idbloader.img anymore as it is created on
the fly by binman.

This also adds support for generating the same kind of image than
u-boot-rockchip.bin but for SPI flashes (specifically, a different image
type generated by mkimage is necessary, in addition to a different
offset in the storage medium).

This has been tested on Puma RK3399 with patches soon to be sent to the

This is a pretty big change and would like people having access to
Rockchip devices to extensively test those (especially those Aarch32
devices I don't have access to) whenever possible. Please also provide
feedback/patches on missing docs updates.

This also helped removing the hardcoded value for the u-boot.itb offset
in u-boot-rockchip.bin which prevented Puma SoM to be migrated to it.


Quentin Schulz (8):
  rockchip: generate idbloader.img content for u-boot-rockchip.bin with
    binman for ARM
  rockchip: generate u-boot-rockchip.bin with binman for ARM64 boards
  rockchip: remove unneeded CONFIG_SPL_PAD_TO
  rockchip: pad u-boot-rockchip.bin correctly
  rockchip: simplify binman image dependencies addition to INPUTS
  rockchip: allow to build SPI images even without HAS_ROM option
  binman: add support for skipping file concatenation for mkimage
  rockchip: add u-boot-rockchip-spi.bin image for booting from SPI-NOR

 Makefile                          | 39 ++++--------------------
 arch/arm/Kconfig                  |  2 +-
 arch/arm/dts/rk3288-u-boot.dtsi   |  2 +-
 arch/arm/dts/rk3399-u-boot.dtsi   |  2 +-
 arch/arm/dts/rockchip-u-boot.dtsi | 50 +++++++++++++++++++++++++++++--
 arch/arm/mach-rockchip/Kconfig    |  6 ++--
 doc/board/rockchip/rockchip.rst   |  2 +-
 include/configs/rockchip-common.h |  2 --
 tools/binman/entries.rst          | 22 ++++++++++++++
 tools/binman/etype/mkimage.py     | 41 ++++++++++++++++++++++---
 10 files changed, 118 insertions(+), 50 deletions(-)


More information about the U-Boot mailing list