[PATCH] mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format
Jerome Forissier
jerome.forissier at linaro.org
Mon Jun 20 22:03:17 CEST 2022
Hi,
On 5/11/22 17:35, Jerome Forissier wrote:
> 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 at linaro.org>
> ---
> arch/arm/mach-rockchip/make_fit_atf.py | 43 +++++++++++++++++++++-----
> 1 file changed, 35 insertions(+), 8 deletions(-)
I have just seen the v2022.07-rc5 announcement. I'm wondering if this
fix would be suitable for inclusion? Or is it too late in the RC cycle?
Thanks,
--
Jerome
More information about the U-Boot
mailing list