PYNQ 2.4 error message is reported when making an image

  • PYNQ 2.4
  • Ubuntu 16.04
  • PetaLinux 2018.3
  • Vivado 2018.3
  • SDK 2018.3
  • when I run “make BOARDS=zynq7020 PREBUILT=./prebuilt/bionic.arm.2.4.img”

ebuilt/bionic.arm.2.4.img
which vivado | fgrep 2018.3
/home/ubuntu/Xilinx/Vivado/2018.3/bin/vivado
#which sdx | fgrep 2018.3
which petalinux-config | fgrep 2018.3
/opt/Petalinux/2018.3/tools/common/petalinux/bin/petalinux-config
which arm-linux-gnueabihf-gcc
/home/ubuntu/Xilinx/SDK/2018.3/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
which microblaze-xilinx-elf-gcc
/home/ubuntu/Xilinx/SDK/2018.3/gnu/microblaze/lin/bin/microblaze-xilinx-elf-gcc
which ct-ng
/opt/crosstool-ng/bin/ct-ng
which python | fgrep /usr/bin/python
/usr/bin/python
sudo -n mount > /dev/null
bash /home/ubuntu/PYNQ/sdbuild/scripts/check_Env.sh
bash /home/ubuntu/PYNQ/sdbuild/scripts/check_mounts.sh
cd /home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020 && mkimage -f /home/ubuntu/PYNQ/sdbuild/build/zynq7020/image.its /home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/image.ub
FATAL ERROR: Couldn’t open “./zImage”: No such file or directory
mkimage: Can’t read /home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/image.ub.tmp: Invalid argument
mkimage Can’t add hashes to FIT blob
Makefile:298: recipe for target ‘/home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/image.ub’ failed
make: *** [/home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/image.ub] Error 255

I can find zImage, it’s in a different place, maybe it’s the wrong one, why is it designed like that? I tried to modify the img file to get him to find it, and I got a different error, how to fix it?

I move zImage to the setting location,but new error output
cd /home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020 && petalinux-package --boot --fpga /home/ubuntu/PYNQ/sdbuild/…/boards/zynq7020/base/base.bit --u-boot -p /home/ubuntu/PYNQ/sdbuild/build/zynq7020/petalinux_project --force
ERROR: Default first stage bootloader “/home/ubuntu/PYNQ/sdbuild/build/zynq7020/petalinux_project/images/linux/zynq_fsbl.elf” doesn’t exist.
ERROR: You haven’t specified the first stage bootloader, and we failed to detect the default one.
ERROR: Please use “–fsbl” option to specify one.
Makefile:298: recipe for target ‘/home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/BOOT.BIN’ failed
make: *** [/home/ubuntu/PYNQ/sdbuild/output/boot/zynq7020/BOOT.BIN] Error 255

I run petalinux-build in folder “petalinux_project”,problem have been solved

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.