03-03-2009 05:41 AM - edited 03-03-2009 07:06 AM
I have an XUPV2P board with embedded Linux Kernel from xilinx git tree.
I use a root file system, stored on a Compact Flash, with a native gcc.
Is it possible to compile application that uses xilinx IP core (for example Uart, DMA, etc.) or any personal core?
Should I copy library or header fiel on the board to comunicate with the devices mentioned above?
Thanks for any suggestion!
Edit: I try to copy the "executable.elf" from EDK TestApp_Memory on the board and then to execute... the output on console is: Killed
03-03-2009 07:21 AM
You can't use the EDK GNU tools to build an application that runs on Linux.
You need to use tools that build for Linux, such as the ELDK. The libraries that are used are different is my understanding, although I'm no tool expert.
There's really nothing special to do with headers etc... if you use the right tools to generate the binary.
For the ELDK, you can cross compile a hello world, ppc_4xx-gcc --static hello.c -o hello, that is linked statically and no libraries are needed. Without static you'll need to take care of shared libs which is a little more difficult.
Hope that helps,
03-03-2009 07:35 AM
OH! Very interesting! Thank you very much!
And... if I would be able to compile on the board with my native gcc toolchain?
The root file system have a toolchain tha compile a simple HellWorld program, but It doesn't work with TestApp_Memory source for example!
03-03-2009 07:41 AM
You should be able to use the native GNU tools for powerpc on root file system assuming they are built correctly for Linux.
I would start with something simple like helloworld and get them to work, and it sounds like you have.
I'm not sure why they wouldn't work with TestApp_Memory assuming it compiles and links ok. That app may need some library stuff but I would think you'd get a linker error if so.