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.

Can't build ti sdk rootfs for am57xx evm

Hello,

I trying to build file system from am57xx evm board using instruction 

I successfully made steps mentioned in "Build steps" chapter, but I want to build just rootfs, not Full SDK, so my last command was:

MACHINE=am57xx-evm bitbake tisdk-rootfs-image

After some time I got following error:

| # Compiling dsp_timer.c to obj/tda2xx-evm/c6xdsp/release/dsp_timer.oe66 ...
| /home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/cgt-c6x/bin/cl6x -ppd=obj/tda2xx-evm/c6xdsp/release/.deps/dsp_timer.P -c -qq -pdsw225 -mv6600 --abi=elfabi   -mo -eo.oe66 -ea.se66 -DBUILD_C6XDSP --mem_model:data=far -O2  -Dxdc_bld__profile_release -Dxdc_cfg__header__='obj/tda2xx-evm/c6xdsp/release/edma3_drv_tda2xx_sample_configuro/package/cfg/edma3_drv_bios6_tda2xx_st_sample_pem3.h'  -Dxdc_target_name__=C66 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__vers_1_0_7_2_0_10271 -DBUILD_TDA2XX_DSP    -D_LOCAL_edma3_lld_drv_ -D_LOCAL_edma3_lld_drv_sample_ -D_LOCAL_edma3_lld_rm_ -D_LOCAL_edma3_lld_rm_sample_ -D_BUILD_edma3_lld_drv_ -D_BUILD_edma3_lld_drv_sample_ -D_BUILD_edma3_lld_rm_ -D_BUILD_edma3_lld_rm_sample_       -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/cgt-c6x/include -I../src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/share/ti/ti-sysbios-tree/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/share/ti/ti-xdctools-tree/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/sample -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/sample/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/sample -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/sample/src -fr=obj/tda2xx-evm/c6xdsp/release -fs=obj/tda2xx-evm/c6xdsp/release -fc dsp_timer.c
| /home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/cgt-c6x/bin/cl6x -c -qq -pdsw225 -mv6600 --abi=elfabi   -mo -eo.oe66 -ea.se66 -DBUILD_C6XDSP --mem_model:data=far -O2  -Dxdc_bld__profile_release -Dxdc_cfg__header__='obj/tda2xx-evm/c6xdsp/release/edma3_drv_tda2xx_sample_configuro/package/cfg/edma3_drv_bios6_tda2xx_st_sample_pem3.h'  -Dxdc_target_name__=C66 -Dxdc_target_types__=ti/targets/elf/std.h -Dxdc_bld__vers_1_0_7_2_0_10271 -DBUILD_TDA2XX_DSP    -D_LOCAL_edma3_lld_drv_ -D_LOCAL_edma3_lld_drv_sample_ -D_LOCAL_edma3_lld_rm_ -D_LOCAL_edma3_lld_rm_sample_ -D_BUILD_edma3_lld_drv_ -D_BUILD_edma3_lld_drv_sample_ -D_BUILD_edma3_lld_rm_ -D_BUILD_edma3_lld_rm_sample_       -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/ti/cgt-c6x/include -I../src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/share/ti/ti-sysbios-tree/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/share/ti/ti-xdctools-tree/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/sample -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/rm/sample/src -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/sample -I/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages/ti/sdo/edma3/drv/sample/src -fr=obj/tda2xx-evm/c6xdsp/release -fs=obj/tda2xx-evm/c6xdsp/release -fc dsp_timer.c
| make[2]: *** No rule to make target `obj/tda2xx-evm/c6xdsp/release/edma3_drv_tda2xx_sample_configuro/package/cfg/edma3_drv_bios6_tda2xx_st_sample_pe66.c', needed by `obj/tda2xx-evm/c6xdsp/release/edma3_drv_bios6_tda2xx_st_sample_pe66.oe66'.  Stop.
| make[2]: Leaving directory `/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/examples/edma3_driver/evmtda2xx'
| make[1]: *** [edma3_drv_tda2xx-evm_66_example] Error 2
| make[1]: Leaving directory `/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/packages'
| make: *** [edma3_drv_example_target] Error 2
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/temp/log.do_compile.24528)
ERROR: Task 6316 (/home/aarbuzov/3rd-party/am57xx/tisdk/sources/meta-ti/recipes-bsp/edma3-lld/edma3-lld-rtos_git.bb, do_compile) failed with exit code '1'

Can you suggest what wrong?

Thank you.

  • Hi,

    I will forward this to the software team.
  • Hello Alexey,

    Please check the following thread: e2e.ti.com/.../486257
    Did you download the proper version of CCS?

    Best regards,
    Kemal
  • Hello Kemal,

    I use CCS6.1.1.00022_linux.tar.gz as described in the instruction.
    I tried again from scratch, just in case, and got the same error.
  • I've just build the edma3-lld-rtos from scratch and got no errors.

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-02.00.01.07-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm bitbake edma3-lld-rtos

    You have all the needed tools installed right?
    $ sudo apt-get install git build-essential diffstat texinfo gawk chrpath dos2unix wget unzip g++-multilib socat libsdl1.2-dev xterm doxygen

    Could you attach the log.do_compile which resides here.
    cd /home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/temp/

  • I tried build edma3-lld-rtos by your instruction, unfortunately, without success. The same error have been appear.

    I checked that all required tools are installed:

    $ sudo apt-get install git build-essential diffstat texinfo gawk chrpath dos2unix wget unzip g++-multilib socat libsdl1.2-dev xterm doxygen
    [sudo] password for aarbuzov: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    build-essential is already the newest version.
    chrpath is already the newest version.
    diffstat is already the newest version.
    doxygen is already the newest version.
    g++-multilib is already the newest version.
    gawk is already the newest version.
    texinfo is already the newest version.
    xterm is already the newest version.
    dos2unix is already the newest version.
    socat is already the newest version.
    git is already the newest version.
    libsdl1.2-dev is already the newest version.
    unzip is already the newest version.
    wget is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    

    Here is log.do_compile file you requested (I renamed it to log.do_compile.txt):

    log.do_compile.txt

  • Here the resulted error is "command not found".

    # Invoking configuro...
    chmod a+x maketemp_configuro_cmd_c6xdsp.bat
    ./maketemp_configuro_cmd_c6xdsp.bat
    ./maketemp_configuro_cmd_c6xdsp.bat: 1: ./maketemp_configuro_cmd_c6xdsp.bat: -e: not found
    make[2]: *** [xdc_configuro] Error 127
    make[2]: Leaving directory `/home/aarbuzov/3rd-party/am57xx/tisdk/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/edma3-lld-rtos/2.12.01.22-r2.0.tisdk1/git/examples/edma3_driver/evmtda2xx'

    Have you changed the default shell to bash?

    $ sudo dpkg-reconfigure dash

    (Select "no" when prompted)

  • Thank you Kemal, that thing I forgot to done. Now tisdk rootfs image is successfully built.