usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Help_Failed to build UHD in Ubuntu 20.04

TM
Thangaraj Mukara Dhakshinamoorthy
Thu, Sep 23, 2021 4:36 PM

Hello Marcus,
I have successfully installed the UHD binary in a VirtualMachine Ubuntu 20.04.3, but when I connect the ethernet-to-USB3.0 cable between SFP+0/1 and host computer, I can't find the USRP device using uhd tools! I don't know what am I missing here, may be something in the VM (virtualbox) config? or in my hardware connection itself?

Does anyone successfully interfaced Ettus N320 inside a VirtualBox Ubuntu 20.04.3?

######################################## My System Config ##############################

Host OS: Windows 10
Guest OS: VirtualBox Ubuntu 20.04.3 LTS
UHD version: 3.15.0.0
GNU Radio version: 3.8.1.0
SDR Device : Ettus USRP N320
##################################################################################

Console logs:

thangz@thangz-VirtualBox:~$ sudo apt-get install libuhd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libuhd-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3.230 kB of archives.
After this operation, 19,2 MB of additional disk space will be used.
Selecting previously unselected package libuhd-dev.
(Reading database ... 245194 files and directories currently installed.)
Preparing to unpack .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
thangz@thangz-VirtualBox:~$ cd $install_prefix/lib/uhd/examples
thangz@thangz-VirtualBox:/lib/uhd/examples$ ls
benchmark_rate      python                    rx_ascii_art_dft    rx_timed_samples      test_pps_input        tx_samples_c
benchmark_streamer  replay_samples_from_file  rx_multi_samples    sync_to_gps          test_timed_commands    tx_samples_from_file
gpio                rfnoc_nullsource_ce_rx    rx_samples_c        test_clock_synch      twinrx_freq_hopping    tx_timed_samples
latency_test        rfnoc_radio_loopback      rx_samples_to_file  test_dboard_coercion  tx_bursts              tx_waveforms
network_relay      rfnoc_rx_to_file          rx_samples_to_udp  test_messages        txrx_loopback_to_file  usrp_list_sensors
thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
No UHD Devices Found
thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address

Looking forward to your kind help, thanks in advance.

Regards,
Thangaraj

Von: Marcus D. Leech patchvonbraun@gmail.com
Gesendet: Mittwoch, 22. September 2021 15:55
An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.net; usrp-users@lists.ettus.com
Betreff: Re: AW: AW: AW: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

On 2021-09-22 9:35 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hello Marcus,
Unfortunately, the pre-packaged versions of UHD and GNU-Radio are also problematic!

This looks like you don't have a Python2.7 install on your system--or it cannot be found.  During the build.  What version of UHD are you trying to build?

UHD v3.14.0.0 (as mentioned in the installation guidelines)

Also, in Ubuntu 20.04, if you're just using Gnu Radio and not doing RFNOC work, you can just use the pre-packaged versions of UHD and Gnu Radio, and use
apt-install to install them:

GNU Installation:

thangaraj@KOM1292:~$ sudo apt install gnuradio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gnuradio-dev
Suggested packages:
gr-fosphor gr-osmosdr
Recommended packages:
python3-qwt-qt5
The following NEW packages will be installed:
gnuradio gnuradio-dev
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 6374 kB of archives.
After this operation, 38.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal/main amd64 gnuradio amd64 3.10.0.git~master~14443~focal-1 [6052 kB]
Get:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal/main amd64 gnuradio-dev amd64 3.10.0.git~master~14443~focal-1 [322 kB]
Fetched 6374 kB in 3s (2292 kB/s)
Selecting previously unselected package gnuradio.
(Reading database ... 103340 files and directories currently installed.)
Preparing to unpack .../gnuradio_3.10.0.git~master~14443~focal-1_amd64.deb ...
Unpacking gnuradio (3.10.0.git~master~14443~focal-1) ...
Selecting previously unselected package gnuradio-dev:amd64.
Preparing to unpack .../gnuradio-dev_3.10.0.git~master~14443~focal-1_amd64.deb ...
Unpacking gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...
Setting up gnuradio (3.10.0.git~master~14443~focal-1) ...
Setting up gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
thangaraj@KOM1292:~$ gnuradio-companion (failed to start)
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
File "/usr/bin/gnuradio-companion", line 92, in <module>
run_main()
File "/usr/bin/gnuradio-companion", line 85, in run_main
exit(main())
File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line 70, in main
from .gui.Platform import Platform
File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py", line 14, in <module>
from . import canvas
File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/init.py", line 10, in <module>
from .param import Param
File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py", line 11, in <module>
from .. import ParamWidgets, Utils, Constants, Actions
File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 58, in <module>
add_style_provider()
File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 53, in add_style_provider
Gtk.StyleContext.add_provider_for_screen(
TypeError: Argument 0 does not allow None as a value
This looks like a problem with your Ubuntu 20.04 system image--it's missing some configuration or something.  Not sure what.
I'm not a Windows guy, nor do I know anything about WSL.  Further questions about GNURADIO should really be directed
to the discuss-gnuradio mailing list, rather than here.

IF you mix PPA packages and packages from the distribution, you'll be in a world of hurt.  Don't do that.

It turns out that the "gnuradio" package alone is enough to bring in compatible versions of UHD and friends, so you shouldn't need
to install anything other than that.  Until a couple of weeks ago, I was running Ubuntu 20.04 on a real physical system, using a variety
of SDR hardware including UHD (USRP) hardware without issue.  I upgraded to Ubuntu 21.04 to get past a bug in Gnu Radio 3.8.1.0.
I know this stuff works, but I have no experience with WSL.

But like I had previously mentioned in this thread, you'll need to dedicate a network port to your N310, and I have no idea how that
works in the WSL environment, and perhaps someone with more familiarity with WSL can comment.

UHD Installation:

thangaraj@KOM1292:~$ sudo apt install uhd libuhd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package uhd
E: Unable to locate package libuhd
thangaraj@KOM1292:~$ sudo apt-get install uhd libuhd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package uhd
E: Unable to locate package libuhd
thangaraj@KOM1292:~$ sudo add-apt-repository ppa:ettusresearch/uhd

More info: https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Get:1 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal InRelease [18.1 kB]
Hit:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal InRelease
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease
Hit:4 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:9 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 Packages [1048 B]
Get:10 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main Translation-en [600 B]
Fetched 348 kB in 5s (68.1 kB/s)
Reading package lists... Done
thangaraj@KOM1292:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal InRelease
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal InRelease
Hit:7 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu focal InRelease
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003 uhd-host (failed)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libuhd003 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libuhd3.15.0

E: Package 'libuhd003' has no installation candidate
thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003.15.0 uhd-host (failed)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libuhd003.15.0
E: Couldn't find any package by glob 'libuhd003.15.0'
E: Couldn't find any package by regex 'libuhd003.15.0'
thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003.14.0 uhd-host (failed)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libuhd003.14.0
E: Couldn't find any package by glob 'libuhd003.14.0'
E: Couldn't find any package by regex 'libuhd003.14.0'
thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev uhd-host (completed)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libuhd3.15.0 python-is-python2 python-tk
Suggested packages:
tix python-tk-dbg
The following NEW packages will be installed:
libuhd-dev python-is-python2 python-tk
The following packages will be upgraded:
libuhd3.15.0 uhd-host
2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 python-is-python2 all 2.7.17-4 [2496 B]
Get:2 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 uhd-host amd64 3.15.0.0-1-1ubuntu1~focal1 [5463 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 python-tk amd64 2.7.18-1 [25.3 kB]
Get:4 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 libuhd3.15.0 amd64 3.15.0.0-1-1ubuntu1~focal1 [3061 kB]
Get:5 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 libuhd-dev amd64 3.15.0.0-1-1ubuntu1~focal1 [3230 kB]
Fetched 11.8 MB in 6s (2110 kB/s)
(Reading database ... 105690 files and directories currently installed.)
Preparing to unpack .../uhd-host_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking uhd-host (3.15.0.0-1-1ubuntu1~focal1) over (3.15.0.0-2build5) ...
Selecting previously unselected package python-is-python2.
Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ...
Unpacking python-is-python2 (2.7.17-4) ...
Preparing to unpack .../libuhd3.15.0_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) over (3.15.0.0-2build5) ...
Selecting previously unselected package libuhd-dev.
Preparing to unpack .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...
Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Selecting previously unselected package python-tk.
Preparing to unpack .../python-tk_2.7.18-1_amd64.deb ...
Unpacking python-tk (2.7.18-1) ...
Setting up python-tk (2.7.18-1) ...
Setting up python-is-python2 (2.7.17-4) ...
Setting up libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...
Setting up uhd-host (3.15.0.0-1-1ubuntu1~focal1) ...
sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or directory
sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or directory
Warning: Could not update sysctl settings for network devices.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

Looking forward to your kind response.

Regards,
Thangaraj
Von: Marcus D. Leech patchvonbraun@gmail.commailto:patchvonbraun@gmail.com
Gesendet: Mittwoch, 22. September 2021 15:04
An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.netmailto:thangaraj@komro.net; usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com
Betreff: Re: AW: AW: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

On 2021-09-22 7:47 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hello Marcus,
As you mentioned, I have followed the step-by-step installation guide, while building and installing UHD from source code, it throws an error which I mentioned previously!

thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake ..

-- Configuring the python interpreter...
-- Python interpreter: /usr/bin/python3
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Python runtime interpreter: /usr/bin/python3
-- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>
-- Working off of feature or development branch. Updating version number.
-- Using UHD Images Directory: /usr/local/share/uhd/images
-- Build type not specified: defaulting to release.

-- Configuring Boost C++ Libraries...
-- Looking for optional Boost components...
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53") found components: python
-- Looking for required Boost components...
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53") found components: chrono date_time filesystem program_options regex system unit_test_framework serialization thread
-- Boost include directories: /usr/include
-- Boost library directories: /usr/lib/x86_64-linux-gnu
-- Boost libraries: Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::system;Boost::unit_test_framework;Boost::serialization;Boost::thread
CMake Warning (dev) at cmake/Modules/UHDLog.cmake:68 (set):
implicitly converting 'FILE' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:365 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

--
-- Python checking for Python version 2.7 or greater
-- Python checking for Python version 2.7 or greater - "assert platform.python_version() >= '2.7' and platform.python_version() < '3.0'" failed

-- Python checking for Mako templates 0.4.2 or greater
-- Python checking for Mako templates 0.4.2 or greater - found

-- Python checking for requests 2.0 or greater
-- Python checking for requests 2.0 or greater - found

-- Python checking for numpy 1.7 or greater
-- Python checking for numpy 1.7 or greater - found

-- Configuring LibUHD support...
--  Dependency Boost_FOUND = TRUE
--  Dependency HAVE_PYTHON_PLAT_MIN_VERSION = FALSE
--  Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
CMake Error at cmake/Modules/UHDComponent.cmake:59 (message):
Dependencies for required component LibUHD not met.
Call Stack (most recent call first):
CMakeLists.txt:430 (LIBUHD_REGISTER_COMPONENT)

-- Configuring incomplete, errors occurred!
See also "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeOutput.log".
See also "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeError.log".

Also, tried executing below commands but got the same above output:
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 -DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python3 ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ /usr/bin/cmake ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ PATH=/usr/bin:$PATH cmake ..
thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DCMAKE_FIND_ROOT_PATH=/usr ..

PFA CMake logfiles.

I am stumbled with this UHD & GNU installation issue for almost a week, it would great if anyone can help me out, I would appreciate it and be very thankful!

PS: I am using WSL-Windows Subsytem for Linux (running Ubuntu 20.04.3 LTS)!

Regards,
Thangaraj

This looks like you don't have a Python2.7 install on your system--or it cannot be found.  During the build.  What version of UHD are you trying to build?

Also, in Ubuntu 20.04, if you're just using Gnu Radio and not doing RFNOC work, you can just use the pre-packaged versions of UHD and Gnu Radio, and use
apt-install to install them:

sudo apt install gnuradio
sudp apt install uhd libuhd

Hello Marcus, I have successfully installed the UHD binary in a VirtualMachine Ubuntu 20.04.3, but when I connect the ethernet-to-USB3.0 cable between SFP+0/1 and host computer, I can't find the USRP device using uhd tools! I don't know what am I missing here, may be something in the VM (virtualbox) config? or in my hardware connection itself? Does anyone successfully interfaced Ettus N320 inside a VirtualBox Ubuntu 20.04.3? ######################################## My System Config ############################## Host OS: Windows 10 Guest OS: VirtualBox Ubuntu 20.04.3 LTS UHD version: 3.15.0.0 GNU Radio version: 3.8.1.0 SDR Device : Ettus USRP N320 ################################################################################## Console logs: thangz@thangz-VirtualBox:~$ sudo apt-get install libuhd-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libuhd-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/3.230 kB of archives. After this operation, 19,2 MB of additional disk space will be used. Selecting previously unselected package libuhd-dev. (Reading database ... 245194 files and directories currently installed.) Preparing to unpack .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... thangz@thangz-VirtualBox:~$ cd $install_prefix/lib/uhd/examples thangz@thangz-VirtualBox:/lib/uhd/examples$ ls benchmark_rate python rx_ascii_art_dft rx_timed_samples test_pps_input tx_samples_c benchmark_streamer replay_samples_from_file rx_multi_samples sync_to_gps test_timed_commands tx_samples_from_file gpio rfnoc_nullsource_ce_rx rx_samples_c test_clock_synch twinrx_freq_hopping tx_timed_samples latency_test rfnoc_radio_loopback rx_samples_to_file test_dboard_coercion tx_bursts tx_waveforms network_relay rfnoc_rx_to_file rx_samples_to_udp test_messages txrx_loopback_to_file usrp_list_sensors thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_find_devices [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release No UHD Devices Found thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_usrp_probe [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release Error: LookupError: KeyError: No devices found for -----> Empty Device Address Looking forward to your kind help, thanks in advance. Regards, Thangaraj Von: Marcus D. Leech <patchvonbraun@gmail.com> Gesendet: Mittwoch, 22. September 2021 15:55 An: Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net>; usrp-users@lists.ettus.com Betreff: Re: AW: AW: AW: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 On 2021-09-22 9:35 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: Hello Marcus, Unfortunately, the pre-packaged versions of UHD and GNU-Radio are also problematic! This looks like you don't have a Python2.7 install on your system--or it cannot be found. During the build. What version of UHD are you trying to build? > UHD v3.14.0.0 (as mentioned in the installation guidelines) Also, in Ubuntu 20.04, if you're just using Gnu Radio and not doing RFNOC work, you can just use the pre-packaged versions of UHD and Gnu Radio, and use apt-install to install them: GNU Installation: thangaraj@KOM1292:~$ sudo apt install gnuradio Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: gnuradio-dev Suggested packages: gr-fosphor gr-osmosdr Recommended packages: python3-qwt-qt5 The following NEW packages will be installed: gnuradio gnuradio-dev 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 6374 kB of archives. After this operation, 38.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal/main amd64 gnuradio amd64 3.10.0.git~master~14443~focal-1 [6052 kB] Get:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal/main amd64 gnuradio-dev amd64 3.10.0.git~master~14443~focal-1 [322 kB] Fetched 6374 kB in 3s (2292 kB/s) Selecting previously unselected package gnuradio. (Reading database ... 103340 files and directories currently installed.) Preparing to unpack .../gnuradio_3.10.0.git~master~14443~focal-1_amd64.deb ... Unpacking gnuradio (3.10.0.git~master~14443~focal-1) ... Selecting previously unselected package gnuradio-dev:amd64. Preparing to unpack .../gnuradio-dev_3.10.0.git~master~14443~focal-1_amd64.deb ... Unpacking gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ... Setting up gnuradio (3.10.0.git~master~14443~focal-1) ... Setting up gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ... Processing triggers for shared-mime-info (1.15-1) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Processing triggers for man-db (2.9.1-1) ... thangaraj@KOM1292:~$ gnuradio-companion (failed to start) Unable to init server: Could not connect: Connection refused Unable to init server: Could not connect: Connection refused Unable to init server: Could not connect: Connection refused /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat Traceback (most recent call last): File "/usr/bin/gnuradio-companion", line 92, in <module> run_main() File "/usr/bin/gnuradio-companion", line 85, in run_main exit(main()) File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line 70, in main from .gui.Platform import Platform File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py", line 14, in <module> from . import canvas File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/__init__.py", line 10, in <module> from .param import Param File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py", line 11, in <module> from .. import ParamWidgets, Utils, Constants, Actions File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 58, in <module> add_style_provider() File "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 53, in add_style_provider Gtk.StyleContext.add_provider_for_screen( TypeError: Argument 0 does not allow None as a value This looks like a problem with your Ubuntu 20.04 system image--it's missing some configuration or something. Not sure what. I'm not a Windows guy, nor do I know anything about WSL. Further questions about *GNURADIO* should really be directed to the discuss-gnuradio mailing list, rather than here. IF you mix PPA packages and packages from the distribution, you'll be in a world of hurt. Don't do that. It turns out that the "gnuradio" package alone is enough to bring in compatible versions of UHD and friends, so you shouldn't need to install anything other than that. Until a couple of weeks ago, I was running Ubuntu 20.04 on a real physical system, using a variety of SDR hardware including UHD (USRP) hardware without issue. I upgraded to Ubuntu 21.04 to get past a bug in Gnu Radio 3.8.1.0. I know this stuff works, but I have no experience with WSL. But like I had previously mentioned in this thread, you'll need to dedicate a network port to your N310, and I have no idea how that works in the WSL environment, and perhaps someone with more familiarity with WSL can comment. UHD Installation: thangaraj@KOM1292:~$ sudo apt install uhd libuhd Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package uhd E: Unable to locate package libuhd thangaraj@KOM1292:~$ sudo apt-get install uhd libuhd Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package uhd E: Unable to locate package libuhd thangaraj@KOM1292:~$ sudo add-apt-repository ppa:ettusresearch/uhd More info: https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd Press [ENTER] to continue or Ctrl-c to cancel adding it. Get:1 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal InRelease [18.1 kB] Hit:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal InRelease Hit:3 https://download.docker.com/linux/ubuntu focal InRelease Hit:4 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu focal InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] Get:9 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 Packages [1048 B] Get:10 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main Translation-en [600 B] Fetched 348 kB in 5s (68.1 kB/s) Reading package lists... Done thangaraj@KOM1292:~$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal InRelease Hit:4 https://download.docker.com/linux/ubuntu focal InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease Hit:6 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu focal InRelease Hit:7 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu focal InRelease Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease Reading package lists... Done thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003 uhd-host (failed) Reading package lists... Done Building dependency tree Reading state information... Done Package libuhd003 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libuhd3.15.0 E: Package 'libuhd003' has no installation candidate thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003.15.0 uhd-host (failed) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libuhd003.15.0 E: Couldn't find any package by glob 'libuhd003.15.0' E: Couldn't find any package by regex 'libuhd003.15.0' thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003.14.0 uhd-host (failed) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libuhd003.14.0 E: Couldn't find any package by glob 'libuhd003.14.0' E: Couldn't find any package by regex 'libuhd003.14.0' thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev uhd-host (completed) Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libuhd3.15.0 python-is-python2 python-tk Suggested packages: tix python-tk-dbg The following NEW packages will be installed: libuhd-dev python-is-python2 python-tk The following packages will be upgraded: libuhd3.15.0 uhd-host 2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. Need to get 11.8 MB of archives. After this operation, 13.9 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 python-is-python2 all 2.7.17-4 [2496 B] Get:2 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 uhd-host amd64 3.15.0.0-1-1ubuntu1~focal1 [5463 kB] Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 python-tk amd64 2.7.18-1 [25.3 kB] Get:4 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 libuhd3.15.0 amd64 3.15.0.0-1-1ubuntu1~focal1 [3061 kB] Get:5 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu focal/main amd64 libuhd-dev amd64 3.15.0.0-1-1ubuntu1~focal1 [3230 kB] Fetched 11.8 MB in 6s (2110 kB/s) (Reading database ... 105690 files and directories currently installed.) Preparing to unpack .../uhd-host_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... Unpacking uhd-host (3.15.0.0-1-1ubuntu1~focal1) over (3.15.0.0-2build5) ... Selecting previously unselected package python-is-python2. Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ... Unpacking python-is-python2 (2.7.17-4) ... Preparing to unpack .../libuhd3.15.0_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... Unpacking libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) over (3.15.0.0-2build5) ... Selecting previously unselected package libuhd-dev. Preparing to unpack .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... Selecting previously unselected package python-tk. Preparing to unpack .../python-tk_2.7.18-1_amd64.deb ... Unpacking python-tk (2.7.18-1) ... Setting up python-tk (2.7.18-1) ... Setting up python-is-python2 (2.7.17-4) ... Setting up libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) ... Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... Setting up uhd-host (3.15.0.0-1-1ubuntu1~focal1) ... sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or directory sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or directory Warning: Could not update sysctl settings for network devices. Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Looking forward to your kind response. Regards, Thangaraj Von: Marcus D. Leech <patchvonbraun@gmail.com><mailto:patchvonbraun@gmail.com> Gesendet: Mittwoch, 22. September 2021 15:04 An: Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net><mailto:thangaraj@komro.net>; usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> Betreff: Re: AW: AW: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 On 2021-09-22 7:47 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: Hello Marcus, As you mentioned, I have followed the step-by-step installation guide, while building and installing UHD from source code, it throws an error which I mentioned previously! thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake .. -- -- Configuring the python interpreter... -- Python interpreter: /usr/bin/python3 -- Override with: -DPYTHON_EXECUTABLE=<path-to-python> -- Python runtime interpreter: /usr/bin/python3 -- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python> -- Working off of feature or development branch. Updating version number. -- Using UHD Images Directory: /usr/local/share/uhd/images -- Build type not specified: defaulting to release. -- -- Configuring Boost C++ Libraries... -- Looking for optional Boost components... -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53") found components: python -- Looking for required Boost components... -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.53") found components: chrono date_time filesystem program_options regex system unit_test_framework serialization thread -- Boost include directories: /usr/include -- Boost library directories: /usr/lib/x86_64-linux-gnu -- Boost libraries: Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::system;Boost::unit_test_framework;Boost::serialization;Boost::thread CMake Warning (dev) at cmake/Modules/UHDLog.cmake:68 (set): implicitly converting 'FILE' to 'STRING' type. Call Stack (most recent call first): CMakeLists.txt:365 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- -- Python checking for Python version 2.7 or greater -- Python checking for Python version 2.7 or greater - "assert platform.python_version() >= '2.7' and platform.python_version() < '3.0'" failed -- -- Python checking for Mako templates 0.4.2 or greater -- Python checking for Mako templates 0.4.2 or greater - found -- -- Python checking for requests 2.0 or greater -- Python checking for requests 2.0 or greater - found -- -- Python checking for numpy 1.7 or greater -- Python checking for numpy 1.7 or greater - found -- -- Configuring LibUHD support... -- Dependency Boost_FOUND = TRUE -- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = FALSE -- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE CMake Error at cmake/Modules/UHDComponent.cmake:59 (message): Dependencies for required component LibUHD not met. Call Stack (most recent call first): CMakeLists.txt:430 (LIBUHD_REGISTER_COMPONENT) -- Configuring incomplete, errors occurred! See also "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeOutput.log". See also "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeError.log". Also, tried executing below commands but got the same above output: thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 .. thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 -DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python3 .. thangaraj@KOM1292:~/workarea/uhd/host/build$ /usr/bin/cmake .. thangaraj@KOM1292:~/workarea/uhd/host/build$ PATH=/usr/bin:$PATH cmake .. thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake -DCMAKE_FIND_ROOT_PATH=/usr .. PFA CMake logfiles. I am stumbled with this UHD & GNU installation issue for almost a week, it would great if anyone can help me out, I would appreciate it and be very thankful! PS: I am using WSL-Windows Subsytem for Linux (running Ubuntu 20.04.3 LTS)! Regards, Thangaraj This looks like you don't have a Python2.7 install on your system--or it cannot be found. During the build. What version of UHD are you trying to build? Also, in Ubuntu 20.04, if you're just using Gnu Radio and not doing RFNOC work, you can just use the pre-packaged versions of UHD and Gnu Radio, and use apt-install to install them: sudo apt install gnuradio sudp apt install uhd libuhd
MD
Marcus D. Leech
Thu, Sep 23, 2021 4:43 PM

On 2021-09-23 12:36 p.m., Thangaraj Mukara Dhakshinamoorthy wrote:

Hello Marcus,

I have successfully installed the UHD binary in a VirtualMachine
Ubuntu 20.04.3, but when I connect the ethernet-to-USB3.0 cable
between SFP+0/1 and host computer, I can’t find the USRP device using
uhd tools! I don’t know what am I missing here, may be something in
the VM (virtualbox) config? or in my hardware connection itself?

Does anyone successfully interfaced Ettus N320 inside a VirtualBox
Ubuntu 20.04.3?

######################################## My System Config
##############################

Host OS: Windows 10

Guest OS: VirtualBox Ubuntu 20.04.3 LTS

UHD version: 3.15.0.0

GNU Radio version: 3.8.1.0

SDR Device : Ettus USRP N320

##################################################################################

What does "ifconfig" show for that USB3-Ethernet device?

(or "ip link", depending on which network tools you have installed).

If your VM can't "see" it, then there's no way that UHD can see it either.

Console logs:**

thangz@thangz-VirtualBox:~$ sudo apt-get install libuhd-dev

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will be installed:

libuhd-dev

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 0 B/3.230 kB of archives.

After this operation, 19,2 MB of additional disk space will be used.

Selecting previously unselected package libuhd-dev.

(Reading database ... 245194 files and directories currently installed.)

Preparing to unpack
.../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...

Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...

Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...

thangz@thangz-VirtualBox:~$ cd $install_prefix/lib/uhd/examples

thangz@thangz-VirtualBox:/lib/uhd/examples$ ls

benchmark_rate python                    rx_ascii_art_dft
rx_timed_samples      test_pps_input         tx_samples_c

benchmark_streamer replay_samples_from_file  rx_multi_samples
sync_to_gps           test_timed_commands tx_samples_from_file

gpio rfnoc_nullsource_ce_rx    rx_samples_c test_clock_synch     
twinrx_freq_hopping tx_timed_samples

latency_test rfnoc_radio_loopback      rx_samples_to_file
test_dboard_coercion  tx_bursts              tx_waveforms

network_relay rfnoc_rx_to_file          rx_samples_to_udp
test_messages         txrx_loopback_to_file usrp_list_sensors

thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_find_devices

[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100;
UHD_3.15.0.0-release

No UHD Devices Found

thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_usrp_probe

[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100;
UHD_3.15.0.0-release

Error: LookupError: KeyError: No devices found for ----->

Empty Device Address

Looking forward to your kind help, thanks in advance.

Regards,

Thangaraj

*Von:*Marcus D. Leech patchvonbraun@gmail.com
Gesendet: Mittwoch, 22. September 2021 15:55
An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.net;
usrp-users@lists.ettus.com
Betreff: Re: AW: AW: AW: AW: [USRP-users] Re: Help_Failed to build
UHD in Ubuntu 20.04

On 2021-09-22 9:35 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

 Hello Marcus,

 Unfortunately, the pre-packaged versions of UHD and GNU-Radio are
 also problematic!

 This looks like you don't have a Python2.7 install on your
 system--or it cannot be found.  During the build.  What version of
 UHD are you trying to build?

UHD v3.14.0.0 (as mentioned in the installation guidelines)

 Also, in Ubuntu 20.04, if you're just using Gnu Radio and not
 doing RFNOC work, you can just use the pre-packaged versions of
 UHD and Gnu Radio, and use
   apt-install to install them:

 *_GNU Installation:_*


 *thangaraj@KOM1292:~$ sudo apt install gnuradio*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 The following additional packages will be installed:

 gnuradio-dev

 Suggested packages:

 gr-fosphor gr-osmosdr

 Recommended packages:

 python3-qwt-qt5

 The following NEW packages will be installed:

 gnuradio gnuradio-dev

 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.

 Need to get 6374 kB of archives.

 After this operation, 38.8 MB of additional disk space will be used.

 *Do you want to continue? [Y/n] y*

 Get:1 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu>
 focal/main amd64 gnuradio amd64 3.10.0.git~master~14443~focal-1
 [6052 kB]

 Get:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu>
 focal/main amd64 gnuradio-dev amd64
 3.10.0.git~master~14443~focal-1 [322 kB]

 Fetched 6374 kB in 3s (2292 kB/s)

 Selecting previously unselected package gnuradio.

 (Reading database ... 103340 files and directories currently
 installed.)

 Preparing to unpack
 .../gnuradio_3.10.0.git~master~14443~focal-1_amd64.deb ...

 Unpacking gnuradio (3.10.0.git~master~14443~focal-1) ...

 Selecting previously unselected package gnuradio-dev:amd64.

 Preparing to unpack
 .../gnuradio-dev_3.10.0.git~master~14443~focal-1_amd64.deb ...

 Unpacking gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...

 Setting up gnuradio (3.10.0.git~master~14443~focal-1) ...

 Setting up gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ...

 Processing triggers for shared-mime-info (1.15-1) ...

 Processing triggers for mime-support (3.64ubuntu1) ...

 Processing triggers for hicolor-icon-theme (0.17-2) ...

 Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

 Processing triggers for man-db (2.9.1-1) ...

 *thangaraj@KOM1292:~$ gnuradio-companion (failed to start)*

 Unable to init server: Could not connect: Connection refused

 Unable to init server: Could not connect: Connection refused

 Unable to init server: Could not connect: Connection refused

 /usr/lib/python3/dist-packages/apport/report.py:13:
 DeprecationWarning: the imp module is deprecated in favour of
 importlib; see the module's documentation for alternative uses

 import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat

 Traceback (most recent call last):

 File "/usr/bin/gnuradio-companion", line 92, in <module>

 run_main()

 File "/usr/bin/gnuradio-companion", line 85, in run_main

 exit(main())

 File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line
 70, in main

 from .gui.Platform import Platform

 File
 "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py",
 line 14, in <module>

 from . import canvas

 File
 "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/__init__.py",
 line 10, in <module>

 from .param import Param

 File
 "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py",
 line 11, in <module>

 from .. import ParamWidgets, Utils, Constants, Actions

 File
 "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py",
 line 58, in <module>

 add_style_provider()

 File
 "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py",
 line 53, in add_style_provider

 Gtk.StyleContext.add_provider_for_screen(

 TypeError: Argument 0 does not allow None as a value

This looks like a problem with your Ubuntu 20.04 system image--it's
missing some configuration or something.  Not sure what.
  I'm not a Windows guy, nor do I know anything about WSL. Further
questions about GNURADIO should really be directed
  to the discuss-gnuradio mailing list, rather than here.

IF you mix PPA packages and packages from the distribution, you'll be
in a world of hurt.  Don't do that.

It turns out that the "gnuradio" package alone is enough to bring in
compatible versions of UHD and friends, so you shouldn't need
 to install anything other than that.  Until a couple of weeks ago, I
was running Ubuntu 20.04 on a real physical system, using a variety
 of SDR hardware including UHD (USRP) hardware without issue.  I
upgraded to Ubuntu 21.04 to get past a bug in Gnu Radio 3.8.1.0.
 I know this stuff works, but I have no experience with WSL.

But like I had previously mentioned in this thread, you'll need to
dedicate a network port to your N310, and I have no idea how that
  works in the WSL environment, and perhaps someone with more
familiarity with WSL can comment.

 *_UHD Installation:_*

 **

 *thangaraj@KOM1292:~$ sudo apt install uhd libuhd*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 E: Unable to locate package uhd

 E: Unable to locate package libuhd

 *thangaraj@KOM1292:~$ sudo apt-get install uhd libuhd*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 E: Unable to locate package uhd

 E: Unable to locate package libuhd

 *thangaraj@KOM1292:~$ sudo add-apt-repository ppa:ettusresearch/uhd*

 More info:
 https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd
 <https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd>

 Press [ENTER] to continue or Ctrl-c to cancel adding it.

 Get:1 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal
 InRelease [18.1 kB]

 Hit:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal
 InRelease

 Hit:3 https://download.docker.com/linux/ubuntu
 <https://download.docker.com/linux/ubuntu> focal InRelease

 Hit:4 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal
 InRelease

 Hit:5 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal InRelease

 Get:6 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal-updates InRelease [114 kB]

 Get:7 http://security.ubuntu.com/ubuntu
 <http://security.ubuntu.com/ubuntu> focal-security InRelease [114 kB]

 Get:8 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal-backports InRelease [101 kB]

 Get:9 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
 amd64 Packages [1048 B]

 Get:10 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
 Translation-en [600 B]

 Fetched 348 kB in 5s (68.1 kB/s)

 Reading package lists... Done

 *thangaraj@KOM1292:~$ sudo apt-get update*

 Hit:1 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal InRelease

 Hit:2 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal-updates InRelease

 Hit:3 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal InRelease

 Hit:4 https://download.docker.com/linux/ubuntu
 <https://download.docker.com/linux/ubuntu> focal InRelease

 Hit:5 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal-backports InRelease

 Hit:6 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal
 InRelease

 Hit:7 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu
 <http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal
 InRelease

 Hit:8 http://security.ubuntu.com/ubuntu
 <http://security.ubuntu.com/ubuntu> focal-security InRelease

 Reading package lists... Done

 *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003
 uhd-host (failed)*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 Package libuhd003 is not available, but is referred to by another
 package.

 This may mean that the package is missing, has been obsoleted, or

 is only available from another source

 However the following packages replace it:

 libuhd3.15.0

 E: Package 'libuhd003' has no installation candidate

 *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev
 libuhd003.15.0 uhd-host (failed)*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 E: Unable to locate package libuhd003.15.0

 E: Couldn't find any package by glob 'libuhd003.15.0'

 E: Couldn't find any package by regex 'libuhd003.15.0'

 *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev
 libuhd003.14.0 uhd-host (failed)*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 E: Unable to locate package libuhd003.14.0

 E: Couldn't find any package by glob 'libuhd003.14.0'

 E: Couldn't find any package by regex 'libuhd003.14.0'

 *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev uhd-host
 (completed)*

 Reading package lists... Done

 Building dependency tree

 Reading state information... Done

 The following additional packages will be installed:

 libuhd3.15.0 python-is-python2 python-tk

 Suggested packages:

 tix python-tk-dbg

 The following NEW packages will be installed:

 libuhd-dev python-is-python2 python-tk

 The following packages will be upgraded:

 libuhd3.15.0 uhd-host

 2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.

 Need to get 11.8 MB of archives.

 After this operation, 13.9 MB of additional disk space will be used.

 Do you want to continue? [Y/n] y

 Get:1 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal/universe amd64
 python-is-python2 all 2.7.17-4 [2496 B]

 Get:2 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
 amd64 uhd-host amd64 3.15.0.0-1-1ubuntu1~focal1 [5463 kB]

 Get:3 http://archive.ubuntu.com/ubuntu
 <http://archive.ubuntu.com/ubuntu> focal/universe amd64 python-tk
 amd64 2.7.18-1 [25.3 kB]

 Get:4 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
 amd64 libuhd3.15.0 amd64 3.15.0.0-1-1ubuntu1~focal1 [3061 kB]

 Get:5 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu
 <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main
 amd64 libuhd-dev amd64 3.15.0.0-1-1ubuntu1~focal1 [3230 kB]

 Fetched 11.8 MB in 6s (2110 kB/s)

 (Reading database ... 105690 files and directories currently
 installed.)

 Preparing to unpack
 .../uhd-host_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...

 Unpacking uhd-host (3.15.0.0-1-1ubuntu1~focal1) over
 (3.15.0.0-2build5) ...

 Selecting previously unselected package python-is-python2.

 Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ...

 Unpacking python-is-python2 (2.7.17-4) ...

 Preparing to unpack
 .../libuhd3.15.0_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...

 Unpacking libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) over
 (3.15.0.0-2build5) ...

 Selecting previously unselected package libuhd-dev.

 Preparing to unpack
 .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ...

 Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...

 Selecting previously unselected package python-tk.

 Preparing to unpack .../python-tk_2.7.18-1_amd64.deb ...

 Unpacking python-tk (2.7.18-1) ...

 Setting up python-tk (2.7.18-1) ...

 Setting up python-is-python2 (2.7.17-4) ...

 Setting up libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) ...

 Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ...

 Setting up uhd-host (3.15.0.0-1-1ubuntu1~focal1) ...

 sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or
 directory

 sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or
 directory

 Warning: Could not update sysctl settings for network devices.

 Processing triggers for man-db (2.9.1-1) ...

 Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

 Looking forward to your kind response.

 Regards,

 Thangaraj

 *Von:*Marcus D. Leech <patchvonbraun@gmail.com>
 <mailto:patchvonbraun@gmail.com>
 *Gesendet:* Mittwoch, 22. September 2021 15:04
 *An:* Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net>
 <mailto:thangaraj@komro.net>; usrp-users@lists.ettus.com
 <mailto:usrp-users@lists.ettus.com>
 *Betreff:* Re: AW: AW: AW: [USRP-users] Re: Help_Failed to build
 UHD in Ubuntu 20.04

 On 2021-09-22 7:47 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

     Hello Marcus,

     As you mentioned, I have followed the step-by-step
     installation guide, while building and installing UHD from
     source code, it throws an error which I mentioned previously!

     thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake ..

     --

     -- Configuring the python interpreter...

     -- Python interpreter: /usr/bin/python3

     -- Override with: -DPYTHON_EXECUTABLE=<path-to-python>

     -- Python runtime interpreter: /usr/bin/python3

     -- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>

     -- Working off of feature or development branch. Updating
     version number.

     -- Using UHD Images Directory: /usr/local/share/uhd/images

     -- Build type not specified: defaulting to release.

     --

     -- Configuring Boost C++ Libraries...

     -- Looking for optional Boost components...

     -- Found Boost:
     /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake
     (found suitable version "1.71.0", minimum required is "1.53")
     found components: python

     -- Looking for required Boost components...

     -- Found Boost:
     /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake
     (found suitable version "1.71.0", minimum required is "1.53")
     found components: chrono date_time filesystem program_options
     regex system unit_test_framework serialization thread

     -- Boost include directories: /usr/include

     -- Boost library directories: /usr/lib/x86_64-linux-gnu

     -- Boost libraries:
     Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::system;Boost::unit_test_framework;Boost::serialization;Boost::thread

     CMake Warning (dev) at cmake/Modules/UHDLog.cmake:68 (set):

     implicitly converting 'FILE' to 'STRING' type.

     Call Stack (most recent call first):

     CMakeLists.txt:365 (include)

     This warning is for project developers.  Use -Wno-dev to
     suppress it.

     --

     -- Python checking for Python version 2.7 or greater

     -- Python checking for Python version 2.7 or greater - "assert
     platform.python_version() >= '2.7' and
     platform.python_version() < '3.0'" failed

     --

     -- Python checking for Mako templates 0.4.2 or greater

     -- Python checking for Mako templates 0.4.2 or greater - found

     --

     -- Python checking for requests 2.0 or greater

     -- Python checking for requests 2.0 or greater - found

     --

     -- Python checking for numpy 1.7 or greater

     -- Python checking for numpy 1.7 or greater - found

     --

     -- Configuring LibUHD support...

     -- Dependency Boost_FOUND = TRUE

     -- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = FALSE

     -- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE

     CMake Error at cmake/Modules/UHDComponent.cmake:59 (message):

     Dependencies for required component LibUHD not met.

     Call Stack (most recent call first):

     CMakeLists.txt:430 (LIBUHD_REGISTER_COMPONENT)

     -- Configuring incomplete, errors occurred!

     See also
     "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeOutput.log".

     See also
     "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeError.log".

     *_Also, tried executing below commands but got the same above
     output:_*

     thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
     -DPYTHON_EXECUTABLE=/usr/bin/python3 ..

     thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
     -DPYTHON_EXECUTABLE=/usr/bin/python3
     -DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python3 ..

     thangaraj@KOM1292:~/workarea/uhd/host/build$ /usr/bin/cmake ..

     thangaraj@KOM1292:~/workarea/uhd/host/build$
     PATH=/usr/bin:$PATH cmake ..

     thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake
     –DCMAKE_FIND_ROOT_PATH=/usr ..

     PFA CMake logfiles.

     I am stumbled with this UHD & GNU installation issue for
     almost a week, it would great if anyone can help me out, I
     would appreciate it and be very thankful!

     PS: I am using WSL-Windows Subsytem for Linux (running Ubuntu
     20.04.3 LTS)!

     Regards,

     Thangaraj

 This looks like you don't have a Python2.7 install on your
 system--or it cannot be found. During the build.  What version of
 UHD are you trying to build?

 Also, in Ubuntu 20.04, if you're just using Gnu Radio and not
 doing RFNOC work, you can just use the pre-packaged versions of
 UHD and Gnu Radio, and use
   apt-install to install them:

 sudo apt install gnuradio
 sudp apt install uhd libuhd
On 2021-09-23 12:36 p.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hello Marcus, > > I have successfully installed the UHD binary in a VirtualMachine > Ubuntu 20.04.3, but when I connect the ethernet-to-USB3.0 cable > between SFP+0/1 and host computer, I can’t find the USRP device using > uhd tools! I don’t know what am I missing here, may be something in > the VM (virtualbox) config? or in my hardware connection itself? > > Does anyone successfully interfaced Ettus N320 inside a VirtualBox > Ubuntu 20.04.3? > > ######################################## My System Config > ############################## > > Host OS: Windows 10 > > Guest OS: VirtualBox Ubuntu 20.04.3 LTS > > UHD version: 3.15.0.0 > > GNU Radio version: 3.8.1.0 > > SDR Device : Ettus USRP N320 > > ################################################################################## > What does "ifconfig" show for that USB3-Ethernet device? (or "ip link", depending on which network tools you have installed). If your VM can't "see" it, then there's no way that UHD can see it either. > *Console logs:*** > > thangz@thangz-VirtualBox:~$ sudo apt-get install libuhd-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > The following NEW packages will be installed: > > libuhd-dev > > 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. > > Need to get 0 B/3.230 kB of archives. > > After this operation, 19,2 MB of additional disk space will be used. > > Selecting previously unselected package libuhd-dev. > > (Reading database ... 245194 files and directories currently installed.) > > Preparing to unpack > .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... > > Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... > > Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... > > thangz@thangz-VirtualBox:~$ cd $install_prefix/lib/uhd/examples > > thangz@thangz-VirtualBox:/lib/uhd/examples$ ls > > benchmark_rate python                    rx_ascii_art_dft > rx_timed_samples      test_pps_input         tx_samples_c > > benchmark_streamer replay_samples_from_file  rx_multi_samples > sync_to_gps           test_timed_commands tx_samples_from_file > > gpio rfnoc_nullsource_ce_rx    rx_samples_c test_clock_synch      > twinrx_freq_hopping tx_timed_samples > > latency_test rfnoc_radio_loopback      rx_samples_to_file > test_dboard_coercion  tx_bursts              tx_waveforms > > network_relay rfnoc_rx_to_file          rx_samples_to_udp > test_messages         txrx_loopback_to_file usrp_list_sensors > > thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_find_devices > > [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; > UHD_3.15.0.0-release > > No UHD Devices Found > > thangz@thangz-VirtualBox:/lib/uhd/examples$ uhd_usrp_probe > > [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; > UHD_3.15.0.0-release > > Error: LookupError: KeyError: No devices found for -----> > > Empty Device Address > > Looking forward to your kind help, thanks in advance. > > Regards, > > Thangaraj > > *Von:*Marcus D. Leech <patchvonbraun@gmail.com> > *Gesendet:* Mittwoch, 22. September 2021 15:55 > *An:* Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net>; > usrp-users@lists.ettus.com > *Betreff:* Re: AW: AW: AW: AW: [USRP-users] Re: Help_Failed to build > UHD in Ubuntu 20.04 > > On 2021-09-22 9:35 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hello Marcus, > > Unfortunately, the pre-packaged versions of UHD and GNU-Radio are > also problematic! > > This looks like you don't have a Python2.7 install on your > system--or it cannot be found.  During the build.  What version of > UHD are you trying to build? > > UHD v3.14.0.0 (as mentioned in the installation guidelines) > Also, in Ubuntu 20.04, if you're just using Gnu Radio and not > doing RFNOC work, you can just use the pre-packaged versions of > UHD and Gnu Radio, and use >   apt-install to install them: > > *_GNU Installation:_* > > > *thangaraj@KOM1292:~$ sudo apt install gnuradio* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > The following additional packages will be installed: > > gnuradio-dev > > Suggested packages: > > gr-fosphor gr-osmosdr > > Recommended packages: > > python3-qwt-qt5 > > The following NEW packages will be installed: > > gnuradio gnuradio-dev > > 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. > > Need to get 6374 kB of archives. > > After this operation, 38.8 MB of additional disk space will be used. > > *Do you want to continue? [Y/n] y* > > Get:1 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> > focal/main amd64 gnuradio amd64 3.10.0.git~master~14443~focal-1 > [6052 kB] > > Get:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> > focal/main amd64 gnuradio-dev amd64 > 3.10.0.git~master~14443~focal-1 [322 kB] > > Fetched 6374 kB in 3s (2292 kB/s) > > Selecting previously unselected package gnuradio. > > (Reading database ... 103340 files and directories currently > installed.) > > Preparing to unpack > .../gnuradio_3.10.0.git~master~14443~focal-1_amd64.deb ... > > Unpacking gnuradio (3.10.0.git~master~14443~focal-1) ... > > Selecting previously unselected package gnuradio-dev:amd64. > > Preparing to unpack > .../gnuradio-dev_3.10.0.git~master~14443~focal-1_amd64.deb ... > > Unpacking gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ... > > Setting up gnuradio (3.10.0.git~master~14443~focal-1) ... > > Setting up gnuradio-dev:amd64 (3.10.0.git~master~14443~focal-1) ... > > Processing triggers for shared-mime-info (1.15-1) ... > > Processing triggers for mime-support (3.64ubuntu1) ... > > Processing triggers for hicolor-icon-theme (0.17-2) ... > > Processing triggers for libc-bin (2.31-0ubuntu9.2) ... > > Processing triggers for man-db (2.9.1-1) ... > > *thangaraj@KOM1292:~$ gnuradio-companion (failed to start)* > > Unable to init server: Could not connect: Connection refused > > Unable to init server: Could not connect: Connection refused > > Unable to init server: Could not connect: Connection refused > > /usr/lib/python3/dist-packages/apport/report.py:13: > DeprecationWarning: the imp module is deprecated in favour of > importlib; see the module's documentation for alternative uses > > import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat > > Traceback (most recent call last): > > File "/usr/bin/gnuradio-companion", line 92, in <module> > > run_main() > > File "/usr/bin/gnuradio-companion", line 85, in run_main > > exit(main()) > > File "/usr/lib/python3/dist-packages/gnuradio/grc/main.py", line > 70, in main > > from .gui.Platform import Platform > > File > "/usr/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py", > line 14, in <module> > > from . import canvas > > File > "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/__init__.py", > line 10, in <module> > > from .param import Param > > File > "/usr/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py", > line 11, in <module> > > from .. import ParamWidgets, Utils, Constants, Actions > > File > "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", > line 58, in <module> > > add_style_provider() > > File > "/usr/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", > line 53, in add_style_provider > > Gtk.StyleContext.add_provider_for_screen( > > TypeError: Argument 0 does not allow None as a value > > This looks like a problem with your Ubuntu 20.04 system image--it's > missing some configuration or something.  Not sure what. >   I'm not a Windows guy, nor do I know anything about WSL. Further > questions about *GNURADIO* should really be directed >   to the discuss-gnuradio mailing list, rather than here. > > IF you mix PPA packages and packages from the distribution, you'll be > in a world of hurt.  Don't do that. > > It turns out that the "gnuradio" package alone is enough to bring in > compatible versions of UHD and friends, so you shouldn't need >  to install anything other than that.  Until a couple of weeks ago, I > was running Ubuntu 20.04 on a real physical system, using a variety >  of SDR hardware including UHD (USRP) hardware without issue.  I > upgraded to Ubuntu 21.04 to get past a bug in Gnu Radio 3.8.1.0. >  I know this stuff works, but I have no experience with WSL. > > But like I had previously mentioned in this thread, you'll need to > dedicate a network port to your N310, and I have no idea how that >   works in the WSL environment, and perhaps someone with more > familiarity with WSL can comment. > > > > *_UHD Installation:_* > > ** > > *thangaraj@KOM1292:~$ sudo apt install uhd libuhd* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > E: Unable to locate package uhd > > E: Unable to locate package libuhd > > *thangaraj@KOM1292:~$ sudo apt-get install uhd libuhd* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > E: Unable to locate package uhd > > E: Unable to locate package libuhd > > *thangaraj@KOM1292:~$ sudo add-apt-repository ppa:ettusresearch/uhd* > > More info: > https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd > <https://launchpad.net/~ettusresearch/+archive/ubuntu/uhd> > > Press [ENTER] to continue or Ctrl-c to cancel adding it. > > Get:1 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal > InRelease [18.1 kB] > > Hit:2 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal > InRelease > > Hit:3 https://download.docker.com/linux/ubuntu > <https://download.docker.com/linux/ubuntu> focal InRelease > > Hit:4 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal > InRelease > > Hit:5 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal InRelease > > Get:6 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal-updates InRelease [114 kB] > > Get:7 http://security.ubuntu.com/ubuntu > <http://security.ubuntu.com/ubuntu> focal-security InRelease [114 kB] > > Get:8 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal-backports InRelease [101 kB] > > Get:9 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main > amd64 Packages [1048 B] > > Get:10 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main > Translation-en [600 B] > > Fetched 348 kB in 5s (68.1 kB/s) > > Reading package lists... Done > > *thangaraj@KOM1292:~$ sudo apt-get update* > > Hit:1 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal InRelease > > Hit:2 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal-updates InRelease > > Hit:3 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal InRelease > > Hit:4 https://download.docker.com/linux/ubuntu > <https://download.docker.com/linux/ubuntu> focal InRelease > > Hit:5 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal-backports InRelease > > Hit:6 http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-master/ubuntu> focal > InRelease > > Hit:7 http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu > <http://ppa.launchpad.net/gnuradio/gnuradio-releases/ubuntu> focal > InRelease > > Hit:8 http://security.ubuntu.com/ubuntu > <http://security.ubuntu.com/ubuntu> focal-security InRelease > > Reading package lists... Done > > *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev libuhd003 > uhd-host (failed)* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Package libuhd003 is not available, but is referred to by another > package. > > This may mean that the package is missing, has been obsoleted, or > > is only available from another source > > However the following packages replace it: > > libuhd3.15.0 > > E: Package 'libuhd003' has no installation candidate > > *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev > libuhd003.15.0 uhd-host (failed)* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > E: Unable to locate package libuhd003.15.0 > > E: Couldn't find any package by glob 'libuhd003.15.0' > > E: Couldn't find any package by regex 'libuhd003.15.0' > > *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev > libuhd003.14.0 uhd-host (failed)* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > E: Unable to locate package libuhd003.14.0 > > E: Couldn't find any package by glob 'libuhd003.14.0' > > E: Couldn't find any package by regex 'libuhd003.14.0' > > *thangaraj@KOM1292:~$ sudo apt-get install libuhd-dev uhd-host > (completed)* > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > The following additional packages will be installed: > > libuhd3.15.0 python-is-python2 python-tk > > Suggested packages: > > tix python-tk-dbg > > The following NEW packages will be installed: > > libuhd-dev python-is-python2 python-tk > > The following packages will be upgraded: > > libuhd3.15.0 uhd-host > > 2 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. > > Need to get 11.8 MB of archives. > > After this operation, 13.9 MB of additional disk space will be used. > > Do you want to continue? [Y/n] y > > Get:1 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal/universe amd64 > python-is-python2 all 2.7.17-4 [2496 B] > > Get:2 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main > amd64 uhd-host amd64 3.15.0.0-1-1ubuntu1~focal1 [5463 kB] > > Get:3 http://archive.ubuntu.com/ubuntu > <http://archive.ubuntu.com/ubuntu> focal/universe amd64 python-tk > amd64 2.7.18-1 [25.3 kB] > > Get:4 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main > amd64 libuhd3.15.0 amd64 3.15.0.0-1-1ubuntu1~focal1 [3061 kB] > > Get:5 http://ppa.launchpad.net/ettusresearch/uhd/ubuntu > <http://ppa.launchpad.net/ettusresearch/uhd/ubuntu> focal/main > amd64 libuhd-dev amd64 3.15.0.0-1-1ubuntu1~focal1 [3230 kB] > > Fetched 11.8 MB in 6s (2110 kB/s) > > (Reading database ... 105690 files and directories currently > installed.) > > Preparing to unpack > .../uhd-host_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... > > Unpacking uhd-host (3.15.0.0-1-1ubuntu1~focal1) over > (3.15.0.0-2build5) ... > > Selecting previously unselected package python-is-python2. > > Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ... > > Unpacking python-is-python2 (2.7.17-4) ... > > Preparing to unpack > .../libuhd3.15.0_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... > > Unpacking libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) over > (3.15.0.0-2build5) ... > > Selecting previously unselected package libuhd-dev. > > Preparing to unpack > .../libuhd-dev_3.15.0.0-1-1ubuntu1~focal1_amd64.deb ... > > Unpacking libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... > > Selecting previously unselected package python-tk. > > Preparing to unpack .../python-tk_2.7.18-1_amd64.deb ... > > Unpacking python-tk (2.7.18-1) ... > > Setting up python-tk (2.7.18-1) ... > > Setting up python-is-python2 (2.7.17-4) ... > > Setting up libuhd3.15.0:amd64 (3.15.0.0-1-1ubuntu1~focal1) ... > > Setting up libuhd-dev (3.15.0.0-1-1ubuntu1~focal1) ... > > Setting up uhd-host (3.15.0.0-1-1ubuntu1~focal1) ... > > sysctl: cannot stat /proc/sys/net/core/rmem_max: No such file or > directory > > sysctl: cannot stat /proc/sys/net/core/wmem_max: No such file or > directory > > Warning: Could not update sysctl settings for network devices. > > Processing triggers for man-db (2.9.1-1) ... > > Processing triggers for libc-bin (2.31-0ubuntu9.2) ... > > Looking forward to your kind response. > > Regards, > > Thangaraj > > *Von:*Marcus D. Leech <patchvonbraun@gmail.com> > <mailto:patchvonbraun@gmail.com> > *Gesendet:* Mittwoch, 22. September 2021 15:04 > *An:* Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net> > <mailto:thangaraj@komro.net>; usrp-users@lists.ettus.com > <mailto:usrp-users@lists.ettus.com> > *Betreff:* Re: AW: AW: AW: [USRP-users] Re: Help_Failed to build > UHD in Ubuntu 20.04 > > On 2021-09-22 7:47 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hello Marcus, > > As you mentioned, I have followed the step-by-step > installation guide, while building and installing UHD from > source code, it throws an error which I mentioned previously! > > thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake .. > > -- > > -- Configuring the python interpreter... > > -- Python interpreter: /usr/bin/python3 > > -- Override with: -DPYTHON_EXECUTABLE=<path-to-python> > > -- Python runtime interpreter: /usr/bin/python3 > > -- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python> > > -- Working off of feature or development branch. Updating > version number. > > -- Using UHD Images Directory: /usr/local/share/uhd/images > > -- Build type not specified: defaulting to release. > > -- > > -- Configuring Boost C++ Libraries... > > -- Looking for optional Boost components... > > -- Found Boost: > /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake > (found suitable version "1.71.0", minimum required is "1.53") > found components: python > > -- Looking for required Boost components... > > -- Found Boost: > /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake > (found suitable version "1.71.0", minimum required is "1.53") > found components: chrono date_time filesystem program_options > regex system unit_test_framework serialization thread > > -- Boost include directories: /usr/include > > -- Boost library directories: /usr/lib/x86_64-linux-gnu > > -- Boost libraries: > Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::system;Boost::unit_test_framework;Boost::serialization;Boost::thread > > CMake Warning (dev) at cmake/Modules/UHDLog.cmake:68 (set): > > implicitly converting 'FILE' to 'STRING' type. > > Call Stack (most recent call first): > > CMakeLists.txt:365 (include) > > This warning is for project developers.  Use -Wno-dev to > suppress it. > > -- > > -- Python checking for Python version 2.7 or greater > > -- Python checking for Python version 2.7 or greater - "assert > platform.python_version() >= '2.7' and > platform.python_version() < '3.0'" failed > > -- > > -- Python checking for Mako templates 0.4.2 or greater > > -- Python checking for Mako templates 0.4.2 or greater - found > > -- > > -- Python checking for requests 2.0 or greater > > -- Python checking for requests 2.0 or greater - found > > -- > > -- Python checking for numpy 1.7 or greater > > -- Python checking for numpy 1.7 or greater - found > > -- > > -- Configuring LibUHD support... > > -- Dependency Boost_FOUND = TRUE > > -- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = FALSE > > -- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE > > CMake Error at cmake/Modules/UHDComponent.cmake:59 (message): > > Dependencies for required component LibUHD not met. > > Call Stack (most recent call first): > > CMakeLists.txt:430 (LIBUHD_REGISTER_COMPONENT) > > -- Configuring incomplete, errors occurred! > > See also > "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeOutput.log". > > See also > "/home/thangaraj/workarea/uhd/host/build/CMakeFiles/CMakeError.log". > > *_Also, tried executing below commands but got the same above > output:_* > > thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake > -DPYTHON_EXECUTABLE=/usr/bin/python3 .. > > thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake > -DPYTHON_EXECUTABLE=/usr/bin/python3 > -DRUNTIME_PYTHON_EXECUTABLE=/usr/bin/python3 .. > > thangaraj@KOM1292:~/workarea/uhd/host/build$ /usr/bin/cmake .. > > thangaraj@KOM1292:~/workarea/uhd/host/build$ > PATH=/usr/bin:$PATH cmake .. > > thangaraj@KOM1292:~/workarea/uhd/host/build$ cmake > –DCMAKE_FIND_ROOT_PATH=/usr .. > > PFA CMake logfiles. > > I am stumbled with this UHD & GNU installation issue for > almost a week, it would great if anyone can help me out, I > would appreciate it and be very thankful! > > PS: I am using WSL-Windows Subsytem for Linux (running Ubuntu > 20.04.3 LTS)! > > Regards, > > Thangaraj > > This looks like you don't have a Python2.7 install on your > system--or it cannot be found. During the build.  What version of > UHD are you trying to build? > > Also, in Ubuntu 20.04, if you're just using Gnu Radio and not > doing RFNOC work, you can just use the pre-packaged versions of > UHD and Gnu Radio, and use >   apt-install to install them: > > sudo apt install gnuradio > sudp apt install uhd libuhd > > > >
MF
markus.freund@etit.tu-chemnitz.de
Fri, Sep 24, 2021 5:47 AM

Hello Thangaraj,

you need to check the  IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I guess it is the same with yours. You can first try to ping the device both on the host and the VM.

 

Best Markus

Hello Thangaraj, you need to check the  IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I guess it is the same with yours. You can first try to ping the device both on the host and the VM.   Best Markus
TM
Thangaraj Mukara Dhakshinamoorthy
Fri, Sep 24, 2021 9:06 AM

Hallo Markus,
The VM is not recognizing the Ettus N320, but the windows host can see and ping successfully!

In Windows Host OS:

C:\Program Files\UHD\bin>ipconfig

Windows-IP-Konfiguration

Unbekannter Adapter Management:

Verbindungsspezifisches DNS-Suffix:
IPv4-Adresse  . . . . . . . . . . : 10.2.35.84
Subnetzmaske  . . . . . . . . . . : 255.255.255.255
Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet:

Verbindungsspezifisches DNS-Suffix: fritz.box
Verbindungslokale IPv6-Adresse  . : fe80::e868:6c6:349a:434e%14
IPv4-Adresse  . . . . . . . . . . : 192.168.178.43
Subnetzmaske  . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.178.1

Ethernet-Adapter VirtualBox Host-Only Network:

Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse  . : fe80::68b9:4e91:4875:8e30%9
IPv4-Adresse  . . . . . . . . . . : 192.168.56.1
Subnetzmaske  . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet 2:

Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse  . : fe80::ec39:375b:1411:4ebb%4
IPv4-Adresse (Auto. Konfiguration): 169.254.78.187
Subnetzmaske  . . . . . . . . . . : 255.255.0.0
Standardgateway . . . . . . . . . :

C:\Program Files\UHD\bin>ping 169.254.78.187

Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten:
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Ping-Statistik für 169.254.78.187:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms

C:\Program Files\UHD\bin>uhd_find_devices.exe
[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release
[ERROR] [X300] X300 Network discovery error receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
No UHD Devices Found
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen

C:\Program Files\UHD\bin>uhd_usrp_probe.exe
[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address

In Virtualbox Ubuntu Guest OS:

thangz@thangz-VirtualBox:~/Desktop$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
inet6 fe80::99d7:4c84:8bab:2aff  prefixlen 64  scopeid 0x20<link>
ether 08:00:27:89:05:93  txqueuelen 1000  (Ethernet)
RX packets 1179  bytes 1293603 (1.2 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 757  bytes 79260 (79.2 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10<host>
loop  txqueuelen 1000  (Local Loopback)
RX packets 250  bytes 22074 (22.0 KB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 250  bytes 22074 (22.0 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Apparently, the Virtualbox is not recognizing the Ettus N320!

Looking forward to your kind advice.

Regards,
Thangaraj
Von: markus.freund@etit.tu-chemnitz.de markus.freund@etit.tu-chemnitz.de
Gesendet: Freitag, 24. September 2021 07:47
An: usrp-users@lists.ettus.com
Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

Hello Thangaraj,

you need to check the  IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I guess it is the same with yours. You can first try to ping the device both on the host and the VM.

Best Markus

Hallo Markus, The VM is not recognizing the Ettus N320, but the windows host can see and ping successfully! In Windows Host OS: C:\Program Files\UHD\bin>ipconfig Windows-IP-Konfiguration Unbekannter Adapter Management: Verbindungsspezifisches DNS-Suffix: IPv4-Adresse . . . . . . . . . . : 10.2.35.84 Subnetzmaske . . . . . . . . . . : 255.255.255.255 Standardgateway . . . . . . . . . : Ethernet-Adapter Ethernet: Verbindungsspezifisches DNS-Suffix: fritz.box Verbindungslokale IPv6-Adresse . : fe80::e868:6c6:349a:434e%14 IPv4-Adresse . . . . . . . . . . : 192.168.178.43 Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : 192.168.178.1 Ethernet-Adapter VirtualBox Host-Only Network: Verbindungsspezifisches DNS-Suffix: Verbindungslokale IPv6-Adresse . : fe80::68b9:4e91:4875:8e30%9 IPv4-Adresse . . . . . . . . . . : 192.168.56.1 Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : Ethernet-Adapter Ethernet 2: Verbindungsspezifisches DNS-Suffix: Verbindungslokale IPv6-Adresse . : fe80::ec39:375b:1411:4ebb%4 IPv4-Adresse (Auto. Konfiguration): 169.254.78.187 Subnetzmaske . . . . . . . . . . : 255.255.0.0 Standardgateway . . . . . . . . . : C:\Program Files\UHD\bin>ping 169.254.78.187 Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten: Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Ping-Statistik für 169.254.78.187: Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust), Ca. Zeitangaben in Millisek.: Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms C:\Program Files\UHD\bin>uhd_find_devices.exe [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release [ERROR] [X300] X300 Network discovery error receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen No UHD Devices Found [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen C:\Program Files\UHD\bin>uhd_usrp_probe.exe [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release Error: LookupError: KeyError: No devices found for -----> Empty Device Address In Virtualbox Ubuntu Guest OS: thangz@thangz-VirtualBox:~/Desktop$ ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::99d7:4c84:8bab:2aff prefixlen 64 scopeid 0x20<link> ether 08:00:27:89:05:93 txqueuelen 1000 (Ethernet) RX packets 1179 bytes 1293603 (1.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 757 bytes 79260 (79.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 250 bytes 22074 (22.0 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 250 bytes 22074 (22.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Apparently, the Virtualbox is not recognizing the Ettus N320! Looking forward to your kind advice. Regards, Thangaraj Von: markus.freund@etit.tu-chemnitz.de <markus.freund@etit.tu-chemnitz.de> Gesendet: Freitag, 24. September 2021 07:47 An: usrp-users@lists.ettus.com Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 Hello Thangaraj, you need to check the IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2. I guess it is the same with yours. You can first try to ping the device both on the host and the VM. Best Markus
MD
Marcus D. Leech
Fri, Sep 24, 2021 1:50 PM

On 2021-09-24 5:06 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

Hallo Markus,

The VM is not recognizing the Ettus N320, but the windows host can see
and ping successfully!

In Windows Host OS:

C:\Program Files\UHD\bin>ipconfig

Windows-IP-Konfiguration

Unbekannter Adapter Management:

Verbindungsspezifisches DNS-Suffix:

IPv4-Adresse  . . . . . . . . . . : 10.2.35.84

Subnetzmaske  . . . . . . . . . . : 255.255.255.255

Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet:

Verbindungsspezifisches DNS-Suffix: fritz.box

Verbindungslokale IPv6-Adresse  . : fe80::e868:6c6:349a:434e%14

IPv4-Adresse  . . . . . . . . . . : 192.168.178.43

Subnetzmaske  . . . . . . . . . . : 255.255.255.0

Standardgateway . . . . . . . . . : 192.168.178.1

Ethernet-Adapter VirtualBox Host-Only Network:

Verbindungsspezifisches DNS-Suffix:

Verbindungslokale IPv6-Adresse  . : fe80::68b9:4e91:4875:8e30%9

IPv4-Adresse  . . . . . . . . . . : 192.168.56.1

Subnetzmaske  . . . . . . . . . . : 255.255.255.0

Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet 2:

Verbindungsspezifisches DNS-Suffix:

Verbindungslokale IPv6-Adresse  . : fe80::ec39:375b:1411:4ebb%4

IPv4-Adresse (Auto. Konfiguration): 169.254.78.187

Subnetzmaske  . . . . . . . . . . : 255.255.0.0

Standardgateway . . . . . . . . . :

C:\Program Files\UHD\bin>ping 169.254.78.187

Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten:

Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Ping-Statistik für 169.254.78.187:

Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0

(0% Verlust),

Ca. Zeitangaben in Millisek.:

Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms

C:\Program Files\UHD\bin>uhd_find_devices.exe

[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000;
UHD_4.1.0.1-release

[ERROR] [X300] X300 Network discovery error receive_from: Eine
vorhandene Verbindung wurde vom Remotehost geschlossen

[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene
Verbindung wurde vom Remotehost geschlossen

[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene
Verbindung wurde vom Remotehost geschlossen

No UHD Devices Found

[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene
Verbindung wurde vom Remotehost geschlossen

C:\Program Files\UHD\bin>uhd_usrp_probe.exe

[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000;
UHD_4.1.0.1-release

Error: LookupError: KeyError: No devices found for ----->

Empty Device Address

In Virtualbox Ubuntu Guest OS:

__

thangz@thangz-VirtualBox:~/Desktop$ ifconfig

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255

inet6 fe80::99d7:4c84:8bab:2aff  prefixlen 64  scopeid 0x20<link>

ether 08:00:27:89:05:93  txqueuelen 1000  (Ethernet)

RX packets 1179  bytes 1293603 (1.2 MB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 757  bytes 79260 (79.2 KB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

inet 127.0.0.1  netmask 255.0.0.0

inet6 ::1  prefixlen 128  scopeid 0x10<host>

loop  txqueuelen 1000  (Local Loopback)

RX packets 250  bytes 22074 (22.0 KB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 250  bytes 22074 (22.0 KB)

      TX errors 0  dropped 0 overruns 0  carrier 0 collisions 0

Apparently, the Virtualbox is not recognizing the Ettus N320!

Looking forward to your kind advice.

Regards,

Thangaraj

*Von:*markus.freund@etit.tu-chemnitz.de
markus.freund@etit.tu-chemnitz.de
Gesendet: Freitag, 24. September 2021 07:47
An: usrp-users@lists.ettus.com
Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

Hello Thangaraj,

you need to check the  IP-Address of the virtual machine. There’s two
different addresses for each SFP on the USRP device. They are
depending on both the port and the speed. On mine (X310) they are
192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I
guess it is the same with yours. You can first try to ping the device
both on the host and the VM.

Best Markus


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Your PING example is pinging the IP address of the host, NOT the USRP
N320.  This will always succeed.

You'll need to change the IP address of that network interface to
192.168.10.1, so that it is on the same subnet as the USRP N320 default
address for the SFP0 port
  of 192.168.10.2.

Please read:

https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide#Probe_the_USRP

On 2021-09-24 5:06 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hallo Markus, > > The VM is not recognizing the Ettus N320, but the windows host can see > and ping successfully! > > *_In Windows Host OS:_* > > C:\Program Files\UHD\bin>ipconfig > > Windows-IP-Konfiguration > > Unbekannter Adapter Management: > > Verbindungsspezifisches DNS-Suffix: > > IPv4-Adresse  . . . . . . . . . . : 10.2.35.84 > > Subnetzmaske  . . . . . . . . . . : 255.255.255.255 > > Standardgateway . . . . . . . . . : > > Ethernet-Adapter Ethernet: > > Verbindungsspezifisches DNS-Suffix: fritz.box > > Verbindungslokale IPv6-Adresse  . : fe80::e868:6c6:349a:434e%14 > > IPv4-Adresse  . . . . . . . . . . : 192.168.178.43 > > Subnetzmaske  . . . . . . . . . . : 255.255.255.0 > > Standardgateway . . . . . . . . . : 192.168.178.1 > > Ethernet-Adapter VirtualBox Host-Only Network: > > Verbindungsspezifisches DNS-Suffix: > > Verbindungslokale IPv6-Adresse  . : fe80::68b9:4e91:4875:8e30%9 > > IPv4-Adresse  . . . . . . . . . . : 192.168.56.1 > > Subnetzmaske  . . . . . . . . . . : 255.255.255.0 > > Standardgateway . . . . . . . . . : > > Ethernet-Adapter Ethernet 2: > > Verbindungsspezifisches DNS-Suffix: > > Verbindungslokale IPv6-Adresse  . : fe80::ec39:375b:1411:4ebb%4 > > IPv4-Adresse (Auto. Konfiguration): *169.254.78.187* > > Subnetzmaske  . . . . . . . . . . : 255.255.0.0 > > Standardgateway . . . . . . . . . : > > C:\Program Files\UHD\bin>ping 169.254.78.187 > > Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten: > > Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 > > Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 > > Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 > > Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 > > Ping-Statistik für 169.254.78.187: > > Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 > > (0% Verlust), > > Ca. Zeitangaben in Millisek.: > > Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms > > C:\Program Files\UHD\bin>uhd_find_devices.exe > > [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; > UHD_4.1.0.1-release > > [ERROR] [X300] X300 Network discovery error receive_from: Eine > vorhandene Verbindung wurde vom Remotehost geschlossen > > [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene > Verbindung wurde vom Remotehost geschlossen > > [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene > Verbindung wurde vom Remotehost geschlossen > > No UHD Devices Found > > [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene > Verbindung wurde vom Remotehost geschlossen > > C:\Program Files\UHD\bin>uhd_usrp_probe.exe > > [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; > UHD_4.1.0.1-release > > Error: LookupError: KeyError: No devices found for -----> > > Empty Device Address > > *_In Virtualbox Ubuntu Guest OS:_* > > *__* > > thangz@thangz-VirtualBox:~/Desktop$ ifconfig > > enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500 > > inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255 > > inet6 fe80::99d7:4c84:8bab:2aff  prefixlen 64  scopeid 0x20<link> > > ether 08:00:27:89:05:93  txqueuelen 1000  (Ethernet) > > RX packets 1179  bytes 1293603 (1.2 MB) > > RX errors 0  dropped 0  overruns 0  frame 0 > > TX packets 757  bytes 79260 (79.2 KB) > > TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 > > lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536 > > inet 127.0.0.1  netmask 255.0.0.0 > > inet6 ::1  prefixlen 128  scopeid 0x10<host> > > loop  txqueuelen 1000  (Local Loopback) > > RX packets 250  bytes 22074 (22.0 KB) > > RX errors 0  dropped 0  overruns 0  frame 0 > > TX packets 250  bytes 22074 (22.0 KB) > >       TX errors 0  dropped 0 overruns 0  carrier 0 collisions 0 > > Apparently, the Virtualbox is not recognizing the Ettus N320! > > Looking forward to your kind advice. > > Regards, > > Thangaraj > > *Von:*markus.freund@etit.tu-chemnitz.de > <markus.freund@etit.tu-chemnitz.de> > *Gesendet:* Freitag, 24. September 2021 07:47 > *An:* usrp-users@lists.ettus.com > *Betreff:* [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 > > Hello Thangaraj, > > you need to check the  IP-Address of the virtual machine. There’s two > different addresses for each SFP on the USRP device. They are > depending on both the port and the speed. On mine (X310) they are > 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I > guess it is the same with yours. You can first try to ping the device > both on the host and the VM. > > Best Markus > > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com Your PING example is pinging the IP address of the host, NOT the USRP N320.  This will always succeed. You'll need to change the IP address of that network interface to 192.168.10.1, so that it is on the same subnet as the USRP N320 default address for the SFP0 port   of 192.168.10.2. Please read: https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide#Probe_the_USRP
TM
Thangaraj Mukara Dhakshinamoorthy
Mon, Sep 27, 2021 2:26 PM

Hallo Marcus,
Thank you very much! I changed the static IP address as mentioned in the guidelines. Now I can ping successfully but can’t execute the commands ‚uhd_find_devices‘ or ‚ uhd_usrp_probe‘! I guess this is due to mismatch in UHD version between host PC and USRP, or?

In Host PC (Linux):
Host OS: Windows 10
Guest OS: VirtualBox Ubuntu 20.04.3 LTS
UHD version: 3.15.0.0
GNU Radio version: 3.8.1.0
SDR Device : Ettus USRP N320

In Ettus N320:
UHD version: v3.14.1.1-0

How should I upgrade the UHD to v3.15.0.0 in USRP to the same version as in Host PC UHD and start running the example programs?

Console logs:

In Host PC (via Ethernet-USB cable on SFP+0 port):
thangz@thangz-VirtualBox:~/Desktop$ ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
64 bytes from 192.168.10.2: icmp_seq=1 ttl=63 time=3.15 ms
64 bytes from 192.168.10.2: icmp_seq=2 ttl=63 time=1.95 ms
64 bytes from 192.168.10.2: icmp_seq=3 ttl=63 time=1.98 ms
64 bytes from 192.168.10.2: icmp_seq=4 ttl=63 time=1.83 ms
^C
--- 192.168.10.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 1.826/2.223/3.147/0.535 ms
thangz@thangz-VirtualBox:~/Desktop$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
No UHD Devices Found
thangz@thangz-VirtualBox:~/Desktop$ uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address

In USRP (via SSH on mgmt port):
root@ni-n3xx-31F43B7:~# uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=127.0.0.1,type=n3xx,product=n320,serial=31F43B7,claimed=False
[INFO] [MPM.PeriphManager] init() called with device args mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal'. [INFO] [MPM.Rhodium-0] init() called with args mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal'
[INFO] [MPM.Rhodium-1] init() called with args `mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal'
[INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000320)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000320)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000001)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000001)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000)
[INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000)


/
|      Device: N300-Series Device
|    _____________________________________________________
|    /
|  |      Mboard: ni-n3xx-31F43B7
|  |  eeprom_version: 3
|  |  mpm_version: 3.14.1.1-g0347a6d8
|  |  pid: 16962
|  |  product: n320
|  |  rev: 10
|  |  rpc_connection: local
|  |  serial: 31F43B7
|  |  type: n3xx
|  |  MPM Version: 1.2
|  |  FPGA Version: 5.3
|  |  FPGA git hash: bb85bdf.clean
|  |  RFNoC capable: Yes
|  |
|  |  Time sources:  internal, external, gpsdo, sfp0
|  |  Clock sources: external, internal, gpsdo
|  |  Sensors: gps_sky, gps_gpgga, gps_tpv, fan, ref_locked, gps_locked, gps_time, temp
|  |    _____________________________________________________
|  |    /
|  |  |      RX Dboard: A
|  |  |  ID: Unknown (0x0152)
|  |  |  Serial: 31EFB2F
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      RX Frontend: 0
|  |  |  |  Name: Rhodium
|  |  |  |  Antennas: TX/RX, RX2, CAL, TERM
|  |  |  |  Sensors: lo_locked
|  |  |  |  Freq range: 1.000 to 6000.000 MHz
|  |  |  |  Gain range all: 0.0 to 60.0 step 1.0 dB
|  |  |  |  Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz
|  |  |  |  Connection Type:
|  |  |  |  Uses LO offset: No
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      RX Codec: A
|  |  |  |  Name: ad9695-625
|  |  |  |  Gain Elements: None
|  |    _____________________________________________________
|  |    /
|  |  |      RX Dboard: B
|  |  |  ID: Unknown (0x0152)
|  |  |  Serial: 31EFB59
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      RX Frontend: 0
|  |  |  |  Name: Rhodium
|  |  |  |  Antennas: TX/RX, RX2, CAL, TERM
|  |  |  |  Sensors: lo_locked
|  |  |  |  Freq range: 1.000 to 6000.000 MHz
|  |  |  |  Gain range all: 0.0 to 60.0 step 1.0 dB
|  |  |  |  Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz
|  |  |  |  Connection Type:
|  |  |  |  Uses LO offset: No
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      RX Codec: B
|  |  |  |  Name: ad9695-625
|  |  |  |  Gain Elements: None
|  |    _____________________________________________________
|  |    /
|  |  |      TX Dboard: A
|  |  |  ID: Unknown (0x0152)
|  |  |  Serial: 31EFB2F
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      TX Frontend: 0
|  |  |  |  Name: Rhodium
|  |  |  |  Antennas: TX/RX, CAL, TERM
|  |  |  |  Sensors: lo_locked
|  |  |  |  Freq range: 1.000 to 6000.000 MHz
|  |  |  |  Gain range all: 0.0 to 60.0 step 1.0 dB
|  |  |  |  Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz
|  |  |  |  Connection Type:
|  |  |  |  Uses LO offset: No
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      TX Codec: A
|  |  |  |  Name: dac37j82
|  |  |  |  Gain Elements: None
|  |    _____________________________________________________
|  |    /
|  |  |      TX Dboard: B
|  |  |  ID: Unknown (0x0152)
|  |  |  Serial: 31EFB59
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      TX Frontend: 0
|  |  |  |  Name: Rhodium
|  |  |  |  Antennas: TX/RX, CAL, TERM
|  |  |  |  Sensors: lo_locked
|  |  |  |  Freq range: 1.000 to 6000.000 MHz
|  |  |  |  Gain range all: 0.0 to 60.0 step 1.0 dB
|  |  |  |  Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz
|  |  |  |  Connection Type:
|  |  |  |  Uses LO offset: No
|  |  |    _____________________________________________________
|  |  |    /
|  |  |  |      TX Codec: B
|  |  |  |  Name: dac37j82
|  |  |  |  Gain Elements: None
|  |    _____________________________________________________
|  |    /
|  |  |      RFNoC blocks on this device:
|  |  |
|  |  |  * Replay_0
|  |  |  * Radio_0
|  |  |  * Radio_1
|  |  |  * DDC_0
|  |  |  * DDC_1
|  |  |  * DUC_0
|  |  |  * DUC_1
|  |  |  * FIFO_0
|  |  |  * FIFO_1

root@ni-n3xx-31F43B7:~# uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8

-- UHD Device 0

Device Address:
serial: 31F43B7
claimed: False
mgmt_addr: 127.0.0.1
product: n320
type: n3xx

Regards,
Thangaraj
Von: Marcus D. Leech patchvonbraun@gmail.com
Gesendet: Freitag, 24. September 2021 15:51
An: usrp-users@lists.ettus.com
Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

On 2021-09-24 5:06 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hallo Markus,
The VM is not recognizing the Ettus N320, but the windows host can see and ping successfully!

In Windows Host OS:

C:\Program Files\UHD\bin>ipconfig

Windows-IP-Konfiguration

Unbekannter Adapter Management:

Verbindungsspezifisches DNS-Suffix:
IPv4-Adresse  . . . . . . . . . . : 10.2.35.84
Subnetzmaske  . . . . . . . . . . : 255.255.255.255
Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet:

Verbindungsspezifisches DNS-Suffix: fritz.box
Verbindungslokale IPv6-Adresse  . : fe80::e868:6c6:349a:434e%14
IPv4-Adresse  . . . . . . . . . . : 192.168.178.43
Subnetzmaske  . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.178.1

Ethernet-Adapter VirtualBox Host-Only Network:

Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse  . : fe80::68b9:4e91:4875:8e30%9
IPv4-Adresse  . . . . . . . . . . : 192.168.56.1
Subnetzmaske  . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . :

Ethernet-Adapter Ethernet 2:

Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse  . : fe80::ec39:375b:1411:4ebb%4
IPv4-Adresse (Auto. Konfiguration): 169.254.78.187
Subnetzmaske  . . . . . . . . . . : 255.255.0.0
Standardgateway . . . . . . . . . :

C:\Program Files\UHD\bin>ping 169.254.78.187

Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten:
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128
Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128

Ping-Statistik für 169.254.78.187:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms

C:\Program Files\UHD\bin>uhd_find_devices.exe
[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release
[ERROR] [X300] X300 Network discovery error receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
No UHD Devices Found
[ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen

C:\Program Files\UHD\bin>uhd_usrp_probe.exe
[INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address

In Virtualbox Ubuntu Guest OS:

thangz@thangz-VirtualBox:~/Desktop$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
inet6 fe80::99d7:4c84:8bab:2aff  prefixlen 64  scopeid 0x20<link>
ether 08:00:27:89:05:93  txqueuelen 1000  (Ethernet)
RX packets 1179  bytes 1293603 (1.2 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 757  bytes 79260 (79.2 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10<host>
loop  txqueuelen 1000  (Local Loopback)
RX packets 250  bytes 22074 (22.0 KB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 250  bytes 22074 (22.0 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Apparently, the Virtualbox is not recognizing the Ettus N320!

Looking forward to your kind advice.

Regards,
Thangaraj
Von: markus.freund@etit.tu-chemnitz.demailto:markus.freund@etit.tu-chemnitz.de markus.freund@etit.tu-chemnitz.demailto:markus.freund@etit.tu-chemnitz.de
Gesendet: Freitag, 24. September 2021 07:47
An: usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com
Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

Hello Thangaraj,

you need to check the  IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2.  I guess it is the same with yours. You can first try to ping the device both on the host and the VM.

Best Markus


USRP-users mailing list -- usrp-users@lists.ettus.commailto:usrp-users@lists.ettus.com

To unsubscribe send an email to usrp-users-leave@lists.ettus.commailto:usrp-users-leave@lists.ettus.com
Your PING example is pinging the IP address of the host, NOT the USRP N320.  This will always succeed.

You'll need to change the IP address of that network interface to 192.168.10.1, so that it is on the same subnet as the USRP N320 default address for the SFP0 port
of 192.168.10.2.

Please read:

https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide#Probe_the_USRP

Hallo Marcus, Thank you very much! I changed the static IP address as mentioned in the guidelines. Now I can ping successfully but can’t execute the commands ‚uhd_find_devices‘ or ‚ uhd_usrp_probe‘! I guess this is due to mismatch in UHD version between host PC and USRP, or? In Host PC (Linux): Host OS: Windows 10 Guest OS: VirtualBox Ubuntu 20.04.3 LTS UHD version: 3.15.0.0 GNU Radio version: 3.8.1.0 SDR Device : Ettus USRP N320 In Ettus N320: UHD version: v3.14.1.1-0 How should I upgrade the UHD to v3.15.0.0 in USRP to the same version as in Host PC UHD and start running the example programs? Console logs: In Host PC (via Ethernet-USB cable on SFP+0 port): thangz@thangz-VirtualBox:~/Desktop$ ping 192.168.10.2 PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data. 64 bytes from 192.168.10.2: icmp_seq=1 ttl=63 time=3.15 ms 64 bytes from 192.168.10.2: icmp_seq=2 ttl=63 time=1.95 ms 64 bytes from 192.168.10.2: icmp_seq=3 ttl=63 time=1.98 ms 64 bytes from 192.168.10.2: icmp_seq=4 ttl=63 time=1.83 ms ^C --- 192.168.10.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 1.826/2.223/3.147/0.535 ms thangz@thangz-VirtualBox:~/Desktop$ uhd_find_devices [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release No UHD Devices Found thangz@thangz-VirtualBox:~/Desktop$ uhd_usrp_probe [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release Error: LookupError: KeyError: No devices found for -----> Empty Device Address In USRP (via SSH on mgmt port): root@ni-n3xx-31F43B7:~# uhd_usrp_probe [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8 [INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=127.0.0.1,type=n3xx,product=n320,serial=31F43B7,claimed=False [INFO] [MPM.PeriphManager] init() called with device args `mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal'. [INFO] [MPM.Rhodium-0] init() called with args `mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal' [INFO] [MPM.Rhodium-1] init() called with args `mgmt_addr=127.0.0.1,product=n320,time_source=internal,clock_source=internal' [INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004) [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000320) [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000320) [INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000001) [INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000001) [INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000) [INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000) [INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000) [INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000) _____________________________________________________ / | Device: N300-Series Device | _____________________________________________________ | / | | Mboard: ni-n3xx-31F43B7 | | eeprom_version: 3 | | mpm_version: 3.14.1.1-g0347a6d8 | | pid: 16962 | | product: n320 | | rev: 10 | | rpc_connection: local | | serial: 31F43B7 | | type: n3xx | | MPM Version: 1.2 | | FPGA Version: 5.3 | | FPGA git hash: bb85bdf.clean | | RFNoC capable: Yes | | | | Time sources: internal, external, gpsdo, sfp0 | | Clock sources: external, internal, gpsdo | | Sensors: gps_sky, gps_gpgga, gps_tpv, fan, ref_locked, gps_locked, gps_time, temp | | _____________________________________________________ | | / | | | RX Dboard: A | | | ID: Unknown (0x0152) | | | Serial: 31EFB2F | | | _____________________________________________________ | | | / | | | | RX Frontend: 0 | | | | Name: Rhodium | | | | Antennas: TX/RX, RX2, CAL, TERM | | | | Sensors: lo_locked | | | | Freq range: 1.000 to 6000.000 MHz | | | | Gain range all: 0.0 to 60.0 step 1.0 dB | | | | Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz | | | | Connection Type: | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | RX Codec: A | | | | Name: ad9695-625 | | | | Gain Elements: None | | _____________________________________________________ | | / | | | RX Dboard: B | | | ID: Unknown (0x0152) | | | Serial: 31EFB59 | | | _____________________________________________________ | | | / | | | | RX Frontend: 0 | | | | Name: Rhodium | | | | Antennas: TX/RX, RX2, CAL, TERM | | | | Sensors: lo_locked | | | | Freq range: 1.000 to 6000.000 MHz | | | | Gain range all: 0.0 to 60.0 step 1.0 dB | | | | Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz | | | | Connection Type: | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | RX Codec: B | | | | Name: ad9695-625 | | | | Gain Elements: None | | _____________________________________________________ | | / | | | TX Dboard: A | | | ID: Unknown (0x0152) | | | Serial: 31EFB2F | | | _____________________________________________________ | | | / | | | | TX Frontend: 0 | | | | Name: Rhodium | | | | Antennas: TX/RX, CAL, TERM | | | | Sensors: lo_locked | | | | Freq range: 1.000 to 6000.000 MHz | | | | Gain range all: 0.0 to 60.0 step 1.0 dB | | | | Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz | | | | Connection Type: | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | TX Codec: A | | | | Name: dac37j82 | | | | Gain Elements: None | | _____________________________________________________ | | / | | | TX Dboard: B | | | ID: Unknown (0x0152) | | | Serial: 31EFB59 | | | _____________________________________________________ | | | / | | | | TX Frontend: 0 | | | | Name: Rhodium | | | | Antennas: TX/RX, CAL, TERM | | | | Sensors: lo_locked | | | | Freq range: 1.000 to 6000.000 MHz | | | | Gain range all: 0.0 to 60.0 step 1.0 dB | | | | Bandwidth range: 250000000.0 to 250000000.0 step 0.0 Hz | | | | Connection Type: | | | | Uses LO offset: No | | | _____________________________________________________ | | | / | | | | TX Codec: B | | | | Name: dac37j82 | | | | Gain Elements: None | | _____________________________________________________ | | / | | | RFNoC blocks on this device: | | | | | | * Replay_0 | | | * Radio_0 | | | * Radio_1 | | | * DDC_0 | | | * DDC_1 | | | * DUC_0 | | | * DUC_1 | | | * FIFO_0 | | | * FIFO_1 root@ni-n3xx-31F43B7:~# uhd_find_devices [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8 -------------------------------------------------- -- UHD Device 0 -------------------------------------------------- Device Address: serial: 31F43B7 claimed: False mgmt_addr: 127.0.0.1 product: n320 type: n3xx Regards, Thangaraj Von: Marcus D. Leech <patchvonbraun@gmail.com> Gesendet: Freitag, 24. September 2021 15:51 An: usrp-users@lists.ettus.com Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 On 2021-09-24 5:06 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: Hallo Markus, The VM is not recognizing the Ettus N320, but the windows host can see and ping successfully! In Windows Host OS: C:\Program Files\UHD\bin>ipconfig Windows-IP-Konfiguration Unbekannter Adapter Management: Verbindungsspezifisches DNS-Suffix: IPv4-Adresse . . . . . . . . . . : 10.2.35.84 Subnetzmaske . . . . . . . . . . : 255.255.255.255 Standardgateway . . . . . . . . . : Ethernet-Adapter Ethernet: Verbindungsspezifisches DNS-Suffix: fritz.box Verbindungslokale IPv6-Adresse . : fe80::e868:6c6:349a:434e%14 IPv4-Adresse . . . . . . . . . . : 192.168.178.43 Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : 192.168.178.1 Ethernet-Adapter VirtualBox Host-Only Network: Verbindungsspezifisches DNS-Suffix: Verbindungslokale IPv6-Adresse . : fe80::68b9:4e91:4875:8e30%9 IPv4-Adresse . . . . . . . . . . : 192.168.56.1 Subnetzmaske . . . . . . . . . . : 255.255.255.0 Standardgateway . . . . . . . . . : Ethernet-Adapter Ethernet 2: Verbindungsspezifisches DNS-Suffix: Verbindungslokale IPv6-Adresse . : fe80::ec39:375b:1411:4ebb%4 IPv4-Adresse (Auto. Konfiguration): 169.254.78.187 Subnetzmaske . . . . . . . . . . : 255.255.0.0 Standardgateway . . . . . . . . . : C:\Program Files\UHD\bin>ping 169.254.78.187 Ping wird ausgeführt für 169.254.78.187 mit 32 Bytes Daten: Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Antwort von 169.254.78.187: Bytes=32 Zeit<1ms TTL=128 Ping-Statistik für 169.254.78.187: Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust), Ca. Zeitangaben in Millisek.: Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms C:\Program Files\UHD\bin>uhd_find_devices.exe [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release [ERROR] [X300] X300 Network discovery error receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen No UHD Devices Found [ERROR] [UHD] Device discovery error: receive_from: Eine vorhandene Verbindung wurde vom Remotehost geschlossen C:\Program Files\UHD\bin>uhd_usrp_probe.exe [INFO] [UHD] Win32; Microsoft Visual C++ version 14.1; Boost_107000; UHD_4.1.0.1-release Error: LookupError: KeyError: No devices found for -----> Empty Device Address In Virtualbox Ubuntu Guest OS: thangz@thangz-VirtualBox:~/Desktop$ ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::99d7:4c84:8bab:2aff prefixlen 64 scopeid 0x20<link> ether 08:00:27:89:05:93 txqueuelen 1000 (Ethernet) RX packets 1179 bytes 1293603 (1.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 757 bytes 79260 (79.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 250 bytes 22074 (22.0 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 250 bytes 22074 (22.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Apparently, the Virtualbox is not recognizing the Ettus N320! Looking forward to your kind advice. Regards, Thangaraj Von: markus.freund@etit.tu-chemnitz.de<mailto:markus.freund@etit.tu-chemnitz.de> <markus.freund@etit.tu-chemnitz.de><mailto:markus.freund@etit.tu-chemnitz.de> Gesendet: Freitag, 24. September 2021 07:47 An: usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> Betreff: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 Hello Thangaraj, you need to check the IP-Address of the virtual machine. There’s two different addresses for each SFP on the USRP device. They are depending on both the port and the speed. On mine (X310) they are 192.168.10.2 for the 1GBit/s and 192.168.30.2 or 192.168.40.2. I guess it is the same with yours. You can first try to ping the device both on the host and the VM. Best Markus _______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com> To unsubscribe send an email to usrp-users-leave@lists.ettus.com<mailto:usrp-users-leave@lists.ettus.com> Your PING example is pinging the IP address of the host, NOT the USRP N320. This will always succeed. You'll need to change the IP address of that network interface to 192.168.10.1, so that it is on the same subnet as the USRP N320 default address for the SFP0 port of 192.168.10.2. Please read: https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide#Probe_the_USRP
MD
Marcus D. Leech
Mon, Sep 27, 2021 3:00 PM

On 2021-09-27 10:26 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

Hallo Marcus,

Thank you very much! I changed the static IP address as mentioned in
the guidelines. Now I can ping successfully but can’t execute the
commands ‚uhd_find_devices‘ or ‚uhd_usrp_probe‘! I guess this is
due to mismatch in UHD version between host PC and USRP, or?

__

Try using an explicit device address string:

uhd_usrp_probe --args type=n3xx,product=n320

When you don't give a device address or use "find", the code has to use
an IP BROADCAST packet, which in many situations doesn't work.

On 2021-09-27 10:26 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hallo Marcus, > > Thank you very much! I changed the static IP address as mentioned in > the guidelines. Now I can ping successfully but can’t execute the > commands ‚*uhd_find_devices*‘ or ‚*uhd_usrp_probe*‘! I guess this is > due to mismatch in UHD version between host PC and USRP, or? > > __ > Try using an explicit device address string: uhd_usrp_probe --args type=n3xx,product=n320 When you don't give a device address or use "find", the code has to use an IP BROADCAST packet, which in many situations doesn't work.
TM
Thangaraj Mukara Dhakshinamoorthy
Mon, Sep 27, 2021 3:18 PM

Hallo Marcus,

Unfortunately, no change, it doesn’t work either!

In mgmt port interface:

root@ni-n3xx-31F43B7:/usr# uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8

-- UHD Device 0

Device Address:
serial: 31F43B7
claimed: False
mgmt_addr: 127.0.0.1
product: n320
type: n3xx

In SFP+0 interface:

thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
64 bytes from 192.168.10.2: icmp_seq=1 ttl=63 time=1.94 ms
64 bytes from 192.168.10.2: icmp_seq=2 ttl=63 time=1.95 ms
64 bytes from 192.168.10.2: icmp_seq=3 ttl=63 time=1.87 ms
64 bytes from 192.168.10.2: icmp_seq=4 ttl=63 time=2.05 ms
64 bytes from 192.168.10.2: icmp_seq=5 ttl=63 time=1.83 ms
^C
--- 192.168.10.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 1.834/1.927/2.045/0.073 ms

thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_usrp_probe --args type=n3xx,product=n320
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Device Address:
type: n3xx
product: n320

thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_usrp_probe --args "type=n3xx,product=n320, addr=192.168.10.2, serial=31F43B7"
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Device Address:
type: n3xx
product: n320
addr: 192.168.10.2
serial: 31F43B7

thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_find_devices --args="type=n3xx, product=n320, serial=31F43B7, addr= 192.168.10.2"
[INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release
No UHD Devices Found

Regards,
Thangaraj
Von: Marcus D. Leech patchvonbraun@gmail.com
Gesendet: Montag, 27. September 2021 17:01
An: Thangaraj Mukara Dhakshinamoorthy thangaraj@komro.net; usrp-users@lists.ettus.com
Betreff: Re: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04

On 2021-09-27 10:26 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:
Hallo Marcus,
Thank you very much! I changed the static IP address as mentioned in the guidelines. Now I can ping successfully but can’t execute the commands ‚uhd_find_devices‘ or ‚ uhd_usrp_probe‘! I guess this is due to mismatch in UHD version between host PC and USRP, or?

Try using an explicit device address string:

uhd_usrp_probe --args type=n3xx,product=n320

When you don't give a device address or use "find", the code has to use an IP BROADCAST packet, which in many situations doesn't work.

Hallo Marcus, Unfortunately, no change, it doesn’t work either! In mgmt port interface: root@ni-n3xx-31F43B7:/usr# uhd_find_devices [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106600; UHD_3.14.1.1-0-g0347a6d8 -------------------------------------------------- -- UHD Device 0 -------------------------------------------------- Device Address: serial: 31F43B7 claimed: False mgmt_addr: 127.0.0.1 product: n320 type: n3xx In SFP+0 interface: thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ ping 192.168.10.2 PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data. 64 bytes from 192.168.10.2: icmp_seq=1 ttl=63 time=1.94 ms 64 bytes from 192.168.10.2: icmp_seq=2 ttl=63 time=1.95 ms 64 bytes from 192.168.10.2: icmp_seq=3 ttl=63 time=1.87 ms 64 bytes from 192.168.10.2: icmp_seq=4 ttl=63 time=2.05 ms 64 bytes from 192.168.10.2: icmp_seq=5 ttl=63 time=1.83 ms ^C --- 192.168.10.2 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 1.834/1.927/2.045/0.073 ms thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_usrp_probe --args type=n3xx,product=n320 [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release Error: LookupError: KeyError: No devices found for -----> Device Address: type: n3xx product: n320 thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_usrp_probe --args "type=n3xx,product=n320, addr=192.168.10.2, serial=31F43B7" [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release Error: LookupError: KeyError: No devices found for -----> Device Address: type: n3xx product: n320 addr: 192.168.10.2 serial: 31F43B7 thangz@thangz-VirtualBox:/usr/lib/uhd/examples$ uhd_find_devices --args="type=n3xx, product=n320, serial=31F43B7, addr= 192.168.10.2" [INFO] [UHD] linux; GNU C++ version 9.3.0; Boost_107100; UHD_3.15.0.0-release No UHD Devices Found Regards, Thangaraj Von: Marcus D. Leech <patchvonbraun@gmail.com> Gesendet: Montag, 27. September 2021 17:01 An: Thangaraj Mukara Dhakshinamoorthy <thangaraj@komro.net>; usrp-users@lists.ettus.com Betreff: Re: AW: [USRP-users] Re: Help_Failed to build UHD in Ubuntu 20.04 On 2021-09-27 10:26 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: Hallo Marcus, Thank you very much! I changed the static IP address as mentioned in the guidelines. Now I can ping successfully but can’t execute the commands ‚uhd_find_devices‘ or ‚ uhd_usrp_probe‘! I guess this is due to mismatch in UHD version between host PC and USRP, or? Try using an explicit device address string: uhd_usrp_probe --args type=n3xx,product=n320 When you don't give a device address or use "find", the code has to use an IP BROADCAST packet, which in many situations doesn't work.
MD
Marcus D. Leech
Mon, Sep 27, 2021 4:20 PM

On 2021-09-27 11:18 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

Hallo Marcus,

Unfortunately, no change, it doesn’t work either!

The consensus inside NI/Ettus is that you'll have to upgrade your N320
to match your host.

This might be the most straightforward approach:

https://kb.ettus.com/Writing_the_USRP_File_System_Disk_Image_to_a_SD_Card

On 2021-09-27 11:18 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hallo Marcus, > > Unfortunately, no change, it doesn’t work either! > > The consensus inside NI/Ettus is that you'll have to upgrade your N320 to match your host. This might be the most straightforward approach: https://kb.ettus.com/Writing_the_USRP_File_System_Disk_Image_to_a_SD_Card
MD
Marcus D. Leech
Tue, Sep 28, 2021 2:18 AM

On 2021-09-27 11:18 a.m., Thangaraj Mukara Dhakshinamoorthy wrote:

Hallo Marcus,

Unfortunately, no change, it doesn’t work either!

On 2021-09-27 11:18 a.m., Thangaraj Mukara Dhakshinamoorthy wrote: > > Hallo Marcus, > > Unfortunately, no change, it doesn’t work either! > > Also, check out this document: https://kb.ettus.com/Troubleshooting_N310/N320_Device_Discovery_Issues_* *_