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.

How to build user application(Hello world) on evm6670 board in Linux-c6x

Dear all,

1. how to set up a cross compile environment for create ' user application' on evm6670 board? (where can I find these instruction to build user application on evm7760)

2. I downloaded the mcsdk-linux, and build 'hello'  failure, report: "can't found c6x-elf-linux-gcc and c6x-elf-ld in SDK folder, and these file can be replace by c6x-linux-gcc and c6x-linux-ld

thanks for your comments!

  • Hi, Hao,

    1) set up t he linux-c6x build environment including download the CodeSourcery tool chain.

    2) Add the tool chain bin directory to your PATH. (export PATH=$HOME/opt/c6x-gcc/bin:$PATH if tool chain is installed in $HOME/opt/c6x-gcc)

    3) The mk script file to build hello was created before using CodeSourcery tool chain and is obsolete. Please run "c6x-uclinux-gcc hello.c"

    4) In c6670 console, type "ftpget" to get the syntax to download the file from ftp server.

    Rex

  • Dear Rex,

    Thanks for you reply! you are right. I can build this 'hello' application use 'c6-uclinux-gcc'.

    Additionally, I have other questions is below:

    1. According to your reply, I can use c6x-uclinux-*(in $HOME/opt/c6x-gcc) to build our own application with c6x-gcc's library, which is right?

    2. I encounter some errors when I rebuild linux-c6x kernel, my operation is below:

    a)$> make menucofig ($HOME/linux-c6x), change kernel configure to support spi flash

    b)$> make

    #~/linux-c6x/linux-c6x-2.0.0.63/linux-c6x$ make
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      CC      kernel/audit.o
    kernel/audit.c:1273:2: error: #endif without #if

    and I check audit.c and find it is really without #if.

    Could you give some information for above question?

    Thanks~

  • Hi, Hao,

    Could you try using the 2nd method to build as mentioned in the "5. Q: How to change the kernel configuration and build the kernel only" in linux-c6x.org FAQ, http://linux-c6x.org/wiki/index.php/FAQ? Running "make" make not be a good way of doing it, but let me investigate it further.

    Rex