Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi,
I have installed UHD v4.1, GNU Radio v3.10 and Vivado v2019.1 in Ubuntu22.04.
The rfnoc_image_builder was used to build the UHD image. While building the UHD image using the yaml file the process was successful, however building using the grc file I encounter the following error:
[INF] Converting GNU Radio Companion file to image builder format
Traceback (most recent call last):
File "/usr/local/bin/rfnoc_image_builder", line 222, in <module>
sys.exit(main())
File "/usr/local/bin/rfnoc_image_builder", line 199, in main
config, source, device, image_core_name, target = image_config(args)
File "/usr/local/bin/rfnoc_image_builder", line 128, in image_config
config = image_builder.convert_to_image_config(config, args.grc_blocks)
File "/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py", line 500, in convert_to_image_config
seps = {item["name"]: item for item in grc["blocks"] if item["parameters"]["type"] == 'sep'}
File "/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py", line 500, in <dictcomp>
seps = {item["name"]: item for item in grc["blocks"] if item["parameters"]["type"] == 'sep'}
KeyError: 'type'
The path directory of GRC block descriptions is set to /usr/local/share/gnuradio/grc/blocks. Is this path correct?
What could be the possible reasons for this error? How can it be resolved? Can you please help.
Thanks in advance.
Hi,
we did a lot of upgrades to rfnoc_image_builder. You might have to update
to the latest UHD. Problem is, if you update UHD then you also have to
update GNU Radio, which means building both from source. Do you know how to
do that?
--M
On Fri, Feb 21, 2025 at 6:36 AM anjana.krishnan@technosci.com wrote:
Hi,
I have installed UHD v4.1, GNU Radio v3.10 and Vivado v2019.1 in
Ubuntu22.04.
The rfnoc_image_builder was used to build the UHD image. While building
the UHD image using the yaml file the process was successful, however
building using the grc file I encounter the following error:
[INF] Converting GNU Radio Companion file to image builder format
Traceback (most recent call last):
File "/usr/local/bin/rfnoc_image_builder", line 222, in <module>
sys.exit(main())
File "/usr/local/bin/rfnoc_image_builder", line 199, in main
config, source, device, image_core_name, target = image_config(args)
File "/usr/local/bin/rfnoc_image_builder", line 128, in image_config
config = image_builder.convert_to_image_config(config, args.grc_blocks)
File
"/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 500, in convert_to_image_config
seps = {item["name"]: item for item in grc["blocks"] if
item["parameters"]["type"] == 'sep'}
File
"/usr/local/lib/python3/dist-packages/uhd/imgbuilder/image_builder.py",
line 500, in <dictcomp>
seps = {item["name"]: item for item in grc["blocks"] if
item["parameters"]["type"] == 'sep'}
KeyError: 'type'
The path directory of GRC block descriptions is set to
/usr/local/share/gnuradio/grc/blocks. Is this path correct?
What could be the possible reasons for this error? How can it be resolved?
Can you please help.
Thanks in advance.
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
Hi Martin,
Thank you for the quick reply.
I had installed UHD and GNU Radio building from the source, referring to document ‘Building and Installing the USRP open-source Toolchain (UHD and GNU Radio) on Linux ‘.
Should the previous versions be uninstalled and then reinstalled with the latest version. With UHD-4.8 which GNU Radio version would be compatible.
Thank you.
Yes, please uninstall. I recommend the latest GNU Radio (3.10.12), we added
a lot of updates and bug fixes for RFNoC in gr-uhd there.
--M
On Fri, Feb 21, 2025 at 12:55 PM anjana.krishnan@technosci.com wrote:
Hi Martin,
Thank you for the quick reply.
I had installed UHD and GNU Radio building from the source, referring to
document ‘Building and Installing the USRP open-source Toolchain (UHD and
GNU Radio) on Linux ‘.
Should the previous versions be uninstalled and then reinstalled with the
latest version. With UHD-4.8 which GNU Radio version would be compatible.
Thank you.
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
Hi Martin,
I have updated to UHD4.8, GNU Radio v3.10.12 and Vivado v2021.1_AR76780 in Ubuntu22.04.
The rfnoc_image_builder is giving error:
Executing the following command: . ./setupenv.sh && make X310_XG BUILD_DIR=<repo>/uhd/fpga/usrp3/top/x300/build-x310_image_core IMAGE_CORE_NAME=x310_image_core SYNTH=1
/bin/sh: 6: ./setupenv.sh: Bad substitution
/bin/sh: 8: ./setupenv.sh: declare: not found
/bin/sh: 9: ./setupenv.sh: PRODUCT_ID_MAP[X300]=kintex7/xc7k325t/ffg900/-2: not found
/bin/sh: 10: ./setupenv.sh: PRODUCT_ID_MAP[X310]=kintex7/xc7k410t/ffg900/-2: not found
/bin/sh: 16: ./setupenv.sh: source: not found
Build finished with return code 127.
But when I run the command in terminal,
. ./setupenv.sh && make X310_XG BUILD_DIR=<repo>/uhd/fpga/usrp3/top/x300/build-x310_image_core IMAGE_CORE_NAME=x310_image_core SYNTH=1
the bistream generation starts and completes successfully. This is observed for both yaml and grc files.
Can you please help resolve the error.
Thank you in advance.
Hi Martin,
The issue has been resolved. The shell was not configured to bash and hence the error occurred. The RFNoC image builder is working fine.
Thank you.