How to build right version ATF+OpteeOS+uboot on i.MX8MQ-EVK ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to build right version ATF+OpteeOS+uboot on i.MX8MQ-EVK ?

跳至解决方案
5,958 次查看
victoryu
Contributor III

How can I build right version ATF + OpteeOS + uboot on i.MX8Mq-EVK board ? I try imx-atf + imx-optee-os + uboot-imx and imx-mkimge, not any branch is run OK. 

标记 (1)
1 解答
5,701 次查看
matthias_staube
Contributor II

Please navigate to the following link and download the archive containing Linux Documentation:

https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW

Inside you will find "i.MX Yocto Project User's Guide". Please follow the instructions to setup a Ubuntu host with the yocto environment. You can then build a SD-Card image and flash it. ATF is required on imx 8 and enabled through imx-atf by default. optee-os requires u-boot SPL to load it, which is used by default with imx8m, as well as optee-os itself. You can try running xtest to see if it is operational. If you use the yocto build, you don't need to run imx-mkimage manually. To be sure, check the output of "bitbake -e <YOUR_IMAGE> | grep IMAGE_INSTALL=.*optee", since packagegroup-fsl-optee must be included in your image, which happens if DISTRO_FEATURES and MACHINE_FEATURES include "optee".

Hope this helps!

在原帖中查看解决方案

0 项奖励
回复
4 回复数
5,702 次查看
matthias_staube
Contributor II

Please navigate to the following link and download the archive containing Linux Documentation:

https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW

Inside you will find "i.MX Yocto Project User's Guide". Please follow the instructions to setup a Ubuntu host with the yocto environment. You can then build a SD-Card image and flash it. ATF is required on imx 8 and enabled through imx-atf by default. optee-os requires u-boot SPL to load it, which is used by default with imx8m, as well as optee-os itself. You can try running xtest to see if it is operational. If you use the yocto build, you don't need to run imx-mkimage manually. To be sure, check the output of "bitbake -e <YOUR_IMAGE> | grep IMAGE_INSTALL=.*optee", since packagegroup-fsl-optee must be included in your image, which happens if DISTRO_FEATURES and MACHINE_FEATURES include "optee".

Hope this helps!

0 项奖励
回复
5,702 次查看
victoryu
Contributor III

Hi  Matthias,

I can't find the document "i.MX Yocto Project User's Guide" in the link https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tool:IMX-SW . Can you give me more actual link ? Thank you.

0 项奖励
回复
5,700 次查看
matthias_staube
Contributor II

This document is included inside an archive containing multiple documents. I cannot, at least to my current knowledge, link to only a specific one. However, if you follow my previous instructions, you should be able to acquire the document. For example, you could try this Archive (I'm not sure which version you would need):

0 项奖励
回复
5,700 次查看
victoryu
Contributor III

Mathias,

    I got it and finished this issue. Thank your help.