How can i get pynq-z2.bsp?

i am using github/PYNQ project to add kernel on pynq-z2 image , i used the official scripts PYNQ/sdbuild : make BOARDS=Pynq-Z2 ,but a error ouccured, here is the error

INFO: [Common 17-206] Exiting Vivado at Wed Sep 9 10:03:47 2020…
makefile:10: recipe for target ‘bit’ failed
make[1]: *** [bit] Error 1
make[1]: Leaving directory ‘/home/master/pynq-3/PYNQ-image_v2.5/sdbuild/build/Pynq-Z2/petalinux_bsp/hardware_project’
Makefile:321: recipe for target ‘/home/master/pynq-3/PYNQ-image_v2.5/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2019.1.bsp’ failed
make: *** [/home/master/pynq-3/PYNQ-image_v2.5/sdbuild/build/Pynq-Z2/petalinux_bsp/xilinx-pynqz2-2019.1.bsp] Error 2

i dont know how to solve this , i konw i lack .bit and .bsp , but isn`t vivado or petalinux auto-generate it ?

then
I run petalinux-package --bsp -p petalinux_bsp/ --outout pynq-z2.bsp i wanna generate .bsp file ,but error occured :

ERROR: ‘/home/master/pynq-3/PYNQ-image_v2.5/boards/Pynq-Z2/petalinux_bsp’’ is not a valid PetaLinux project. Please create a project with petalinux-create -t project first!
Commmand “petalinux-package --bsp” packages a BSP
Usage:
petalinux-package --bsp [options]

Required options for BSP packaging:
-o, --output <BSP_NAME> BSP package name - <BSP_NAME>.bsp
-p, --project PetaLinux projects path to be included in
BSP (allow multiple).
Options for BSP packaging:
–force Force overwrite the BSP
–clean Force clean hardware project
Vivado Installation is required for this option.
–hwsource <PATH_TO_HW> Include a hardware source
–exclude-from-file <EXCLUDE_FILE> Excludes the files specified in EXCLUDE_FILE.

EXAMPLES:

Package BSP with a PetaLinux project:
$ petalinux-package --bsp -p <PATH_TO_PROJECT> --output MY.BSP
It will generate MY.BSP including:

  • /config.project
  • /.petalinux
  • /.gitignore
  • /README
  • /README.hw
  • /pre-built
  • /project-spec
  • /components
    from the specified project.

Package BSP with hardware source:
$ petalinux-package --bsp -p <PATH_TO_PROJECT> --hwsource <PATH_TO_HARDWARE_PROJECT> --output MY.BSP
It will not modify the specified PetaLinux project <PATH_TO_PROJECT>. It will
put the specified hardware project source to /hardware/ inside MY.BSP
archive.
Package BSP after cleaningup hardware project:
$ petalinux-package --bsp -p <PATH_TO_PROJECT> --hwsource <PATH_TO_HARDWARE_PROJECT> --clean --output MY.BSP
Vivado is required to use “–clean” option. Please source Xilinx Tools settings first.
Petalinux will invoke “reset_project” vivado command on hardware project and then removes
.log,.jou,workspace,implementation directories. It will then pack the PROJECT along with hardware
project inside MY.BSP.
Package BSP excluding some files:
$ petalinux-package --bsp -p <PATH_TO_PROJECT> --exclude-from-file <EXCLUDE_FILE> --output MY.BSP.
It excludes the files specified in EXCLUDE_FILE from MY.BSP

ERROR: is not a valid PetaLinux project!
environment: line 112: petalinux_bsp//.petalinux/usage_statistics_token: No such file or directory
cat: petalinux_bsp//.petalinux/usage_statistics_token: No such file or directory
environment: line 112: petalinux_bsp//.petalinux/usage_statistics_token: No such file or directory
cat: petalinux_bsp//.petalinux/usage_statistics_token: No such file or directory

can someone help me about this or tell me where i should tackle this problem ?

I`m a freshman on FPGA , i just wanna run docker on PYNQ-Z2 boards ,but PYNQ-Z2 official image lack kernel support about Docker . Then my tutor tell me to figure out the kernel dependence with kernel reconstruction
I feel really hard for me
if you have any expreience on pynq-z2 boards kernel reconstruction , I would appreciate that you can contact me with jydu8023@gmail.com

:slight_smile:

Hi @hunter2048,

The bitstream is not being generated, therefore the process cannot continue.

makefile:10: recipe for target ‘bit’ failed

Can you open the vivado project and check the errors or log?

Mario

I sloved this problem yesterday . thanks
because i put PYNQ file in a created project , thus use petalinux-create is unusable !
thank you for your reply !