]> git.baikalelectronics.ru Git - uboot.git/commit
mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 11 May 2022 15:35:14 +0000 (17:35 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 29 Jun 2022 03:32:35 +0000 (11:32 +0800)
commit9578d245bc3ba3b1361d60f3ae1203ea1abfb43d
treed22513a4c56c82098174d4c05caf0e18a4eb3d88
parent0e5dd410ad8636b8966c2114ce344783a16ee8e3
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] https://github.com/OP-TEE/optee_os/commit/5dd1570ac5b0f6563b1a9c074533a19107b8222d
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>
arch/arm/mach-rockchip/make_fit_atf.py