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: 
1,060 Views
Registered: ‎02-12-2018

problems sourcing crosscompilation in ubuntu 16.04

Jump to solution

 

hello,

 

I am using petalinux 2017.4 and SDSoC 2017.4 on Ubuntu 16.4.

 

arm-xilinx is not installed in my system.

 

source /opt/Xilinx/Vivado/2017.4/settings64.sh
source /opt/pkg/petalinux/settings.sh
user@machine:~/$ arm-
arm-linux-gnueabihf-addr2line   arm-linux-gnueabihf-ld.bfd      arm-none-eabi-gcc-6.2.1
arm-linux-gnueabihf-ar          arm-linux-gnueabihf-nm          arm-none-eabi-gcc-ar
arm-linux-gnueabihf-as          arm-linux-gnueabihf-objcopy     arm-none-eabi-gcc-nm
arm-linux-gnueabihf-c++         arm-linux-gnueabihf-objdump     arm-none-eabi-gcc-ranlib
arm-linux-gnueabihf-c++filt     arm-linux-gnueabihf-ranlib      arm-none-eabi-gcov
arm-linux-gnueabihf-cpp         arm-linux-gnueabihf-readelf     arm-none-eabi-gcov-tool
arm-linux-gnueabihf-elfedit     arm-linux-gnueabihf-size        arm-none-eabi-gdb
arm-linux-gnueabihf-g++         arm-linux-gnueabihf-strings     arm-none-eabi-gprof
arm-linux-gnueabihf-gcc         arm-linux-gnueabihf-strip       arm-none-eabi-ld
arm-linux-gnueabihf-gcc-6.2.1   arm-none-eabi-addr2line         arm-none-eabi-ld.bfd
arm-linux-gnueabihf-gcc-ar      arm-none-eabi-ar                arm-none-eabi-nm
arm-linux-gnueabihf-gcc-nm      arm-none-eabi-as                arm-none-eabi-objcopy
arm-linux-gnueabihf-gcc-ranlib  arm-none-eabi-c++               arm-none-eabi-objdump
arm-linux-gnueabihf-gcov        arm-none-eabi-c++filt           arm-none-eabi-ranlib
arm-linux-gnueabihf-gcov-tool   arm-none-eabi-cpp               arm-none-eabi-readelf
arm-linux-gnueabihf-gdb         arm-none-eabi-elfedit           arm-none-eabi-size
arm-linux-gnueabihf-gprof       arm-none-eabi-g++               arm-none-eabi-strings
arm-linux-gnueabihf-ld          arm-none-eabi-gcc               arm-none-eabi-strip

arm-xilinx- is missing.

 

this is my path:

echo $PATH
/opt/pkg/petalinux/tools/linux-i386/petalinux/bin
/opt/pkg/petalinux/tools/common/petalinux/bin
/opt/pkg/petalinux/tools/linux-i386/gcc-arm-none-eabi-r5/bin
/opt/pkg/petalinux/tools/linux-i386/microblaze-xilinx-elf/bin
/opt/pkg/petalinux/tools/linux-i386/microblazeel-xilinx-linux-gnu/bin
/opt/pkg/petalinux/tools/linux-i386/gcc-arm-none-eabi/bin
/opt/pkg/petalinux/tools/linux-i386/gcc-arm-linux-gnueabi/bin
/opt/pkg/petalinux/tools/linux-i386/aarch64-none-elf/bin
/opt/pkg/petalinux/tools/linux-i386/aarch64-linux-gnu/bin
/opt/Xilinx/SDK/2017.4/bin
/opt/Xilinx/SDK/2017.4/gnu/microblaze/lin/bin
/opt/Xilinx/SDK/2017.4/gnu/arm/lin/bin
/opt/Xilinx/SDK/2017.4/gnu/microblaze/linux_toolchain/lin64_le/bin
/opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin
/opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-none-eabi/bin
/opt/Xilinx/SDK/2017.4/gnu/aarch64/lin/aarch64-linux/bin
/opt/Xilinx/SDK/2017.4/gnu/aarch64/lin/aarch64-none/bin
/opt/Xilinx/SDK/2017.4/gnu/armr5/lin/gcc-arm-none-eabi/bin
/opt/Xilinx/SDK/2017.4/tps/lnx64/cmake-3.3.2/bin
/opt/Xilinx/Vivado/2017.4/bin
/opt/Xilinx/DocNav
/opt/Xilinx/SDx/2017.4/bin
/home/m/bin
/home/m/.local/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin

petalinux is installed:

echo $PETALINUX
/opt/pkg/petalinux

here it says that SDx SDK does not install xilinx arm tools. So I run Software Development Kit Standalone WebInstall Client - 2017.4 Lightweight Installer

and installed SDK into /opt/Xilinx2/SDK without program group entry.

Now, I still cannot find arm-xilinx:

/opt/Xilinx2/SDK/2017.4/gnu/armr5/lin/gcc-arm-none-eabi/bin$ tree
.
├── armr5-none-eabi-addr2line
├── armr5-none-eabi-ar
├── armr5-none-eabi-as
├── armr5-none-eabi-c++
├── armr5-none-eabi-c++filt
├── armr5-none-eabi-cpp
├── armr5-none-eabi-elfedit
├── armr5-none-eabi-g++
├── armr5-none-eabi-gcc
├── armr5-none-eabi-gcc-6.2.1
├── armr5-none-eabi-gcc-ar
├── armr5-none-eabi-gcc-nm
├── armr5-none-eabi-gcc-ranlib
├── armr5-none-eabi-gcov
├── armr5-none-eabi-gcov-tool
├── armr5-none-eabi-gdb
├── armr5-none-eabi-gprof
├── armr5-none-eabi-ld
├── armr5-none-eabi-ld.bfd
├── armr5-none-eabi-nm
├── armr5-none-eabi-objcopy
├── armr5-none-eabi-objdump
├── armr5-none-eabi-ranlib
├── armr5-none-eabi-readelf
├── armr5-none-eabi-size
├── armr5-none-eabi-strings
└── armr5-none-eabi-strip

I don't know the path, though. Where can I find arm-xilinx?

 

It still does not work:

make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zybo_config
make: arm-xilinx-linux-gnueabi-gcc: Command not found

 

I did not do this:

bash$ source <Xilinx Tools installation directory>/ISE_DS/settings64.sh

 

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
1,116 Views
Registered: ‎02-07-2018

Re: problems sourcing crosscompilation in ubuntu 16.04

Jump to solution

Hi

Can you please use this command.

 

make CROSS_COMPILE=arm-linux-gnueabihf- zynq_zybo_config

You can find the toolchain in petalinux installed  folder: petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/

 

xhdaravindb40:/aravind_working_dir/tmp/xilinx-zcu102-2017.4 $ ls /proj/petalinux/petalinux-v2017.4_daily_latest/petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/
arm-linux-gnueabihf-addr2line arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gprof arm-linux-gnueabihf-size
arm-linux-gnueabihf-ar arm-linux-gnueabihf-gcc-6.2.1 arm-linux-gnueabihf-ld arm-linux-gnueabihf-strings
..

 

 

 Thanks & Regards

Aravind

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
1,117 Views
Registered: ‎02-07-2018

Re: problems sourcing crosscompilation in ubuntu 16.04

Jump to solution

Hi

Can you please use this command.

 

make CROSS_COMPILE=arm-linux-gnueabihf- zynq_zybo_config

You can find the toolchain in petalinux installed  folder: petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/

 

xhdaravindb40:/aravind_working_dir/tmp/xilinx-zcu102-2017.4 $ ls /proj/petalinux/petalinux-v2017.4_daily_latest/petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/
arm-linux-gnueabihf-addr2line arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gprof arm-linux-gnueabihf-size
arm-linux-gnueabihf-ar arm-linux-gnueabihf-gcc-6.2.1 arm-linux-gnueabihf-ld arm-linux-gnueabihf-strings
..

 

 

 Thanks & Regards

Aravind

0 Kudos