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: Rebuild u-boot, R5 SPL, A72 spl error

Part Number: TDA4VM

Hi,

According to thread https://e2e.ti.com/support/processors/f/791/t/944099 ,I type command "make u-boot-r5 -sj" to rebuild u-boot, R5 SPL, and A72 spl.But some errors occur and I can't find the solution.The errors are 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: /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: No such file or directory
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: /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: No such file or directory
/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,

    I think the tool chains requied are not installed, /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

    Can you change CROSS_COMPILE in top level Rules.mk file to 

    $(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/aarch64-none-linux-gnu-

    and then try building it?

    Rgds,

    Brijesh

  • Hi Brijesh,

    Thanks for your reply!

    The CROSS_COMPILE in my top level Rules.mk file has always been $(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/ aarch64-none-linux-gnu- and  I will attach it below.If tool chains requied are not installed,how should I build it?Can you attach some build commands?

    Regards!

    HJ

  • Hi HJ,

    After installing PSDKLA, could you please run ./sdk-install.sh script to install and setup required components? 

     

    Regards,

    Brijesh

  • Hi Brijesh ,

    I has run ./sdk-install.sh and ./setup.sh .In the thread  https://e2e.ti.com/support/processors/f/791/t/944099 , u-boot-a53 -sj is OK,but  make u-boot-r5 -sj fail.

    Regards!

    HJ

  • Hi HJ,

    Can you please check if you have /home/vmuser/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-none-linux-gnueabihf- in your installed location? 

    If it is available, can you change below in your top level Rules.mk file, at around line no 52?

    export CROSS_COMPILE_ARMV7=$(LINUX_DEVKIT_PATH)/sysroots/x86_64-arago-linux/usr/bin/arm-none-linux-gnueabihf-

    Rgds,

    Brijesh