Skip to content

This repo contains files for OP-TEE user application integration, in Embedded Linux development for Yocto distribution.

License

Notifications You must be signed in to change notification settings

l-krstic/optee-examples-yocto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optee-examples-yocto

· Project is being done on i.MX8M Mini. Yocto version is Hardknott 5.10.72. Host system is running Ubuntu 20.04, together with Linux kernel 5.15.

· Required changes in conf/local.conf are:

TEE_CFG_DDR_SIZE = "0x80000000"
DISTRO_FEATURES_append += " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
MACHINE_FEATURES:append = " optee"
DISTRO_FEATURES:append = " optee"
IMAGE_INSTALL:append = " \
        optee-os \
        optee-client \
        optee-test \
        optee-examples \
"

· After creating your own layer, add it in conf/bblayers.conf, and copy all files from meta-master/

· This layer contains .bbappend file for optee-os, together with patch that bypass python module errors in script sign_encrypt.py.

· Also, this layer contains optee-examples recipe, and files required to build it. This recipe also requires a patch, that passes ldflags during linking phase.

  1. optee-examples_3.11.0.bb with optee-examples.inc is recipe that builds examples from git.

  2. optee.inc is used for setting up build system of optee-examples.

  3. optee-examples_%.bbappend is used when someone wants to build application, beside those on git.

· Update path to external sources, according to your system, in file optee-examples_%.bbappend !

IMPORTANT

When building examples, ther are signed using default key:

optee-os/keys/default_ta.pem

NEVER deploy an optee_os binary with this key in production. Instead, REPLACE this key as soon as possible with a public key and keep the private part of the key offline, preferably on an HSM.