sandialabs / qick-dawg

Quantum Sensing Control Kit
MIT License
14 stars 3 forks source link

Error during installation_qick_daemon #27

Closed hyunseokOh closed 6 months ago

hyunseokOh commented 6 months ago

I'd like to report the error during installation and ask the solution.

We connected the RFSoC4x2 board and booted well. Then, I tried to follow the installation guide, running name_server.ipynb and qick_demon.ipynb. Server seems running fine with the ip address (same with the address in the board screen) and port 8888. However, when I ran qick_demon.ipynb especially initializing qick socket, the error occurred that the bitstream file path does not exist.

These are the output and the error msg below. Also, I attached the screen capture as well for your information. I also tested the different qick_path, but it didn't work as well.

looking for nameserver . . .
found nameserver
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
Input In [2], in <cell line: 22>()
     19 daemon = Pyro4.Daemon(host=host)
     21 # if you want to use a different firmware image or set some initialization options, you would do that here
---> 22 soc = QickSoc(bitfile=qick_path, force_init_clks=True)
     23 print("initialized QICK")
     24 print(QickConfig(soc.get_cfg()))

File /home/xilinx/jupyter_notebooks/qick/qick_lib/qick/qick.py:254, in QickSoc.__init__(self, bitfile, force_init_clks, ignore_version, no_tproc, clk_output, external_clk, **kwargs)
    251     Overlay.__init__(self, bitfile_path(
    252     ), ignore_version=ignore_version, download=False, **kwargs)
    253 else:
--> 254     Overlay.__init__(
    255         self, bitfile, ignore_version=ignore_version, download=False, **kwargs)
    257 # Initialize the configuration
    258 self._cfg = {}

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/overlay.py:315, in Overlay.__init__(self, bitfile_name, dtbo, download, ignore_version, device, gen_cache)
    286 def __init__(
    287     self, bitfile_name, dtbo=None, download=True, ignore_version=False, device=None, gen_cache=False
    288 ):
    289     """Return a new Overlay object.
    290 
    291     An overlay instantiates a bitstream object as a member initially.
   (...)
    313 
    314     """
--> 315     super().__init__(bitfile_name, dtbo, partial=False, device=device)
    317     self._register_drivers()
    319     self.device.set_bitfile_name(self.bitfile_name)

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/bitstream.py:118, in Bitstream.__init__(self, bitfile_name, dtbo, partial, device)
    116     self.bitfile_name = bitfile_overlay_abs_lst[0]
    117 else:
--> 118     raise IOError("Bitstream file {} does not exist.".format(bitfile_name))
    120 if bitfile_abs and bitfile_overlay_abs_lst or len(bitfile_overlay_abs_lst) > 1:
    121     msg = (
    122         "The provided name '{}' resulted in multiple possible "
    123         "matches:\n - ".format(bitfile_name)
    124     )

OSError: Bitstream file /home/xilinx/jupyter_notebook/qick/alternative_firmware/RFSoC4x2_commonclk/qick_4x2.bit does not exist.

image

hyunseokOh commented 6 months ago

Andy confirmed that the path should be qick_path = "/home/xilinx/jupyter_notebooks/qick/alternative_firmware/RFSoC4x2_commonclk/qick_4x2.bit"

instead of

qick_path = "/home/xilinx/jupyter_notebook/qick/alternative_firmware/RFSoC4x2_commonclk/qick_4x2.bit"

The qick_daemon.ipynb should be updated.