Monday, August 2, 2021

UHD USB Permissions in Ubunto 20.04 LTS

After installing libuhd and uhd-host on Ubuntu 20.04.02 LTS, I observed the following error after connecting a B205 and running uhd_find_devices:

[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5
[ERROR] [USB] USB open failed: insufficient permissions.
See the application notes for your device.

No UHD Devices Found

I found this thread while googling the error, which mentions udev rules. But rather than copy/paste rules from a three year old thread, I wanted to install the rules packaged with my version of uhd. I was able to find these in /usr/lib/uhd/utils/uhd-usrp.rules, and copied them in place as follows:

sudo cp /usr/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/10-uhd-usrp.rules

Works now yay.

[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5
[INFO] [B200] Loading firmware image: /usr/share/uhd/images/usrp_b200_fw.hex...

No comments:

Post a Comment