When I installed PYNQv2.7 on KV260 Ubuntu20.04, I executed the built-in test program pynq-hello and I was able to import the bit file correctly. But when I tried to import my own bit file, an error occurred:
overlay = Overlay(“…/overlay/dft.bit”)
OSError Traceback (most recent call last)
OSError: [Errno 22] Invalid argumentDuring handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
in
----> 1 overlay = Overlay(“…/overlay/dft.bit”)/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/overlay.py in init(self, bitfile_name, dtbo, download, ignore_version, device)
352
353 if download:
→ 354 self.download()
355
356 self.doc = _build_docstring(self._ip_map._description,/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/overlay.py in download(self, dtbo)
418 Clocks.set_pl_clk(i)
419
→ 420 super().download(self.parser)
421 if dtbo:
422 super().insert_dtbo(dtbo)/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/bitstream.py in download(self, parser)
185
186 “”"
→ 187 self.device.download(self, parser)
188
189 def remove_dtbo(self):/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/pl_server/embedded_device.py in download(self, bitstream, parser)
594 fd.write(str(flag))
595 with open(self.BS_FPGA_MAN, ‘w’) as fd:
→ 596 fd.write(bitstream.binfile_name)
597
598 self.set_axi_port_width(parser)OSError: [Errno 22] Invalid argument
Then I tried this method:
overlay = Overlay(“…/overlay/dft.bit”,download=False)
overlay.binfile_name = “/usr/lib/firmware/dft.bin”
overlay.download()
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: [Errno 2] No such file or directoryDuring handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
in
2 overlay = Overlay(“…/overlay/dft.bit”,download=False)
3 overlay.binfile_name = “/usr/lib/firmware/dft.bin”
----> 4 overlay.download()/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/overlay.py in download(self, dtbo)
418 Clocks.set_pl_clk(i)
419
→ 420 super().download(self.parser)
421 if dtbo:
422 super().insert_dtbo(dtbo)/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/bitstream.py in download(self, parser)
185
186 “”"
→ 187 self.device.download(self, parser)
188
189 def remove_dtbo(self):/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/pl_server/embedded_device.py in download(self, bitstream, parser)
594 fd.write(str(flag))
595 with open(self.BS_FPGA_MAN, ‘w’) as fd:
→ 596 fd.write(bitstream.binfile_name)
597
598 self.set_axi_port_width(parser)FileNotFoundError: [Errno 2] No such file or directory
I’m sure there’s no problem with the file path, but it still didn’t work。。