[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - make examples using the sd image fails
Page 1 of 1

make examples using the sd image fails

PostPosted: Thu Mar 13, 2014 4:58 pm
by n1c0la5
I've created a SD card using ftp://ftp.parallella.org/sd_images/ubun ... 6g1.img.gz and the instructions from http://www.parallella.org/create-sdcard/. I log in via ssh as user linaro. When i go to the examples and run make it gives me an error about an undefined reference to e_reset_core.

linaro-nano:~> cd Parallella/parallella-examples/mandelbrot/
linaro-nano:~/Parallella/parallella-examples/mandelbrot> ls
Makefile README.md epiphany.c host.c run.sh shared_data.h
linaro-nano:~/Parallella/parallella-examples/mandelbrot> make
gcc -O3 host.c -o main -I /opt/adapteva/esdk/tools/host/include -L /opt/adapteva/esdk/tools/host/lib -le-hal -lrt
/tmp/ccQCgNoN.o: In function `main':
host.c:(.text.startup+0x100): undefined reference to `e_reset_core'
collect2: error: ld returned 1 exit status
make: *** [main] Error 1

Is there anything else i need to do?
I've also tried creating the SD card using step 2, ftp://ftp.parallella.org/sd_images/ubun ... tfs.tar.gz for rootfs and https://github.com/parallella/parallell ... .02.06.tgz , that gives me the same result.

Nicolas

Re: make examples using the sd image fails

PostPosted: Thu Mar 13, 2014 8:22 pm
by phoyd
Apparently, there has been a change in the API recently and some of the examples aren't adapted to it yet. The mandelbrot example from git is more up to date and runs on my board. If you look at the changes in the last revision, you'll notice that the e_reset_core() call is gone and has been replaced by e_reset_group():

https://github.com/parallella/parallell ... dc01ed86a5

Re: make examples using the sd image fails

PostPosted: Thu Mar 13, 2014 11:02 pm
by n1c0la5
Thanks Phoyd, that does the trick!

Nicolas

Re: make examples using the sd image fails

PostPosted: Fri Mar 14, 2014 11:47 am
by shodruk
Thanks phoyd! :)

Re: make examples using the sd image fails

PostPosted: Sat Apr 04, 2015 10:54 pm
by paran
Hi,
Can you please elaborate more on how and what changes has to be made to make mandelbrot and aoebench work. I am getting the following error message :

parallella@parallella:~/parallella-examples$ cd aobench
parallella@parallella:~/parallella-examples/aobench$ ls
Makefile README.md epiphany.c host.c img run.sh shared_data.h
parallella@parallella:~/parallella-examples/aobench$ make
gcc -O3 host.c -o ao -I /opt/adapteva/esdk/tools/host/include -L /opt/adapteva/esdk/tools/host/lib -le-hal -lrt
/tmp/ccTJDLmS.o: In function `main':
host.c:(.text.startup+0x1a2): undefined reference to `e_load_group'
collect2: error: ld returned 1 exit status
make: *** [ao] Error 1
parallella@parallella:~/parallella-examples/aobench$

Thanks.

Re: make examples using the sd image fails

PostPosted: Tue Apr 28, 2015 11:00 pm
by olajep