IMX8 OPTEE

From Variscite Wiki
Revision as of 20:36, 27 October 2022 by Nate (talk | contribs) (Created page with "<!-- Set release according to "release" parameter in URL and use mx8mp-yocto-kirkstone-5.15-2.0.x-v1.0 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- -->...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
DART-MX8M-PLUS OPTEE

OP-TEE Introduction

NXP Platforms are enabled with Open Portable TEE (OP-TEE), which is an open source project which contains a full implementation to make up a complete Trusted Execution Environment.

For more information, please see the following resources from NXP:

Enable OP-TEE with Yocto

To enable OP-TEE, add the following to conf/local.conf:

MACHINE_FEATURES:append += " optee"
DISTRO_FEATURES:append += " optee"
IMAGE_INSTALL:append += " optee-os optee-test"

Then, rebuild the Yocto image and test OP-TEE using the xtest utility.

For more information about how to rebuild the Yocto, follow the steps here: Build Yocto from source code.

OP-TEE Memory Configuration

The DRAM memory size is hardcoded in the optee-firmware. This value needs to be updated according to the memory configuration of your SoM.

To do this, override TEE_CFG_DDR_SIZE in conf/local.conf. For example, override TEE_CFG_DDR_SIZE to 2GB:

TEE_CFG_DDR_SIZE = "0x80000000"