Showing results for 
Search instead for 
Did you mean: 

OpenSTLinux without OP-TEE on stm32mp157c-dk2

Associate II

Hello everyone,

I have the stm32mp157c-dk2 for performance evaluations. Our goal is to check if the CPU/GPU performance is good enough for our next productm which will be used as a GUI frontend.

I built the openstlinux (mickledore) as-is from github successfully.

Now, I want to customize the image for our needs.

As far as I see, Uboot and TF-A are not really optional, so they should be included in the project.

We do not need any "trusted" mechanisms in our project. My goal would be, building an image without optee and using the "optee-core", which is currently used by optee, under linux, thus making a dual-core linux system.

The machine configuration defines here:


At least in the configurations of uboot and tf-a optee doesn't seem to evaluate this option, uboot takes hard-coded in the default config optee as enabled.


My questions:

  • Is it possible to build without optee ?
  • If yes, is the "optee core" usable from kernel as "multicore" system ?
  • If yes, is it just enough to remove optee from BOOTSCHEME_LABELS (wic has to be ofcourse adapted), or are there any other steps/changes necessary ?

Thanks in advance


@marvarobb I did not expect such a fast answer. Thanks for that.

My understanding from your answer:

remove following entries:


MACHINE_FEATURES:append = " ${@bb.utils.contains('BOOTSCHEME_LABELS', 'optee', 'optee', '', d)} " should be removed ?

MACHINE_FEATURES:append = " ${@bb.utils.contains('BOOTSCHEME_LABELS', 'optee', 'optee', '', d)} " in distro file?

and in image also to satisfy optee dependancy:

${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'packagegroup-optee-core', '', d)} 

remove optee from COMBINED_FEATURES?


Hi everyone, 

Here are some other questions and concerns about removal of optee:


As stated in

From this major release OpenSTLinux v5.0.0, only op-tee boot scheme is supported (no more trusted boot scheme)."

op-tee seems to be obligatory. Also according to

the assignment of a peripheral to a specific context seems to be done by optee, here I am not sure, if this is the only way.

Is there any easy way to remove optee in OpenSTLinux (mickledore) without inventing everything again?

It is also ok for me to configure everything with optee boot_scheme, what I really need, is, linux running on both cores. I don't want to reserve one core to optee, where I have no use case for it.


Currently, I am using stm32mp157c-dk2 board.


Thanks for any help