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!

Reply

zedboard BSP build fails out of the box

Observer
Posts: 26
Registered: ‎02-02-2012

zedboard BSP build fails out of the box

Hello,

 

I downloaded the Petalinux 2015.2 tools and the Avnet Zedboard 2015.2 BSP

 

However, as soon as I try petalinux-build after the creation of the project, i get the error:

 

 

[...I skip the initial messages which all look correct...]
[INFO ] Update and install vmlinux image
[INFO ] vmlinux linux/kernel
[INFO ] install linux/kernel
[INFO ] package zImage
[INFO ] zImage linux/kernel
[INFO ] install linux/kernel
[ERROR] ERROR: Invalid ELF file '/home/lopez/Petalinux-Projects/Avnet-Digilent-ZedBoard-2015.2/images/linux/vmlinux'
[ERROR] make[1]: *** [package-subsystem-FIT] Errore 255
ERROR: Failed to build linux.

 

Also, if I try to boot the prebuilt image with petalinux-boot --qemu --prebuilt 3 I get:

 

INFO: The image provided is a zImage

INFO: Set QEMU tftp to /home/lopez/Petalinux-Projects/Avnet-Digilent-ZedBoard-2015.2/images/linux
Uso: grep [OPZIONE]... MODELLO [FILE]...

Usare "grep --help" per ulteriori informazioni.

INFO: TCP PORT is free

INFO: Starting arm QEMU

INFO: qemu-system-aarch64 -L /opt/Xilinx/petalinux-v2015.2-final/etc/qemu -M arm-generic-fdt-plnx -machine linux=on -display none -kernel /tmp/tmp.NrxdGEgjgl -gdb tcp::9000 -dtb /tmp/tmp.pkk2bd9Zfu -tftp /home/lopez/Petalinux-Projects/Avnet-Digilent-ZedBoard-2015.2/images/linux

--------------------------------------------------------------------

Xilinx QEMU Jul 13 2015 04:08:08.

--------------------------------------------------------------------

qemu-system-aarch64: Unable to get size of device tree file '/tmp/tmp.pkk2bd9Zfu'

qemu-system-aarch64: Error: Unable to load Device Tree /tmp/tmp.pkk2bd9Zfu

 

I don't know if the error is connected to the wrong grep usage at the beginning of the flow.

 

Anybody can help? Much appreciated thanks

 

Giorgio

Visitor
Posts: 2
Registered: ‎07-18-2015

Re: zedboard BSP build fails out of the box

I have the same problem :(

Visitor
Posts: 3
Registered: ‎07-21-2015

Re: zedboard BSP build fails out of the box

Did you find a solution to this problem? I am having the same issue.

 

Steven

Moderator
Posts: 1,128
Registered: ‎07-01-2010

Re: zedboard BSP build fails out of the box

 

I have tried using the zedboard BSP on RHEL6 and Petalinux  2015.2 and i don't see the issue.

 

What is the Linux distribution on which petalinux is installed in this case?

 

Regards,
Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
Visitor hs2
Visitor
Posts: 6
Registered: ‎07-21-2015

Re: zedboard BSP build fails out of the box

I had the same issue :(

But fortunately I found and fixed the problem after pretty lengthy investigation.

(petalinux-readelf missed libz.so.1)

 

Note that's related to an Ubuntu.x64 14.04 host system.

 

All in all you need to:

sudo apt-get install libssl-dev
sudo apt-get install lib32z1

to get 2015.2 installed (see this posting) and run it.

 

Good luck, HS2

Visitor hs2
Visitor
Posts: 6
Registered: ‎07-21-2015

Re: zedboard BSP build fails out of the box

Missed to mention that I was successfully using 2014.4 before and and the described packages are needed in addition for 2015.2.

HS2

Observer
Posts: 26
Registered: ‎02-02-2012

Re: zedboard BSP build fails out of the box

I'm sorry,

 

I am experiencing this on Ubuntu 14.04 as well but the installation of the two libraries didn't fix the issue.

 

I'm still having errors while running qemu on the prebuilt image or rebuilding the image

 

Giorgio Lopez

Visitor hs2
Visitor
Posts: 6
Registered: ‎07-21-2015

Re: zedboard BSP build fails out of the box

I didn't verify QEMU so maybe there are even more packages missing.

Try to find the qemu binaries e.g. using

'find <petalinux install dir>/tools -name *qemu*

and just invoke them to check if they launch successfully.

 

Good luck, HS2

Visitor
Posts: 3
Registered: ‎07-21-2015

Re: zedboard BSP build fails out of the box

I am experiencing the problem on Ubuntu 14.04. It seems it may be a distribution specific problem.
Observer
Posts: 29
Registered: ‎01-26-2011

Re: zedboard BSP build fails out of the box

I'm also getting the "Invalid ELF file..." error. I'm running 2015.2 under Red Hat Enterprise 6.6. It's a custom design and not the Zedboard BSP.

 

Kevin