[PATCH v1 0/5] rockchip: Support OP-TEE binaries in ARM FIT images

Alex Bee knaerzche at gmail.com
Sun Jul 16 10:10:29 CEST 2023


This adds support for OP-TEE binaries to Rockchip's ARM FIT image 
generation by binman.

Currently there is an extra (and outdated) rockchip-optee.dtsi which can
create an u-boot.itb which can also hold the OP-TEE binary. It has to be
included manually in the respective SoC-specific device trees. But even if
that is done, it won't be merged in rockchip-u-boot.bin, which aims to be 
platform-consistent.
The bootable FIT image must therefore currently be created manually.

This will be done automatically with this patch-set and a single
u-boot-rockchip.bin file with an bootable FIT image containing all
binaries will be generated.

Additionally this series adds a configuration option which has to be
set if a vendor-provided OP-TEE binary is used. This is required as those
use a different calling convention. 
For RK3036, RK3128 and RK3288 SoCs this currently the only option to get an
TEE, as no upstream implementation exists for them.
Those binaries can be found at [1]

There are also some adaptions for RK322x in order to successfully use that
FIT image and some changes to the documenation.

This series has been tested on RK3229 (both vendor and upstream OP-TEE) and
RK3288 (vendor implementation only).

[1] https://github.com/rockchip-linux/rkbin

Alex Bee (5):
  rockchip: Support OP-TEE for ARM in FIT images created by binman
  evb-rk3229_defconfig: Drop SPL_STACK_R_MALLOC_SIMPLE_LEN
  rockchip: RK322x: select SPL_OPTEE_IMAGE
  rockchip: evb_rk3229: Update/fix README
  optee: Support Rockchip OPTEE binaries

 arch/arm/dts/rk3288-u-boot.dtsi   |  1 -
 arch/arm/dts/rockchip-optee.dtsi  | 64 ---------------------------
 arch/arm/dts/rockchip-u-boot.dtsi | 38 ++++++++++++++--
 arch/arm/mach-rockchip/Kconfig    | 10 +++++
 board/rockchip/evb_rk3229/README  | 72 ++++++++++++++++++++-----------
 common/spl/spl_optee.S            |  4 ++
 configs/evb-rk3229_defconfig      |  1 -
 7 files changed, 97 insertions(+), 93 deletions(-)
 delete mode 100644 arch/arm/dts/rockchip-optee.dtsi


base-commit: e6e67bb9e0a40f3eb3c87d16935192821987c3e0
-- 
2.41.0



More information about the U-Boot mailing list