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.

AM62A7: SSDK 9.0 Compilation issues

Part Number: AM62A7

My SSDK is   ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08,

The following questions are expected to be answered.

===================================
Building U-boot for A72
===================================
make -j 8 -C /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4 ARCH=arm am62ax_evm_a53_defconfig \
	O=/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/build/a72
make[1]: 进入目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4”
make -C /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/build/a72 KBUILD_SRC=/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4 \
-f /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/Makefile am62ax_evm_a53_defconfig
make[2]: 进入目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/build/a72”
make -f /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/scripts/Makefile.build obj=scripts/basic
ln -fsn /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4 source
/bin/bash /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/scripts/mkmakefile /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4
  cc -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11   -o scripts/basic/fixdep /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/scripts/basic/fixdep.c   
  GEN     Makefile
In file included from /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/linux-devkit/sysroots/aarch64-oe-linux/usr/include/bits/endian-32.h:35:0,
                 from /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/linux-devkit/sysroots/aarch64-oe-linux/usr/include/bits/endian.h:23,
                 from /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/linux-devkit/sysroots/aarch64-oe-linux/usr/include/endian.h:24,
                 from /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/linux-devkit/sysroots/aarch64-oe-linux/usr/include/sys/types.h:176,
                 from /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/scripts/basic/fixdep.c:92:
/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/linux-devkit/sysroots/aarch64-oe-linux/usr/include/bits/endianness.h:23:10: fatal error: bits/endianness-32.h: 没有那个文件或目录
 #include <bits/endianness-32.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:95: recipe for target 'scripts/basic/fixdep' failed
make[3]: *** [scripts/basic/fixdep] Error 1
/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/Makefile:492: recipe for target 'scripts_basic' failed
make[2]: *** [scripts_basic] Error 2
make[2]: 离开目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/build/a72”
Makefile:177: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: 离开目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4”
makerules/Makefile_u-boot:11: recipe for target 'u-boot-a72' failed
make: *** [u-boot-a72] Error 2

  • When compiling uboot, the following error occurred:

    BINMAN .binman_stamp
    binman: name 'ELFError' is not defined
    /home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/Makefile:1108: recipe for target '.binman_stamp' failed
    make[2]: *** [.binman_stamp] Error 1
    make[2]: 离开目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4/build/a72”
    Makefile:177: recipe for target 'sub-make' failed
    make[1]: *** [sub-make] Error 2
    make[1]: 离开目录“/home/rrx/ti/ti-processor-sdk-linux-edgeai-am62axx-evm-09_00_00_08/board-support/u-boot-2023.04+gitAUTOINC+756ba776d4-g756ba776d4”
    makerules/Makefile_u-boot:11: recipe for target 'u-boot-a72' failed
    make: *** [u-boot-a72] Error 2

  • Hi,

    1. Have you followed the following guide: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_00_00_03/exports/docs/linux/Overview/Top_Level_Makefile.html.

    2. Install dependencies

    3. Export toolchain:

    export PATH="<path-to-psdk>/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin:$PATH"
    export PATH="<path-to-psdk>/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin:$PATH"


    3. Build using top-level makefile:

    make u-boot_clean # To clean
    
    make u-boot # To build

    ~ Judith

  • Hi Judith,

         The problem was resolved when python was installed.

    Best regards,

    Ren

  • Hi Ren,

    Good to know. Sometimes the errors can be very generic or not show the real issue.

    ~ Judith