Page 1 of 1

SDK Cross compilation?

PostPosted: Tue Dec 09, 2014 1:54 am
by burakbardak
Hi,
Can anyone guide me to the right direction for SDK cross compilation? Is there a stable, working version of SDK for cross compilation with simulator?

Regards,
Burak

Re: SDK Cross compilation?

PostPosted: Sun Jan 11, 2015 3:29 am
by sting
I am working on the same problem, first I need a headless version of the parallella and second I don't have the hours it takes to wait for eclipse to do anything useful on the parallella.

I have a remote deployment of c++ apps using the RSE on eclipse. No real effort there.

I tried to build a program that only linked with stdcl and I can't get past the linker telling me that it doesn't understand the

libstdcl.so: file not recognized: File format not recognized I am of course going to work to figure it out but if someone already can do this any help would be appreciated.

I have installed libelf, libevent, and libconfig on the machine that I am building from so I would have access to the headers and libraried to link against. I also installed coprthr to use the headers in /usr/local/browndeer/include and the libraries in /usr/local/browndeer/lib with stdcl and ocl.

Re: SDK Cross compilation?

PostPosted: Sun Jan 11, 2015 3:34 am
by sting
Duh, I compiled the library with the host toolchain instead of the cross toolchain. Now I have to figure out how to do that.

Re: SDK Cross compilation?

PostPosted: Sun Jan 11, 2015 8:27 am
by sting
After I got all of the libraries built using the correct toolchain it seems to work. I have it to the point where I still use the JIT compiler for the epiphany code. Next project will be to compile this on the host and remote deploy it.

Re: SDK Cross compilation?

PostPosted: Sat Jan 17, 2015 7:05 pm
by peteasa
The yocto environment that I am creating will be capable of producing an SDK to run on the build machine. Yocto includes an associated eclipse based IDE for ease of development. It will also produce a full image and a distribution service so that you can update the target with built packages using a package manager - I use smart - bit like apt-get. At the moment I have most of the toolchain built and have proven the toolchain on a board and it is a relatively small step (if you are familar with yocto) to build the SDK. Look at the posts viewtopic.php?f=9&t=414&hilit=yocto if you are interested.

Re: SDK Cross compilation?

PostPosted: Thu Jan 22, 2015 9:21 pm
by peteasa
Just a quick update.. the SDK for cross compilation is now built... so if you clone https://github.com/peteasa/parallella-yoctobuild to a linux build machine and follow the instructions you will get a complete distribution for publishing via a web server, sdk to run on a linux machine for cross compilation, eclipse environment, target image for SD card... If you want to debug the kernel (stap, perf etc) then you can easily add what you need to the image and use smart to update the target or flash another SD card. Its amazing what Yocto provides for free once you have passed the initial learning curve :)

Re: SDK Cross compilation?

PostPosted: Tue Feb 03, 2015 5:33 am
by philipz
Dear #burakbardak,

I have use Docker to build a cross compiler environment for Epiphany development.
Hope to see many to many Epiphany projects.
https://github.com/philipz/Docker_Epiphany_SDK

Re: SDK Cross compilation?

PostPosted: Wed Feb 11, 2015 2:13 am
by burakbardak
Dear all..
Thanks for your replies. I will try the cross compilation and will share my experience.
All the best
Burak