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.

PROCESSOR-SDK-AM62A: Getting Makefile error while Building OP-TEE

Part Number: PROCESSOR-SDK-AM62A


Hello Experts, 
I am using SDK 08_06_00_45, 
Building the OP-TEE using the link 3.10. OP-TEE is giving the error as shown

$ make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am62ax CFG_ARM64_core=y

=============================
Building SYSFW Image
=============================
make[1]: Entering directory '/home/ubuntu/projects/TI/sdk/sdk_am62ax/sdk1/board-support/k3-image-gen-2022.01'
Makefile:48: soc/NULL/Makefile: No such file or directory
make[1]: *** No rule to make target 'soc/NULL/Makefile'. Stop.
make[1]: Leaving directory '/home/ubuntu/projects/TI/sdk/sdk_am62ax/sdk1/board-support/k3-image-gen-2022.01'
make: *** [Makefile:377: sysfw-image] Error 2

May I know how to resolve it?

Thanks 
Pranshu

  • Building the OP-TEE using the link 3.10. OP-TEE is giving the error as shown

    Which folder did you run the optee build "$ make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am62ax CFG_ARM64_core=y" from?
    Best,
    -Hong

  • Hello,

    I am running the Optee build from where I extracted the TI SDK. 
    TI SDK I downloaded from TI sdk

    The contents are: 

    sdk1$ ls -ltr
    total 695420
    -rwxr-xr-x  1 ubuntu ubuntu      5842 Feb 27 22:59 setup.sh
    drwxr-xr-x  6 ubuntu ubuntu      4096 Feb 28 00:28 example-applications
    drwxr-xr-x  3 ubuntu ubuntu      4096 Feb 28 00:28 docs
    -rwxr-xr-x  1 ubuntu ubuntu 712038307 Feb 28 00:41 linux-devkit.sh
    drwxr-xr-x  2 ubuntu ubuntu      4096 Feb 28 01:04 filesystem
    drwxrwxr-x  3 ubuntu ubuntu      4096 Jun 19 09:59 linux-devkit
    -rwxr-xr-x  1 ubuntu ubuntu      1558 Jun 19 09:59 Rules.make
    drwxr-xr-x  4 ubuntu ubuntu      4096 Jun 19 09:59 bin
    drwxr-xr-x 11 ubuntu ubuntu      4096 Jun 23 16:04 board-support
    -rwxr-xr-x  1 ubuntu ubuntu     25214 Jul  5 13:03 Makefile

    Regards
    Pranshu

  • Hello,
    It is possible to
    - either use the pre-built optee binary (bl32.bin) in SDK prebuilt-images folder
    software-dl.ti.com/.../UG-General-Info.html
    - or build the optee binary as neccesary
    software-dl.ti.com/.../Foundational_Components_OPTEE.html
    where "make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am62x CFG_ARM64_core=y" needs to be launched directly from the optee source folder, i.e. following "Getting the OP-TEE Source Code"
    Best,
    -Hong

  • Hello, 
    I have tried building the optee binary  from the optee source folder,

    But I am getting this error 

    ubuntu@IND9PR8T72-L:~/projects/TI/sdk/optee/optee_os$ ls
    CHANGELOG.md  core  keys  ldelf  lib  LICENSE  MAINTAINERS  Makefile  mk  out  README.md  scripts  ta  typedefs.checkpatch
    
    optee_os$ make CROSS_COMPILE64=aarch64-none-linux-gnu- PLATFORM=k3-am62x CFG_ARM64_core=y
      GEN     out/arm-plat-k3/core/include/generated/arm32_sysreg.h
      GEN     out/arm-plat-k3/core/include/generated/arm32_sysreg.S
      GEN     out/arm-plat-k3/core/include/generated/arm32_gicv3_sysreg.h
      GEN     out/arm-plat-k3/core/include/generated/arm32_gicv3_sysreg.S
      CHK     out/arm-plat-k3/conf.mk
      UPD     out/arm-plat-k3/conf.mk
      CHK     out/arm-plat-k3/include/generated/conf.h
      UPD     out/arm-plat-k3/include/generated/conf.h
      CC      out/arm-plat-k3/core/include/generated/.asm-defines.s
    bash: aarch64-none-linux-gnu-gcc: command not found
    make: *** [mk/compile.mk:252: out/arm-plat-k3/core/include/generated/.asm-defines.s] Error 127
    

    Regards 
    Pranshu

  • Hello,
    The error points to the tool chain "CROSS_COMPILE64=aarch64-none-linux-gnu-" is NOT setup when you launched optee build.
    It is the same tool chain for building A53 u-boot, Linux... and there're references in SDK online user guide on how to setup tool chain...
    Best,
    -Hong