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: 
Highlighted
Explorer
Explorer
528 Views
Registered: ‎05-30-2017

VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello I'm working with Petalinux tool 2019.1 and Vivado 2019.1 and zcu106.

I carefully followed the guide Zynq UltraScale+ MPSoC VCU TRD 2019.1 - Run and Build Flow but I'm having some problem

I tried to compile petalinux for PCIe transcode and PL DDR HDMI example designes but in both cases the command "petalinux-build" works but "petalinux-build --sdk" fails and the error is:

ERROR: Worker process (21971) exited unexpectedly (-9), shutting down...
ERROR: Worker process (21971) exited unexpectedly (-9), shutting down...
ERROR: Worker process (21971) exited unexpectedly (-9), shutting down...
ERROR: Worker process (21971) exited unexpectedly (-9), shutting down...
WARNING: /home/administrator/plinux/components/yocto/source/aarch64/layers/core/bitbake/lib/bb/runqueue.py:1287: ResourceWarning: unclosed file <_io.BufferedWriter name=26>
self.worker = {}

No logs are generated so it is very difficult to understand the cause of the error. This happen when I use vcu trd 2019.1 xilinx BSP.

I tried same compilation on a 8 core/8GBram and on a 40core/32GBram configuaration and the result is the same.

I tried to build petalinux not using xilinx BSP but only zynqMP template and the PCIe transcode hdf and in this case petalinux build correctly. So I think there is a problem in 2019.1 vcu trd xilinx BSP.

Did anyone correctly build petalinux using petalinux tool 2019.1 and VCU TRD Xilinx TRD?

For me this a very great problem I have a some test to do with PCIe transcode example design, that is only in 2019.1 version of VCU TRD, and and I have been stuck for several days.

Thnk you very much

0 Kudos
1 Solution

Accepted Solutions
Scholar watari
Scholar
231 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

In my experience about this build flow, some processes, ex. building package file and package group, require over 10GB.

It might be route case in your case.

 

BTW, here is flow to increase swap size on ubuntu.

FYI.

 

1. Make sure current swap.

1.1. Swap is file

$ swapon -s

Filename Type Size Used Priority
/swap.img file 8388604 741120 -2

1.2. Swap is device

$ swaopn -s

Filename Type Size Used Priority
/dev/sda2 partition 8388604 741120 -1

2. Add swap file (tempolary)

Create new swap file and attache it as an additional swap file (1GB and file name is /var/swapfile).

$ sudo fallocate -l 1G /var/swapfile

$ sudo chmod 600 /var/swapfile

$ sudo mkswap /var/swapfile

$ sudo swapon /var/swapfile

3. Modify /etc/fstab (Add following two line.), if you want to do it as perperual.

# swap file

/var/swapfile none swap sw 0 0

4. Execute the following command, if you remove swap file (ex. /var/swapfile) or partition (ex. /dev/sda2).

$ sudo swapoff /var/swapfile

 

Best regards,

 

14 Replies
Scholar watari
Scholar
521 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

Did you make sure the followings ?

 

- When did you refer Xilinx Wiki ?

    - It might be updated...

- Who execute petalinux ? root ? normal account ?

    - It seems like root account...

- Make sure permission in petalinux installed directory.

- Make sure S.M.A.R.T of HDD, if use HDD.

 

Best regards,

Explorer
Explorer
513 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari ,

thank you very much for the help!

1) Last update 5 jun but looking at the wiki the part I refer is not changed with the last version

2) The name of user is "administrator" but it is a normal account and not a root account

3) What are the correct permission? I think that if they were wrong I could not correctly compile petalinux when I don't use BSP but only template

4) I had same problem using two differennt SSD so I think the error doesn't depend on the disc

Did you correctly compile petalinux using vcu trd BSP 2019.1?

Thank you very much for the help! 

0 Kudos
Scholar watari
Scholar
504 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

Unfortunately, I didn't compile TRD for VCU_PCIe. But I already compile TRD for VCU_QT.

 

BTW, do you use proxy ?

If yes, have you already executed the following command ?

 

$ git config --global url."https://".insteadOf git://

 

Best regards,

Explorer
Explorer
496 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari ,

no I'm not using a proxy. I see 11 example designes in the wiki but not VCU_QT. I also tried to downgrade PCIe transcode example design from 2019.1 to 2018.3 to workaround the problem it almost works but I don't know how to apply 2019.1 BSP kernel patches to 2018.3 BSP. Is this possible? In this way I could anyway do the test i need.

Thank you very much.

0 Kudos
Scholar watari
Scholar
487 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

I already compiled the following. It was successful.

 

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/115933296/Zynq+UltraScale+MPSoC+VCU+TRD+2019.1+-+Run+and+Build+Flow#ZynqUltraScale+MPSoCVCUTRD2019.1-RunandBuildFlow-3.7VCUQtApplication

 

OK. I will compile PCIe as soon as possible.

Could you point out URL to follow your job ?

 

Best regards

Explorer
Explorer
478 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari ,

sorry for my english but what do you mean with "Could you point out URL to follow your job ?"

thank you very much for your valuable help!

0 Kudos
Explorer
Explorer
457 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari,

Follow this wiki https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/115933296/Zynq+UltraScale+MPSoC+VCU+TRD+2019.1+-+Run+and+Build+Flow starting from "3.2 VCU PetaLinux BSP" using as hdf "vcu_pcie_wrapper.hdf" that you can find in rdf0428-zcu106-vcu-trd-2019-1/pl/prebuilt/vcu_pcie. Here it is described as to build petalinux for vcu_pcie and at a certain point there is command "petalinux-build --sdk". This the flow that also I followed.

Tell me if you need other informations.

Thank you very much.

0 Kudos
Scholar watari
Scholar
381 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

Here is my result and the suggestion for you.

Would you refer them ?

 

# My result

Even if I have some warning messages (*1) during "petalinux-build" and "petalinux-build --sdk", I finished building flow and it was successful.

I didn't have like your matter.

 

# Suggestion

I guess you lack the following flow before "petalinux-build" flow.

 

- Copy design dtsi file to system-user.dtsi using below command

$ cp -p project-spec/meta-user/recipes-bsp/device-tree/files/vcu_pcie.dtsi project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

 

Also, you can make sure whether system-user.dtsi is correct or not by comparing file size with ex "ls -lA".

 

$ ls -lA project-spec/meta-user/recipes-bsp/device-tree/files/vcu_pcie.dtsi

$ ls -lA project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

 

# My environment

patalinux-v2019.1 on CentOS7.5 on docker

 

I can rebuild it on what you want to use OS, if you have a request. (ex. Ubuntu 2018.04-LTS)

 

# Note

*1)

I encountered like following warnings.

 

WARNING: qtgraphicaleffects-5.11.3+gitAUTOINC+d560b79d05-r0 do_fetch: Failed to fetch URL git://code.qt.io/qt/qtgraphicaleffects.git;name=qtgraphicaleffects;branch=5.11;protocol=git, attempting MIRRORS if available

 

*2)

Of cause I encountered some unstable situation during yocto flow (petalinux-build uses yocto to build images).

Also, I retried "petalinux-build" to resolve this issue.

 

Best regards,

Explorer
Explorer
371 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari ,

thank you very much for your help!

About .dtsi I correctly copied the correct one. The only difference is that I used ubuntu 18.04.02 LTS. Could you try compiling with it? 
Otherwise there are no problems for me to use centOS.

Thank you very much!

0 Kudos
Explorer
Explorer
312 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @watari,

in centOS I correctly built petalinux. Command "petalinux-build --sdk" failed two times but finally i compiled it. Looking at system monitor I observed that when it crashed it was using almost all RAM and swap memory. So it could be a resource problem and in this case maybe Ubuntu handles worse the resources. 

0 Kudos
Scholar watari
Scholar
297 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

That's good news for you.

 

But it's a little strange.

Because I don't understand different behaviour between CentOS and Ubuntu.

 

My environment is as below.

I guess that my environment is poorer than yours.

 

CPU : "Xeon Silver 4110 CPU @ 2.1GHz"

Pysical memory size : 64GB

Swap memory size : 8GB

 

I suggest you to change "Parallel thread execution" during build flow, if your environment is bad.

Would you refer page 104 on the following pdf ?

 

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

 

Best regards,

Explorer
Explorer
249 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hello @watari,

thank you very much! Parallel thread execution changes the number of core used by petalinux-tool or the number of parallel thread?

On ubuntu I have 32GB ram and 2GB swap. I'll try to increment swap on Ubuntu. I'm not very linux expert but I noticd that in centOS after failure of petalinux-build --sdk centOS automatically increased swap memory from 2GB to about 20GB and infact after this it compiled.

Thanks a lot for your help!

0 Kudos
Scholar watari
Scholar
232 Views
Registered: ‎06-16-2013

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @pierlum 

 

In my experience about this build flow, some processes, ex. building package file and package group, require over 10GB.

It might be route case in your case.

 

BTW, here is flow to increase swap size on ubuntu.

FYI.

 

1. Make sure current swap.

1.1. Swap is file

$ swapon -s

Filename Type Size Used Priority
/swap.img file 8388604 741120 -2

1.2. Swap is device

$ swaopn -s

Filename Type Size Used Priority
/dev/sda2 partition 8388604 741120 -1

2. Add swap file (tempolary)

Create new swap file and attache it as an additional swap file (1GB and file name is /var/swapfile).

$ sudo fallocate -l 1G /var/swapfile

$ sudo chmod 600 /var/swapfile

$ sudo mkswap /var/swapfile

$ sudo swapon /var/swapfile

3. Modify /etc/fstab (Add following two line.), if you want to do it as perperual.

# swap file

/var/swapfile none swap sw 0 0

4. Execute the following command, if you remove swap file (ex. /var/swapfile) or partition (ex. /dev/sda2).

$ sudo swapoff /var/swapfile

 

Best regards,

 

Explorer
Explorer
111 Views
Registered: ‎05-30-2017

Re: VCU TRD 2019.1 Xilinx BSP problem

Jump to solution

Hi @watari 

I incrased swap memory also in ubuntu and now petalinux-build --sdk works also in ubuntu. Thank you very much for the help!

0 Kudos