Can you help me build hello_world.c for a parallella board

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Can you help me build hello_world.c for a parallella board

Postby Dr.BeauWebber » Fri May 31, 2013 2:44 pm

User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Can you help me build hello_world.c for a parallella boa

Postby ysapir » Fri May 31, 2013 3:23 pm

User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Can you help me build hello_world.c for a parallella boa

Postby Dr.BeauWebber » Fri May 31, 2013 3:46 pm

Thanks ysapir,

echo $PATH
/opt/adapteva/esdk/tools/e-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

echo $EPIPHANY_HOME
/opt/adapteva/esdk

ls -l /opt/adapteva
total 4
lrwxrwxrwx 1 root root 15 2013-01-14 19:20 esdk -> esdk.4.13.01.04
drwxr-xr-x 6 linaro linaro 4096 2013-05-31 12:53 esdk.4.13.01.04
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Can you help me build hello_world.c for a parallella boa

Postby ysapir » Fri May 31, 2013 3:48 pm

User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Can you help me build hello_world.c for a parallella boa

Postby Dr.BeauWebber » Fri May 31, 2013 4:01 pm

Thanks ysapir, will do, cheers, beau
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Can you help me build hello_world.c for a parallella boa

Postby Dr.BeauWebber » Fri May 31, 2013 9:13 pm

User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England

Re: Can you help me build hello_world.c for a parallella boa

Postby aolofsson » Sat Jun 01, 2013 1:41 am

You will need to add the following to your .bashrc for the new SDK to work.

export EPIPHANY_HDF=${EPIPHANY_HOME}/bsps/zed_E16G3_512mb/zed_E16G3_512mb.hdf

We will add this line to the INSTALL instructions on the parallella ftp site. Note that the actual HDF used depends on the board you are using.(the above line should be correct for your board).

Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: Can you help me build hello_world.c for a parallella boa

Postby Dr.BeauWebber » Sat Jun 01, 2013 10:26 am

Thanks indeed,
Yes the hello-world.c script now builds and runs fine on all the processors.

In summary :
I got the hello-world scripts from esdk.4.13.04.24_linux_x86_64_armv7l.tgz
from esdk.4.13.04.24\examples\hello_world
The esdk being run on the hardware was upgraded to esdk.4.13.03.30_linux_armv7l.tgz
set run $EPIPHANY_HOME to point to the esdk (if it does not already)
run $EPIPHANY_HOME/setup.csh
Add to .bashrc (and run :) (for the board I am using)
export EPIPHANY_HDF=${EPIPHANY_HOME}/bsps/zed_E16G3_512mb/zed_E16G3_512mb.hdf
cheers,
Beau
User avatar
Dr.BeauWebber
 
Posts: 114
Joined: Mon Dec 17, 2012 4:01 am
Location: England


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests