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.

Compiler/AM4378: Cannot configure and compile U-Boot

Part Number: AM4378

Tool/software: TI C/C++ Compiler

Hi, We have our own board based on the AM4378 evm. We need to make changes to U-Boot. I have made those changes and need to compile it. I believe I have configured the board and am

http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide#Setting_the_tool_chain_path   I keep getting the error "No rule to make target 'am43xx_evm_deconfig' when iI call the compiler with the following command make am433x_evm_deconfig The above line indicates that I should use am433_evm_deconfig

Also I get the error Makefile 487: *** "System not configured - see README" when I issue the command make CROSS_COMPILER  clean or any other CROSS_COMPILER  command. I have run the mkconfig with no errors, etc.

Also does the U-Boot code need to be in another directory structure other than the one that it resides in from the SDK?

Thanks for your help Ed

  • Hello Ed,

    The proper way to build the U-Boot in Processor SDK is to run a make u-boot command from the top SDK directory. The top-level makefile will take the cross-compile paths, configure files for U-Boot and kernel from Rules.make.

    If you check the Makefile you will see that it does these steps:

    $ make -C board-support/linux-4.9.41+gitAUTOINC+e3a80a1c5c-ge3a80a1c5c/ ARCH=arm CROSS_COMPILE=$(pwd)/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- tisdk_am437x-evm_defconfig
    $ make -j 2 -C board-support/linux-4.9.41+gitAUTOINC+e3a80a1c5c-ge3a80a1c5c/ ARCH=arm CROSS_COMPILE=$(pwd)/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- am43x-epos-evm.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb am437x-idk-evm.dtb am437x-idk-pru-excl-uio.dtb

    $ make -j 2 -C board-support/u-boot-* CROSS_COMPILE=$(pwd)/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- am43xx_evm_config
    $ make -j 8 -C board-support/u-boot-* CROSS_COMPILE=$(pwd)/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- DTC=$(pwd)/board-support/linux-4.9.41+gitAUTOINC+e3a80a1c5c-ge3a80a1c5c/scripts/dtc/dtc

    Best regards,
    Kemal

  • Hi Kemal, That did it, I was at too low a directory level. I was missing a package for the compiler, but U-Boot now compiles and get me the data I was looking for, it isn't booting completely, but I can find that.

    Thanks For all of your help.
    Ed