u-boot/arch/arm/mach-rockchip
Jerome Forissier 348310233d mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format
This commit adds support for the OP-TEE 'tee.bin' v1 format for Rockchip
platforms.

Since OP-TEE 3.8.0, tee.bin contains meta-data in a proprietary format
in addition to the ELF data. They are essential information for proper
initialization of the TEE core, such as the size of the memory region
covered by the TEE or a compact representation of runtime relocation
data when ASLR is enabled.

With OP-TEE 3.8.0 onwards, 'tee.elf' MUST NOT be used and 'tee.bin'
MUST be used instead. Ignoring this recommendation can lead to crashes
as described in [3].

Link: [1] 5dd1570ac5
Link: [2] https://github.com/OP-TEE/optee_os/blob/3.17.0/scripts/gen_tee_bin.py#L275-L302
Link: [3] https://github.com/OP-TEE/optee_os/issues/4542
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
2022-06-29 11:32:35 +08:00
..
px30 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk322x rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3036 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3066 rockchip: rk3066: add Rikomagic MK808 board 2022-04-18 11:25:13 +08:00
rk3128 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3188 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3288 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3308 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3328 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3368 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3399 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3568 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rv1108 dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
board.c rockchip: board: change condition board_usb_init() in function 2022-06-29 11:28:16 +08:00
boot_mode.c rockchip: boot_mode: fix fastboot command 2021-12-24 15:17:51 +08:00
bootrom.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
cpu-info.c rockchip: Separate the reset cause from display cpuinfo 2020-07-22 20:55:13 +08:00
Kconfig rockchip: rk3066: add core support 2022-04-18 11:25:13 +08:00
make_fit_atf.py mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format 2022-06-29 11:32:35 +08:00
Makefile rockchip: rk3066: add core support 2022-04-18 11:25:13 +08:00
misc.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
px30-board-tpl.c Remove #include <version.h> from files which do not need it 2021-09-17 12:10:44 -04:00
rk3036-board-spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
sdram.c lib: optee: remove the duplicate CONFIG_OPTEE 2021-10-05 08:44:48 -04:00
spl-boot-order.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
tpl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
u-boot-tpl-v8.lds rockchip: add u-boot-tpl-v8.lds 2019-05-08 17:34:12 +08:00
u-boot-tpl.lds rockchip: rk322x: add tpl support 2019-05-08 17:34:12 +08:00