[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

make examples using the sd image fails

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

make examples using the sd image fails

Postby n1c0la5 » Thu Mar 13, 2014 4:58 pm

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
n1c0la5
 
Posts: 2
Joined: Mon Dec 17, 2012 3:25 am

Re: make examples using the sd image fails

Postby phoyd » Thu Mar 13, 2014 8:22 pm

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
phoyd
 
Posts: 7
Joined: Mon Dec 17, 2012 3:22 am

Re: make examples using the sd image fails

Postby n1c0la5 » Thu Mar 13, 2014 11:02 pm

Thanks Phoyd, that does the trick!

Nicolas
n1c0la5
 
Posts: 2
Joined: Mon Dec 17, 2012 3:25 am

Re: make examples using the sd image fails

Postby shodruk » Fri Mar 14, 2014 11:47 am

Thanks phoyd! :)
Shodruky
shodruk
 
Posts: 464
Joined: Mon Apr 08, 2013 7:03 pm

Re: make examples using the sd image fails

Postby paran » Sat Apr 04, 2015 10:54 pm

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.
paran
 
Posts: 53
Joined: Sat Jun 28, 2014 5:22 pm
Location: Georgetown, Ontario, Canada

Re: make examples using the sd image fails

Postby olajep » Tue Apr 28, 2015 11:00 pm

_start = 266470723;
olajep
 
Posts: 140
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden


Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 11 guests

cron