"No devices found, XRT environment sourced?" Error

@marioruiz
Hello Mario,

While a fast built with the scripts/image_from_prebuilt.sh succeeds, it lacked xrt support and threw a pynq error when attemting to load an Overlay bitfile.

Upon your recommendation I tried to do a build with a pre-made pynq 2.7 image. This fails however. See the ERROR LOG below. Am I doing something wrong:

Here the file tree in sdbuild
enclustra/
├── pynq_aarch64_2_7
└── xu1_2020
├── enclustra1_xu1_2020.bsp
└── xu1_2020.spec

And the command that I call to build the pynq 2.7 image
make BOARDDIR=enclustra PREBUILT=enclustra/pynq_aarch64_2_7 nocheck_images BOARDS=xu1_2020 nocheck_images

The content of xu1_2020.spec is
BOARD := xu1_2020
ARCH_${BOARD} := aarch64
BSP_${BOARD} := enclustra1_xu1_2020.bsp
BITSTREAM_${BOARD} :=
STAGE4_PACKAGES_${BOARD} := ethernet pynq xrt usbgadget
FPGA_MANAGER_${BOARD} := 0

(without FPGA_MANAGER setting it also fails)
the error log is not so clear to me about what is going wrong. And the build ends with:
make: *** [/home/rootuser/pynq/PYNQ/sdbuild/build/xu1_2020.tar.gz] Error 2

Am I doeing something the wrong way?

ERROR LOG

source run_ippack.tcl -notrace
bad lexical cast: source type value could not be interpreted as target
while executing
“rdi::set_property core_revision 2204251359 {component component_1}”
invoked from within
“set_property core_revision $Revision $core”
(file “run_ippack.tcl” line 937)
INFO: [Common 17-206] Exiting Vivado at Mon Apr 25 14:00:04 2022…
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design CPU user time: 8.94 seconds. CPU system time: 0.49 seconds. Elapsed time: 7.83 seconds; current allocated memory: 167.753 MB.
command ‘ap_source’ returned error code
while executing
“source color_convert/script.tcl”
(“uplevel” body line 1)
invoked from within
"uplevel #0 [list source $arg] "

INFO: [HLS 200-112] Total CPU user time: 21.39 seconds. Total CPU system time: 1.36 seconds. Total elapsed time: 20.08 seconds; peak allocated memory: 163.941 MB.
INFO: [Common 17-206] Exiting vitis_hls at Mon Apr 25 14:00:04 2022…
child process exited abnormally
INFO: [Common 17-206] Exiting Vivado at Mon Apr 25 14:00:05 2022…
makefile:10: recipe for target ‘hls_ip’ failed
make[1]: *** [hls_ip] Error 1
make[1]: Leaving directory ‘/home/rootuser/pynq/PYNQ/sdbuild/build/PYNQ/boards/Pynq-Z2/base’

  • unmount_special
  • for fs in $fss
  • sudo umount -l /home/rootuser/pynq/PYNQ/sdbuild/build/focal.xu1_2020/proc
  • for fs in $fss
  • sudo umount -l /home/rootuser/pynq/PYNQ/sdbuild/build/focal.xu1_2020/run
  • for fs in $fss
  • sudo umount -l /home/rootuser/pynq/PYNQ/sdbuild/build/focal.xu1_2020/dev
  • sudo umount -l /home/rootuser/pynq/PYNQ/sdbuild/build/focal.xu1_2020/ccache
  • rmdir /home/rootuser/pynq/PYNQ/sdbuild/build/focal.xu1_2020/ccache
    Makefile:343: recipe for target ‘/home/rootuser/pynq/PYNQ/sdbuild/build/xu1_2020.tar.gz’ failed
    make: *** [/home/rootuser/pynq/PYNQ/sdbuild/build/xu1_2020.tar.gz] Error 2
1 Like