PYNQ V2.7 SD image build fail for board PYNQ-Z2

I suffer some permission related issues. So I unisntall Vitis & Vivado again, and install them without using root permission and put their location at ~/Xilinx just like your suggestion.

  1. cd ~/PYNQ/sdbuild
  2. make PREBUILT=focal.aarch64.2.7.0_2021_11_17.tar.gz BOARDS=Pynq-Z2
  3. Build a lot of time, it will fail at board ZCU104
    makefile:16: recipe for target ‘bitstream’ failed
    ====================================================
    make[1]: *** [bitstream] Error 137
    make[1]: Leaving directory ‘/home/willy/PYNQ/sdbuild/build/PYNQ/boards/ZCU104/base’

  • unmount_special
  • for fs in $fss
  • sudo umount -l /home/willy/PYNQ/sdbuild/build/focal.Pynq-Z2/proc
    [sudo] password for willy:
    Sorry, try again.
    [sudo] password for willy:
  • for fs in $fss
  • sudo umount -l /home/willy/PYNQ/sdbuild/build/focal.Pynq-Z2/run
  • for fs in $fss
  • sudo umount -l /home/willy/PYNQ/sdbuild/build/focal.Pynq-Z2/dev
  • sudo umount -l /home/willy/PYNQ/sdbuild/build/focal.Pynq-Z2/ccache
  • rmdir /home/willy/PYNQ/sdbuild/build/focal.Pynq-Z2/ccache
    Makefile:343: recipe for target ‘/home/willy/PYNQ/sdbuild/build/Pynq-Z2.tar.gz’ failed
    make: *** [/home/willy/PYNQ/sdbuild/build/Pynq-Z2.tar.gz] Error 2
    =================================================
  1. Remove lines in build/PYNQ/build.sh, and execute make again:
    make PREBUILT=focal.aarch64.2.7.0_2021_11_17.tar.gz BOARDS=Pynq-Z2
    Finally, I got the success result:
    image

One more thanks again, briansune.
Another question, how can we compress them into the SD card image just like the below link?
https://bit.ly/pynqz2_2_7

BTW, in your post:

==================================

Step 10 update a bit:
apt-get install tftpd tftp openbsd-inetd
gedit /etc/inetd.conf
(add this) tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftproot
mkdir /tftproot
chmod 777 /tftproot
/etc/init.d/openbsd-inetd restart
netstat -an | more | grep udp

===========================
The “tftproot” should be corrected to “tftpboot”, because the make script use “tftpboot” not “tftproot”.
INFO: Failed to copy built images to tftp dir: /tftpboot

1 Like