UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer hardik123
Observer
3,832 Views
Registered: ‎07-27-2017

Petalinux 2017.2 Cross Compiling

Jump to solution

we installed peta linux sdk 2017_2.0 on ubuntu 14.04 platform  and successfully  booted kernel  from scratch image on zynq zc702 but now i want to execute an application program on zynq zc702 board through peta linux sdk so application is generated but when i am compiling by make ARCH =arm CROSS_COMPILER = arm-linux-gnueabihf or aarch64-linux-gnu-addr2line
aarch64-linux-gnu-ar
aarch64-linux-gnu-as
aarch64-linux-gnu-c++
aarch64-linux-gnu-c++filt
aarch64-linux-gnu-cpp
aarch64-linux-gnu-elfedit
aarch64-linux-gnu-g++
aarch64-linux-gnu-gcc
aarch64-linux-gnu-gcc-6.2.1
aarch64-linux-gnu-gcc-ar
aarch64-linux-gnu-gcc-nm
aarch64-linux-gnu-gcc-ranlib
aarch64-linux-gnu-gcov
aarch64-linux-gnu-gcov-tool
aarch64-linux-gnu-gdb
aarch64-linux-gnu-gprof
aarch64-linux-gnu-ld
aarch64-linux-gnu-ld.bfd
aarch64-linux-gnu-nm
aarch64-linux-gnu-objcopy
aarch64-linux-gnu-objdump
aarch64-linux-gnu-ranlib
aarch64-linux-gnu-readelf
aarch64-linux-gnu-size
aarch64-linux-gnu-strings
aarch64-linux-gnu-strip

but the out file is still able to give output in ubuntu itself but i am cross compiling for my target zynq board please give me helpful guidance and references as i am newbie to  peta linux environment please help.

 

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
6,472 Views
Registered: ‎10-14-2015

Re: Petalinux 2017.2 Cross Compiling

Jump to solution

why don't you compile your application inside petalinux itself?

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_2/ug1144-petalinux-tools-reference-guide.pdf

read at page 52

 

5 Replies
Explorer
Explorer
6,473 Views
Registered: ‎10-14-2015

Re: Petalinux 2017.2 Cross Compiling

Jump to solution

why don't you compile your application inside petalinux itself?

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_2/ug1144-petalinux-tools-reference-guide.pdf

read at page 52

 

Newbie duanev
Newbie
2,097 Views
Registered: ‎05-04-2018

Re: Petalinux 2017.2 Cross Compiling

Jump to solution
Maybe because petalinux-build takes minutes whereas gcc takes seconds? :)
0 Kudos
Newbie nme31
Newbie
411 Views
Registered: ‎01-14-2019

Re: Petalinux 2017.2 Cross Compiling

Jump to solution

Hello,

I have the same problem.

I try to cross compil my libraries and applications outside petalinux but without succes, because I use libraries for multi target (windows, amd64, arm cortex,...).

Now, I try to compil for arm A53 (ultrascale) but when I compil, I have error messages like "stdio.h undefined".

I use aarch64-linux-gnu-gcc from /opt/Xilinx/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/bin/.

Before run my Makefile, I do source "/opt/Xilinx/SDK/2017.4/settings64.sh".
Someone can help me ?
Thanks

 

0 Kudos
Adventurer
Adventurer
383 Views
Registered: ‎02-13-2016

Re: Petalinux 2017.2 Cross Compiling

Jump to solution

Hello,

Does this apply for installing a new device library?

I have an Intel RealSense Camera that requires installing some libraries to be able to receive the frames from the camera. One way to do this is to cross compile the library source code to make it able to run on the ARM architecture.

Link to Library: https://github.com/IntelRealSense/librealsense

 

0 Kudos
Newbie nme31
Newbie
361 Views
Registered: ‎01-14-2019

Re: Petalinux 2017.2 Cross Compiling

Jump to solution

Hi, 

I have solved my problem with the help of this link : https://github.com/SDU-Embedded/linux_zynq/wiki/Cross-Compiling-for-the-Zynq-7000-Series-Platform

My probleme was that I passed the full path to the aarch64 gnu gcc and it is not necessary after apply the settings64.sh script.

0 Kudos