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.

AM623: Build U-boot in an Ubuntu environment, but an error occurs.

Expert 2490 points
Part Number: AM623

Tool/software:

HI All,

I am trying to build U-boot in an Ubuntu environment, but an error occurs.

3.1.1.1. General Information — Processor SDK AM62x Documentation

How to solve the problem.

export UBOOT_DIR=/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/ti-u-boot
export TI_LINUX_FW_DIR=/home/nobu/ti-linux-firmware
export TFA_DIR=/home/nobu/arm-trusted-firmware
export OPTEE_DIR=/home/nobu/optee_os

obu@nobu-VirtualBox:~/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git$ make ARCH=arm CROSS_COMPILE =‘$CROSS_COMPILE_64’ am62x_evm_a53_defconfig O=$UBOOT_DIR/out/a53
make[1]: enter directory ‘/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/ti-u-boot/out/a53’ Enters into.
  GEN Makefile
generated_defconfig:42:warning: override: reassigning to symbol SPL_MAX_SIZE
generated_defconfig:68:warning: override: reassigning to symbol CMD_DDRSS
#
# configuration written to .config
#
make[1]: from directory ‘/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/ti-u-boot/out/a53’ ...
nobu@nobu-VirtualBox:~/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git$ 

obu@nobu-VirtualBox:~/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git$ make ARCH=arm CROSS_COMPILE =‘$CROSS_COMPILE_64’ CC=‘$CC_64’ BL31=$TFA_DIR/build/k3/lite/release/bl31.bin TEE=$OPTEE_DIR/out/arm-plat-k3/core/tee-pager_v2.bin O=$ UBOOT_DIR/out/a53 BINMAN_INDIRS=$TI_LINUX_FW_DIR
make[1]: enter directory ‘/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/ti-u-boot/out/a53’ /bin/sh: 0: 0: 0: 0: 0
/bin/sh: 0: Illegal option - 
/bin/sh: 0: Illegal option --
/bin/sh: 0: Illegal option -r
/bin/sh: 1: -Wall: not found
dirname: no operand found
Run ‘dirname --help’ for more information.
/bin/sh: 0: Illegal option -r 
/bin/sh: 0: Illegal option --
  GEN Makefile
scripts/kconfig/conf --syncconfig Kconfig
/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/scripts/clang-version.sh: 15: --version : not found
Kconfig:65:warning: ‘GCC_VERSION’: number is invalid
  UPD include/config.h
  CFG u-boot.cfg
/bin/sh: 1: -E: not found
make[2]: *** [/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/scripts/Makefile.autoconf :82: u-boot.cfg] error 1
make[1]: *** No rule to make target ‘include/config/auto.conf’ required for ‘include/config/uboot.release’.  Abort.
make[1]: out of directory ‘/home/nobu/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git/ti-u-boot/out/a53’ make.
make: *** [Makefile:177: sub-make] error 2
nobu@nobu-VirtualBox:~/ti-processor-sdk-linux-am62xx-evm-11.00.09.04/board-support/ti-u-boot-2025.01+git$

Best Regards,

Ito