Can not download the bit from the kv260

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 argument

During 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 directory

During 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。。

I also tried a lot of different bit files, but none of them succeeded, only this download in pynq-helloworld was successful after the installation was completed
This is the error-reporting jumpyter
Compare.ipynb (14.1 KB)

Hi,

Are you sure “…/overlay/dft.bit” three dot is a correct path?

yes, i am sure about it. I also tried to put the bit and hwh files in the same directory as jupyter, but the above error still appeared.
I showed the files in the overlay in jupyter to make sure it wasn’t a path issue
pass.ipynb (13.4 KB)

Hello,

Can you open terminal via the Juypter Notebook:
image
Then try to test the bit path on that?
ls or ll the path location.
Thank you

Hello,
Is that so?


thank you

Yes,

So how could three bot is a correct path.
Maybe I missed st.

Yes,
I’m also confused as to why this problem happens.
When I tried to import the test program that came with OYNQV2.7, he was able to download it normally

1 Like

Remember to close the issue with solution tick.
Welcome to the community.

Sorry, as my English was poor, it was not well expressed. But is still have the issue.
I still cannot download my bit. Only after installing PYNQ, the included PYNQ-HelloWorld can be downloaded successfully.


I am confused,
You install PYNQ following this guide?

Yes, I install PYNQ follow this guide,
Only the built-in PYNQ-HelloWorld bit can be downloaded successfully.
But bit files that I created or came down from github can’t be downloaded successfully

Please make sure the FPGA device is aligned with the project.

…You are right, I’m an idiot
Is it okay to select the Solution to close the question?
Thank you a lot

1 Like

Don’t worry you are not alone =]
See many cases including myself.