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.

TDA4VM: build u-boot_ R5 SPL error

Part Number: TDA4VM

Hi,

In the thread  https://e2e.ti.com/support/processors/f/791/t/944099 ,make u-boot-a53 -sj is OK,make u-boot-r5 -sj fail and the log is shown below.Can you help me solve it?

vmuser@ubuntu:~/ti-processor-sdk-linux-automotive-j7-evm-07_00_00$ sudo make u-boot-r5 -sj
[sudo] password for vmuser:
===================================
Building U-boot for R5
===================================
make[2]: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: Command not found
/bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/binutils-version.sh: line 18: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-as: No such file or directory
/bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed
make[3]: *** [u-boot.cfg] Error 1
make[2]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
Makefile:167: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:140: recipe for target 'u-boot-r5' failed
make: *** [u-boot-r5] Error 2

Regards!

HJ

  • Hi HJ,

    You could just use make 'u-boot', it will uboot components for both A72 and R5f.

    Rgds,

    Brijesh

  • Hi Brijesh,

    make u-boot causes the same error.Is there any other solution?

    vmuser@ubuntu:~/ti-processor-sdk-linux-automotive-j7-evm-07_00_00$ sudo make u-boot
    [sudo] password for vmuser:
    ===================================
    Building U-boot for A53
    ===================================
    make -j 4 -C /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-* CROSS_COMPILE=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu- \
    j721e_evm_a72_config O=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53
    make[1]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make[2]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53'
    GEN ./Makefile
    #
    # configuration written to .config
    #
    make[2]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53'
    make[1]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make -j 4 -C /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-* CROSS_COMPILE=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu- \
    CONFIG_MKIMAGE_DTC_PATH=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53/scripts/dtc/dtc \
    ATF=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/prebuilt-images/bl31.bin TEE=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/prebuilt-images/bl32.bin \
    O=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53
    make[1]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make[2]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53'
    GEN ./Makefile
    scripts/kconfig/conf --syncconfig Kconfig
    CHK include/config.h
    GEN include/autoconf.mk.dep
    CFG u-boot.cfg
    CFG spl/u-boot.cfg
    GEN include/autoconf.mk
    GEN spl/include/autoconf.mk
    CHK include/config/uboot.release
    CHK include/generated/timestamp_autogenerated.h
    GEN ./Makefile
    UPD include/generated/timestamp_autogenerated.h
    Using /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3 as source for U-Boot
    CHK include/generated/version_autogenerated.h
    CHK include/generated/generic-asm-offsets.h
    CHK include/generated/asm-offsets.h
    HOSTCC tools/mkenvimage.o
    HOSTCC tools/fit_image.o
    HOSTCC tools/image-host.o
    HOSTCC tools/dumpimage.o
    HOSTCC tools/mkimage.o
    HOSTLD tools/mkenvimage
    HOSTLD tools/dumpimage
    HOSTLD tools/mkimage
    CC arch/arm/cpu/armv8/fwcall.o
    LD arch/arm/cpu/armv8/built-in.o
    CC common/main.o
    CC cmd/version.o
    CC drivers/fastboot/fb_getvar.o
    LD common/built-in.o
    LD cmd/built-in.o
    LD drivers/fastboot/built-in.o
    LD drivers/built-in.o
    CC lib/smbios.o
    CC lib/display_options.o
    AS lib/efi_loader/efi_crt0.o
    CC lib/efi_loader/helloworld.o
    CC lib/efi_loader/efi_reloc.o
    CC lib/efi_loader/efi_freestanding.o
    LD lib/efi_loader/helloworld_efi.so
    OBJCOPY lib/efi_loader/helloworld.efi
    LD lib/built-in.o
    LD u-boot
    OBJCOPY u-boot-nodtb.bin
    OBJCOPY u-boot.srec
    SYM u-boot.sym
    start=$(/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x80800000 $start $end
    MKIMAGE u-boot.img
    CAT u-boot-dtb.bin
    MKIMAGE u-boot-dtb.img
    COPY u-boot.bin
    CC spl/arch/arm/cpu/armv8/fwcall.o
    CC spl/common/spl/spl.o
    LD spl/arch/arm/cpu/armv8/built-in.o
    LD spl/common/spl/built-in.o
    CC spl/lib/display_options.o
    /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/tools/k3_fit_atf.sh \
    spl/dts/k3-j721e-common-proc-board.dtb spl/dts/k3-j721e-tps65917-proc-board.dtb > u-boot-spl-k3.its
    MKIMAGE spl/u-boot-spl.multidtb.fit
    LD spl/lib/built-in.o
    LD spl/u-boot-spl
    OBJCOPY spl/u-boot-spl-nodtb.bin
    MKIMAGE tispl.bin
    CAT spl/u-boot-spl-dtb.bin
    COPY spl/u-boot-spl.bin
    FIT description: Configuration to load ATF and SPL
    Created: Mon Oct 26 21:04:25 2020
    Image 0 (atf)
    Description: ARM Trusted Firmware
    Created: Mon Oct 26 21:04:25 2020
    Type: Firmware
    Compression: uncompressed
    Data Size: 39896 Bytes = 38.96 KiB = 0.04 MiB
    Architecture: AArch64
    OS: ARM Trusted Firmware
    Load Address: 0x70000000
    Image 1 (tee)
    Description: OPTEE
    Created: Mon Oct 26 21:04:25 2020
    Type: Trusted Execution Environment Image
    Compression: uncompressed
    Data Size: 378648 Bytes = 369.77 KiB = 0.36 MiB
    Image 2 (spl)
    Description: SPL (64-bit)
    Created: Mon Oct 26 21:04:25 2020
    Type: Standalone Program
    Compression: uncompressed
    Data Size: 245016 Bytes = 239.27 KiB = 0.23 MiB
    Architecture: AArch64
    Load Address: 0x80080000
    Entry Point: 0x80080000
    Image 3 (k3-j721e-common-proc-board.dtb)
    Description: k3-j721e-common-proc-board
    Created: Mon Oct 26 21:04:25 2020
    Type: Flat Device Tree
    Compression: uncompressed
    Data Size: 10489 Bytes = 10.24 KiB = 0.01 MiB
    Architecture: ARM
    Image 4 (k3-j721e-tps65917-proc-board.dtb)
    Description: k3-j721e-tps65917-proc-board
    Created: Mon Oct 26 21:04:25 2020
    Type: Flat Device Tree
    Compression: uncompressed
    Data Size: 11502 Bytes = 11.23 KiB = 0.01 MiB
    Architecture: ARM
    Default Configuration: 'k3-j721e-common-proc-board.dtb'
    Configuration 0 (k3-j721e-common-proc-board.dtb)
    Description: k3-j721e-common-proc-board
    Kernel: unavailable
    Firmware: atf
    FDT: k3-j721e-common-proc-board.dtb
    Loadables: tee
    spl
    Configuration 1 (k3-j721e-tps65917-proc-board.dtb)
    Description: k3-j721e-tps65917-proc-board
    Kernel: unavailable
    Firmware: atf
    FDT: k3-j721e-tps65917-proc-board.dtb
    Loadables: tee
    spl
    CFGCHK u-boot.cfg
    make[2]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/a53'
    make[1]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    ===================================
    Building U-boot for R5
    ===================================
    make -j 4 -C /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-* CROSS_COMPILE=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- \
    j721e_evm_r5_config O=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5
    make[1]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make[2]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5'
    GEN ./Makefile
    #
    # configuration written to .config
    #
    make[2]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5'
    make[1]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make -j 4 -C /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-* CROSS_COMPILE=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- \
    O=/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5
    make[1]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    make[2]: Entering directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5'
    make[2]: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: Command not found
    /bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
    dirname: missing operand
    Try 'dirname --help' for more information.
    GEN ./Makefile
    scripts/kconfig/conf --syncconfig Kconfig
    /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/binutils-version.sh: line 18: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-as: No such file or directory
    CHK include/config.h
    CFG u-boot.cfg
    /bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
    GEN include/autoconf.mk.dep
    /bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
    /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed
    make[3]: *** [u-boot.cfg] Error 1
    make[3]: *** Waiting for unfinished jobs....
    /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/Makefile.autoconf:48: recipe for target 'include/autoconf.mk.dep' failed
    make[3]: *** [include/autoconf.mk.dep] Error 1
    CFG spl/u-boot.cfg
    /bin/sh: 1: /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc: not found
    /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/scripts/Makefile.autoconf:80: recipe for target 'spl/u-boot.cfg' failed
    make[3]: *** [spl/u-boot.cfg] Error 1
    make[2]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
    make[2]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot_build/r5'
    Makefile:167: recipe for target 'sub-make' failed
    make[1]: *** [sub-make] Error 2
    make[1]: Leaving directory '/home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3'
    Makefile:140: recipe for target 'u-boot-r5' failed
    make: *** [u-boot-r5] Error 2

    Regards!

    HJ

  • Hi HJ,

    I think this thread is duplicate of  thread? 

    Please see if this can also be closed.

    Rgds,

    Brijesh