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.

  • TI Thinks Resolved

How to install gcc compiler in TMS320DM3730 EVM?

I am using TMS320DM3730 EVM board in that boot file-u-boot,Kernel-uImage, rootfs, is there

in that root filesystem-opt-copied the gcc files and installed below commands using

1.# ./instal-sh

permission denied

2. # chmod 777 install-sh

3.ls -l

4.# ./install-sh

then file path not obtained showing

Could you tell me the gcc installation procedure for tms320DM3730 EVM board

  • Hi,

    i am using DM3730 EVM board in that boot file-u-boot,Kernel-uImage, rootfs, is there

    in that root filesystem-opt-copied the gcc files and installed below commands using

    1.# ./instal-sh

    permission denied

    2. # chmod 777 install-sh

    3.ls -l

    4.# ./install-sh

    then file path not obtained showing

    Could you tell me the gcc installation procedure for tms320DM3730 EVM board

  • dm37x-evm login: root
    root@dm37x-evm:~# ls
    root@dm37x-evm:~# vi hello.c

    #include<stdio.h>
    int main()
    {
    printf("Hello World!");
    }
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    root@dm37x-evm:~# gcc hello.c
    -sh: gcc: not found
    root@dm37x-evm:~# ./hello.c
    -sh: ./hello.c: Permission denied
    root@dm37x-evm:~# ./hello
    -sh: ./hello: not found
    root@dm37x-evm:~# ls
    hello.c
    root@dm37x-evm:~# ls
    hello.c
    root@dm37x-evm:~#
  • In reply to Ramachandra Parlapalli:

    Hi Ramachandra,

    DM37x SDK is old, and do not come with native GCC compiler by default. And from this message "gcc: not found", seems that you were not able to add native gcc successful in the DM37x SDK rootfs.

    Starting from TI Linux PSDK1 (01.00.00.00), we have native GCC compiler located at:

    tisdk-rootfs/usr/bin/gcc -> arm-linux-gnueabihf-gcc


    I would suggest you to use cross-compile GCC toolchain, which can be used on your host machine, then to transfer the binary files on the DM37x EVM target.

    If you need to do native compile on your DM37x EVM target, you might try add this manually or rebuild the SDK rootfs with GCC included, but that will be hard task compared with using cross-compile GCC. See also the below e2e threads:

    e2e.ti.com/.../437443
    e2e.ti.com/.../716849

    Regards,
    Pavel



  • In reply to Pavel Botev:

    hi pavel,
    I am Downloaded the arm-linux-gnueabihf-gcc files but how can i add these files. i have done the below method but not worked.
    1.Copied these files in rootfs/opt/arm-linux-gnueabihf-gcc
    2.the ./arm-linux-gnueabihf-gcc it is not installing
    3. other way directly arm-none-eabi-gcc downloaded and ./install.sh used same problem it is not installing
    thanking you,
    Regards,
    Ram

  • In reply to Ramachandra Parlapalli:

    Ram,

    arm-linux-gnueabihf-gcc is for newer kernels (i.e. 3.x, 4.x), while DM37x SDK comes with 2.6.37 kernel and use GCC 4.3 ARM cross-compiler toolchain (build from Arago) and located inside SDK/linux-devkit/ folder. I would suggest you to try to install this GCC 4.3 version on your rootfs. And I think the process is more complex than just copy paste the GCC binary, but unfortunately I do not have a list with the exact steps.

    Again, I want to note that native gcc compiler is not officially supported, and we recommend you to use the cross gcc compiler.

    Regards,
    Pavel



  • In reply to Pavel Botev:

    pavel,
    I downloaded GCC 4.3 Arm Cross-Compiler and i am added in dvsdk_dm3730-evm_4_02_00_06/linux-devkit/gcc-4.3.3 particular path.
    once again SD card prepared and executed the program but same problem, could you tell me SDK version is problem or any other thing,
    thanking you,
    Regards,
    Ram
  • In reply to Ramachandra Parlapalli:

    Ram,

    Try with the latest version v4.03.00.06

    software-dl.ti.com/.../index_FDS.html

    The ARM cross GCC 4.3 compiler is there (SDK/linux-devkit) by default, no need to add it. You can use it right after you install the SDK.

    Check TMS320DM3730_Software_Developers_Guide.pdf, sections

    2.2 Writing your own "Hello World!" application and executing it on the target
    5.1 Setting up cross compilation environment



  • In reply to Pavel Botev:

    Pavel,

    i am downloaded latest version v4.03.00.06 version in ubuntu and installed, But BIN Folder & mksdboot.sh file not created how can i Run mksdboot script installed in DVSDK as show below

    sudo ${DVSDK}/bin/mksdboot.sh --device /dev/sdc --sdk ${DVSDK}

    No path it's showing i am installed in ubuntu 10.04 LTS OS.

    Thank you

    Regards,

    ram.

  • In reply to Ramachandra Parlapalli:

    Ram,

    Let discuss this in your new e2e thread:

    e2e.ti.com/.../654418

    Regards,
    Pavel



  • In reply to Pavel Botev:

    Hi Pavel,

    Recently I downloaded and installed DVSDK4.03 version in SDCARD and  presently it is working,

    But i want GCC Compiler , How can i generate gcc bin file or how to install gcc compiler in DM3730-evm Board

    Thanking you,

    Regards,

    Ram

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.