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.

SK-TDA4VM: make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-distclean report error

Part Number: SK-TDA4VM

3.2.1.3.2. Cleaning the Kernel Sources

etastc8@etastc8-VirtualBox:~/KernelSourceCode$ make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-distclean
=====================================
Building the Linux Kernel DTBs
=====================================
make -C /home/etastc8/KernelSourceCode/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7 ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-distclean tisdk_j7-evm_defconfig
make[1]: Entering directory '/home/etastc8/KernelSourceCode/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7'
scripts/Kconfig.include:39: compiler 'aarch64-none-linux-gnu-distcleangcc' not found
scripts/kconfig/Makefile:88: recipe for target 'tisdk_j7-evm_defconfig' failed
make[2]: *** [tisdk_j7-evm_defconfig] Error 1
Makefile:603: recipe for target 'tisdk_j7-evm_defconfig' failed
make[1]: *** [tisdk_j7-evm_defconfig] Error 2
make[1]: Leaving directory '/home/etastc8/KernelSourceCode/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7'
Makefile:222: recipe for target 'linux-dtbs' failed
make: *** [linux-dtbs] Error 2

  • compiler 'aarch64-none-linux-gnu-distcleangcc' not found

    看错误提示找不到编译链,看一下有没有安装?

  • Part Number: SK-TDA4VM

    file:///home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/docs/linux/Foundational_Components_Kernel_Users_Guide.html

    etastc8@etastc8-VirtualBox:~/ti-processor-sdk-linux-j7-evm-08_00_00_08$ export PATH=/home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
    etastc8@etastc8-VirtualBox:~/ti-processor-sdk-linux-j7-evm-08_00_00_08$ make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-distclean
    =====================================
    Building the Linux Kernel DTBs
    =====================================
    make -C /home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7 ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu-distclean tisdk_j7-evm_defconfig
    make[1]: Entering directory '/home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7'
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/kconfig/conf.o
      HOSTCC  scripts/kconfig/confdata.o
      HOSTCC  scripts/kconfig/expr.o
      LEX     scripts/kconfig/lexer.lex.c
      YACC    scripts/kconfig/parser.tab.[ch]
      HOSTCC  scripts/kconfig/lexer.lex.o
      HOSTCC  scripts/kconfig/parser.tab.o
      HOSTCC  scripts/kconfig/preprocess.o
      HOSTCC  scripts/kconfig/symbol.o
      HOSTCC  scripts/kconfig/util.o
      HOSTLD  scripts/kconfig/conf
    scripts/Kconfig.include:39: compiler 'aarch64-none-linux-gnu-distcleangcc' not found
    scripts/kconfig/Makefile:88: recipe for target 'tisdk_j7-evm_defconfig' failed
    make[2]: *** [tisdk_j7-evm_defconfig] Error 1
    Makefile:603: recipe for target 'tisdk_j7-evm_defconfig' failed
    make[1]: *** [tisdk_j7-evm_defconfig] Error 2
    make[1]: Leaving directory '/home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/board-support/linux-5.10.41+gitAUTOINC+4c2eade9f7-g4c2eade9f7'
    Makefile:222: recipe for target 'linux-dtbs' failed
    make: *** [linux-dtbs] Error 2
    etastc8@etastc8-VirtualBox:~/ti-processor-sdk-linux-j7-evm-08_00_00_08$

  • 请在该帖中讨论。

  • file:///home/etastc8/ti-processor-sdk-linux-j7-evm-08_00_00_08/docs/linux/Overview_Top_Level_Makefile.html#top-level-makefile

    Compiler toolchain

    On the download page, you will find links to the recommended compiler toolchains. Download and extract them into your home directory. Note that you have to download both the toolchains for ARMv8 and ARMv7. Make sure to update your PATH to include the path to toolchain.

    where can I to download the toolchains for ARMv8 and ARMv7?