Tar: .: Cannot utime: Operation not permitted

Hi everyone,

I’m trying to rebuild the PYNQ SD Card image for Pynq-Z1 board following PYNQ SD Card image — Python productivity for Zynq (Pynq). I’m using version 3.1 of PYNQ repo and ubuntu 22.04 and 2024.1 version of Xilinx tools (Vivado, Vitis, Petalinux). However, the whole task is terminated with an error: [ERROR] module ‘plnx_vars’ has no attribute ‘CopyDir’

Following AMD Customer Community , in the petalinux-build script, I replaced “ plnx_vars.CopyDir(plnx_vars.BuildImagesDir.format(proot), tftp_dir) “ with “ common_utils.CopyDir(plnx_vars.BuildImagesDir.format(proot), tftp_dir) “ and also added “ import common_utils”. This gets me further along, but then if the location is found, it fails with:

tar: .: Cannot utime: Operation not permitted

tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted

tar: Exiting with failure status due to previous errors

How should I fix this? I would appreciate any insights regarding this matter.

output.txt (155.8 KB)

1 Like

Hi @Armanhbabaei

I would recommend using the Docker flow to build images due to the various dependencies the SD Build flow has.

Documentation on how to use the Docker flow can be found here.