This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: Errors while building Optee

Part Number: AM6442

Hello,

I am following the instructions listed here: https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/08_02_00_14/exports/docs/linux/Foundational_Components_OPTEE.html to build optee.

The build command is incorrect:

it should be

on GP
$ make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am65x CFG_ARM64_core=y #CROSS_COMPILE64 value is missing -none-

The build process fails further down the path with this error:

 CHK     out/arm-plat-k3/conf.mk
 CHK     out/arm-plat-k3/include/generated/conf.h
 CHK     out/arm-plat-k3/core/include/generated/asm-defines.h
 GEN     out/arm-plat-k3/core/ta_pub_key.c
Traceback (most recent call last):
 File "scripts/pem_to_pub_c.py", line 71, in <module>
   main()
 File "scripts/pem_to_pub_c.py", line 24, in main
   from cryptography.hazmat.backends import default_backend
ModuleNotFoundError: No module named 'cryptography'
make: *** [mk/subdir.mk:183: out/arm-plat-k3/core/ta_pub_key.c] Error 1


I have made sure that the cryptography module is installed on my Ubuntu 20.04 machine. If I open another console window and run "python3 pem_to_pub_c.py", I do not get the import error.

For some reason, the makefile is corrupting the environment.

Help will be appreciated


Regards
  • I was able to solve it changing the export command to:

    export PATH=$PATH:~/ti/ti-processor-sdk-linux-am64xx-evm-08.02.00.14/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

    from

    export PATH=~/ti/ti-processor-sdk-linux-am64xx-evm-08.02.00.14/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH



    Also, the complete command to build optee is:

    make CROSS_COMPILE64=aarch64-none-linux-gnu- CROSS_COMPILE32=arm-none-linux-gnueabihf- PLATFORM=k3-am65x CFG_ARM64_core=y



    Hope this helps someone