Hi all,
I’m try to rebuild the Pynq v2.7 SD card image with following guide, but got errors:
https://pynq.readthedocs.io/en/v2.7.0/pynq_sd_card.html
Here are some my operations:
- Setup a AMD host system with Ubuntut 20.04 64bit.
- Download the Pynq V2.7 source code from github.
- Use Vagrant to prepare Ubuntu OS
3.1 The Vagran up help me to setup a VM with Ubuntu 18.04
3.2 Install Vitis, Vivado, and Petalinux with related version on the location “/workspace/Xilinx”
PYNQ V2.7, Xilinx Tool Version 2020.2, Petalinux version 2020.2
3.3 Setup the appropriate setting for petalinux and vitis.
I’m add these setting in bashrc file.
source /workspace/Xilinx/Vitis/2020.2/settings64.sh
source /workspace/Xilinx/Vivado/2020.2/settings64.sh
source /workspace/Xilinx/petalinux/settings.sh
petalinux-util --webtalk off
3.4 Also install petalinux necessary packages:
https://support.xilinx.com/s/article/73296?language=en_US
3.5 Switch shell to bash
sudo dpkg-reconfigure dash
4. Building the Image
4.1 cd /sdbuild/
4.2 make
After executing the make command, I will get below two different problems, and they seems happen randomly:
One for Vivado:
WARNING: [Vivado 12-8222] Failed run(s) : ‘pynqz2_ps7_0_synth_1’
wait_on_run: Time (s): cpu = 00:00:00.06 ; elapsed = 00:00:35 . Memory (MB): peak = 2623.246 ; gain = 0.000 ; free physical = 1992 ; free virtual = 2167
INFO: [Vivado 12-4895] Creating Hardware Platform: /pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/hardware_project/pynqz2.xsa …
INFO: [Project 1-655] Project does not have Board Part set. Board related data may be missing or incomplete in the generated Hardware Platform.
WARNING: [Project 1-646] Board name, vendor and part not set in Hardware Platform.
WARNING: [Project 1-645] Board images not set in Hardware Platform.
INFO: [Hsi 55-2053] elapsed time for repository (/workspace/Xilinx/Vivado/2020.2/data/embeddedsw) loading 0 seconds
WARNING: [BD 41-2589] Platform should have atleast one axi memory mapped master interface. Enable a master AXI interface as platform AXI_PORT.
INFO: [Project 1-1042] Successfully generated hpfm file
write_project_tcl: Time (s): cpu = 00:00:17 ; elapsed = 00:00:24 . Memory (MB): peak = 2623.246 ; gain = 0.000 ; free physical = 1209 ; free virtual = 2323
ERROR: [Common 17-70] Application Exception: Need an implemented design open to write bitstream. Aborting write_hw_platform…
INFO: [Common 17-206] Exiting Vivado at Tue May 24 20:06:35 2022…
makefile:13: recipe for target ‘bitstream’ failed
make[1]: *** [bitstream] Error 1
make[1]: Leaving directory ‘/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/hardware_project’
Makefile:343: recipe for target ‘/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2020.2.bsp’ failed
make: *** [/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2020.2.bsp] Error 2
One for petalinux-build:
Built pynqz2 successfully!
make[1]: Leaving directory ‘/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/hardware_project’
- cd /pynq/sdbuild/build/Pynq-Z2/petalinux_bsp
- petalinux-create --type project --template zynq --name xilinx-pynqz2-2020.2
INFO: Create project: xilinx-pynqz2-2020.2
INFO: New project successfully created in /pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2020.2 - cd xilinx-pynqz2-2020.2
- petalinux-config --get-hw-description=/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/hardware_project --silentconfig
INFO: Sourcing build tools
INFO: Getting hardware description…
INFO: Rename pynqz2.xsa to system.xsa
[INFO] Generating Kconfig for project
[INFO] Silentconfig project
[INFO] Extracting yocto SDK to components/yocto
ERROR: Failed to Extract Yocto SDK.
ERROR: Failed to config project.
ERROR: Get hw description Failed!.
Makefile:343: recipe for target ‘/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2020.2.bsp’ failed
make: *** [/pynq/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2020.2.bsp] Error 255
I also try to remove the build fails and rebuild with command:
make clean, make
or
make clean, make -B
The fail results are the same.
For the Vivado problem, I used Vivado GUI mode and open the XDC project in the build folder:
Run the bitstream generation, the result is PASS. I’m not sure what’s the reason…
For the peta-linux part, I check other posts in support forum but can’t find answer…
Below context is the Terminal in the VM during opening: I think my Vivado, Vitis, Petalinux should be installed correctly.
PetaLinux environment set to ‘/workspace/Xilinx/petalinux’
WARNING: This is not a supported OS
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to “UG1144 2020.2 PetaLinux Tools Documentation Reference Guide” for its impact and solution
INFO: Turn off webtalk feature!