PYNQ icon indicating copy to clipboard operation
PYNQ copied to clipboard

SD image - sdbuild make fail about petalinux bsp

Open Kgfu opened this issue 2 years ago • 4 comments

I'm following the guide to build the image in VM through vagrant: https://pynq.readthedocs.io/en/v2.7.0/pynq_sd_card.html In the step: cd <PYNQ repository>/sdbuild/ make

I got following error message seems related to the peta-linux BSP: image image

I confirm the version of Vitis, Vivado, and Petalinux are the same. (2020.2) Does it possible cause by the petalinux installation is not completed?

Kgfu avatar May 23 '22 21:05 Kgfu

Hi there,

Are you using Ubuntu 18.04? And have you ran the sdbuild/scripts/setup_host.sh script? There's usually logs in the sdbuild/build directory, you can find it by doing find . -name "build.log", which might give more hints as to what is going on.

I recommend you create a post on the pynq support forum with issues like this -- you are more likely to receive support. Just please make sure to describe what steps you have taken to debug the issue, and give as much information about your setup as possible.

Thanks Shawn

skalade avatar May 23 '22 21:05 skalade

Hi skalade, I'm using the vagrant to create the VM by default, so the OS is Ubuntu 18.04. The setup_host script is executed during the command: vagrant up that creating VM and initial it. I'm not find other error message or warming during the VM initialization, so I believe the setup_host.sh script should not have problem.

Got it. I will follow your suggestion to support forum. Thanks~

Kgfu avatar May 24 '22 02:05 Kgfu

I am getting the same issue with a windows host, and looking in the log file PYNQ/sdbuild/build/Pynq-Z1/petalinux_bsp/xilinx-pynqz1-2020.2/build/config.log reveals the cause:

[INFO] Extracting yocto SDK to components/yocto
PetaLinux Extensible SDK installer version 2020.2
=================================================
You are about to install the SDK to "/pynq/sdbuild/build/Pynq-Z1/petalinux_bsp/xilinx-pynqz1-2020.2/components/yocto". Proceed [Y/n]? Y
Extracting SDK........tar: ./layers/core/scripts/pybootchartgui/pybootchartgui/main.py: Cannot hard link to ‘./layers/core/scripts/pybootchartgui/pybootchartgui/main.py.in’: Operation not permitted
tar: ./layers/core/meta/recipes-extended/ghostscript/ghostscript/i586/objarch.h: Cannot hard link to ‘./layers/core/meta/recipes-extended/ghostscript/ghostscript/i686/objarch.h’: Operation not permitted
tar: ./layers/core/bitbake/bin/bitbake-diffsigs: Cannot hard link to ‘./layers/core/bitbake/bin/bitbake-dumpsig’: Operation not permitted
.tar: ./sysroots/x86_64-petalinux-linux/etc/ld.so.cache: Cannot create symlink to ‘/etc/ld.so.cache’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/recipetool: Cannot create symlink to ‘../../../../layers/core/scripts/recipetool’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-export-rootfs: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-export-rootfs’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-ifup: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-ifup’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/wic: Cannot create symlink to ‘../../../../layers/core/scripts/wic’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-addptable2image: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-addptable2image’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-extract-sdk: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-extract-sdk’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-ifdown: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-ifdown’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/runqemu-gen-tapdevs: Cannot create symlink to ‘../../../../layers/core/scripts/runqemu-gen-tapdevs’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/devtool: Cannot create symlink to ‘../../../../layers/core/scripts/devtool’: Protocol error
tar: ./sysroots/x86_64-petalinux-linux/usr/bin/oe-find-native-sysroot: Cannot create symlink to ‘../../../../layers/core/scripts/oe-find-native-sysroot’: Protocol error
tar: Exiting with failure status due to previous errors
ERROR: Failed to Extract Yocto SDK.

Since the /pynq directory is shared it does not support creating links. Cloning the PYNQ repository to another directory under /workspace and building from there fixes this issue.

Kramin42 avatar Jun 15 '22 01:06 Kramin42

@Kgfu Try to create a VM with ubuntu 20.04. install all Linux dependencies(also with the help of the setup script). And then try.

Idosegevv avatar Nov 22 '22 10:11 Idosegevv

Closing due to lack of activity. If this is still an issue re-open it as a discuss.pynq.io post.

skalade avatar May 01 '24 15:05 skalade