| | 120 | |
| | 121 | |
| | 122 | ==== Caution ==== |
| | 123 | |
| | 124 | While imaging the ceiling USRP-X310 nodes (for example, node18-20 on the grid), you might encounter the following error while executing the fosphor flowgraph with GNURadio Companion, |
| | 125 | |
| | 126 | {{{ |
| | 127 | Generating: "/tmp/rfnoc_fosphor.py" |
| | 128 | |
| | 129 | Executing: /usr/bin/python3 -u /tmp/rfnoc_fosphor.py |
| | 130 | |
| | 131 | [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.4.0.0-33-g4a77791c |
| | 132 | [INFO] [X300] X300 initialization sequence... |
| | 133 | [INFO] [X300] Connecting to niusrpriorpc at localhost:5444... |
| | 134 | Traceback (most recent call last): |
| | 135 | File "/tmp/rfnoc_fosphor.py", line 287, in <module> |
| | 136 | main() |
| | 137 | File "/tmp/rfnoc_fosphor.py", line 264, in main |
| | 138 | tb = top_block_cls() |
| | 139 | File "/tmp/rfnoc_fosphor.py", line 72, in __init__ |
| | 140 | self.rfnoc_graph = uhd_rfnoc_graph = uhd.rfnoc_graph(uhd.device_addr(",type=x300,resource=RIO0")) |
| | 141 | RuntimeError: EnvironmentError: IOError: Could not find the image 'usrp_x310_fpga_HG.lvbitx' in the image directory /usr/local/share/fosphor_bit/ |
| | 142 | For more information regarding image paths, please refer to the UHD manual. |
| | 143 | |
| | 144 | >>> Done (return code 1) |
| | 145 | }}} |
| | 146 | |
| | 147 | ==== Why is this error happening ? ==== |
| | 148 | |
| | 149 | This is happening because when we execute the flowgraph, UHD tries to load a specific FPGA image named: |
| | 150 | |
| | 151 | {{{#!shell |
| | 152 | usrp_x310_fpga_HG.lvbitx |
| | 153 | }}} |
| | 154 | |
| | 155 | But in the system that exact file does not exist. So UHD aborts and your script crashes. |
| | 156 | |
| | 157 | ==== Possible solution ==== |
| | 158 | |
| | 159 | One possible solution can be to create a symbolic link that points to an existing FPGA bitstream file located elsewhere on the system. Essentially, it tricks UHD into finding the file it expects, even though the actual file has a different name. |
| | 160 | |
| | 161 | {{{#!shell |
| | 162 | sudo ln -s /usr/local/share/fosphor_bit/usrp_x310_fpga_XG.lvbitx /usr/local/share/fosphor_bit/usrp_x310_fpga_HG.lvbitx |
| | 163 | }}} |