Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD image - sdbuild make fail about petalinux bsp #1366

Open
Kgfu opened this issue May 23, 2022 · 4 comments
Open

SD image - sdbuild make fail about petalinux bsp #1366

Kgfu opened this issue May 23, 2022 · 4 comments

Comments

@Kgfu
Copy link

Kgfu commented May 23, 2022

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 /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?

@skalade
Copy link
Collaborator

skalade commented May 23, 2022

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

@Kgfu
Copy link
Author

Kgfu commented May 24, 2022

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~

@Kramin42
Copy link

Kramin42 commented Jun 15, 2022

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.

@Idosegevv
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants