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.

CCS/AM3358: U-boot build error

Part Number: AM3358

Tool/software: Code Composer Studio

Hello 

We purchase the am335x starter kit to develop and review the CPU am335x and build our development environment.

I'm watching the Linux board porting series video to build a development environment.

While building u-boot I encountered the following error:

ln: failed to create symbolic link ‘arch/CROSS_COMPILE=arm-arago-linux-gnueabi-u-boot-bin/include/asm/arch’: No such file or directory



I wonder what the solution is.

I would appreciate it if you let me know.
please answer about my question.

Thank you.

  • Hi user4730082,

    Seems your cross compiler is not correct. It should be ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    Regards,
    Pavel


  • Hi Pavel

    Thank you for your help.
    After changing the path and compiling, the error shown below is generated.
    What should I modify in this section?

    I would really appreciate it if you let me know.
    Thank you in advance.

    Regards,

    Yu-Rim.

  • Yu-Rim,

    Seems like you still have issues with your PATH variable. Please check what you have in CCS -> Project explorer -> u-boot-2019.01 -> Properties -> C/C++ Build -> Environment


    See below what I have on my side:


    And I am able to build u-boot.bin file successfully:



    I also made some alignment to the latest u-boot user guide:

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_U-Boot.html#u-boot-user-s-guide

    You can try to build u-boot in console mode first (as this user guide explains) to get the main concept. Then you can proceed with building u-boot under CCS. The differences are:

    1. In CCS9 we have Build Target, while in CCS5 we have Make Target

    2. The first build target should be am335x_evm_defconfig, instead of am335x_evm_config

    3. You can put additional command, O=am335x_evm, thus the result of all building steps will be placed in u-boot-2019.01/am35x_evm/ folder


    You can also create additional build targets, like "u-boot.img" or "u-boot", depending on your needs.

    Regards,
    Pavel