Yesterday I did a ground-up install of GNU Radio for UHD. Since all the
steps were kind of scattered around various websites and list posts, I
thought I’d post them all in one place. Hopefully this’ll make it easier
for the next guy. This was on Ubuntu 10.04. You’ll need all the
prerequisites (e.g. cmake) first, of course. Corrections are welcome.
mkdir ~/gnuradio-uhd
cd ~/gnuradio-uhd
git clone git://ettus.sourcerepo.com/ettus/uhd.git
git clone git://gnuradio.org/gnuradio.git
cd ~/gnuradio-uhd/uhd/host/
mkdir build
cd build
cmake …/
make
make test
sudo make install
sudo ldconfig
cd ~/gnuradio-uhd/gnuradio
git branch --track next origin/next
git checkout next
Which takes care of GIT-uploading the very latest UHD, GnuRadio, and
USRP Firmware to your system and building it. It also
takes care of the pre-requisites. It works on Fedora 12 through 14
and Ubuntu 9.04 and newer. You might want to give
it a try, rather than attempting to do things “piecemeal”.
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
Hi Marcus ,
Will the UHD and FPGA/FIRMWARE installed work for USRP2 devices as well
?
Because the installation is finished now and its saying about USRP1
only.
I have USRP2 motherboards.
Marcus D. Leech wrote:
Principal Investigator
Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India
Although UHD seems to function appropriately, when running GRC in sudo,
and
pressing the Execute flow graph button, the following error is
returned:
Traceback (most recent call last):
File “/home/vl/grc_files/top_block.py”, line 52, in
tb = top_block()
File “/home/vl/grc_files/top_block.py”, line 30, in init
self.usrp2_source_xxxx_0 = usrp2.source_32fc()
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/usrp2/usrp2_swig.py”,
line
725, in source_32fc
return _usrp2_swig.source_32fc(ifc, mac)
RuntimeError: No USRPs found on interface eth0
I proceeded to uninstalling GNURadio and UHD and then running the code
build-gnuradio from the link you provided above.
After installation and logging out, the same pattern emerges.
The uhd_find_devices command has the same output as before, as does
running
the GRC flow graph.
Could it be possible that I didn’t uninstall the components correctly?
(although the scrip says it does that too)
My fpga and firmware images are u2_rev3_uhd_20100706.bin and
txrx_uhd_20100706.bin
My setup is USRP2 + WBX
Thanks.
If what you report about your firmware images is accurate, then they’re
horribly out of date.
The build-gnuradio script will have downloaded the latest firmware
images, which you should program
into your USRP2.
Also, you’re using the wrong source block in GRC–you need a UHD block,
not a (traditional) USRP2
block. UHD has a completely different set of source/sink blocks than
“traditional”, although the
“traditional” blocks are still there in GRC.
–
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
Hi Marcus,
I figured that the firmware might be out of date especially since they
are
almost a year old (this is why I mentioned them).
Since I’m new to UHD could you tell me where exactly are they located in
the
UHD folder.
Is there any further compiling necessary in order to obtain the .bin
files
(as I suspect there is)?
How would I normally get those images (without using the build-uhd
script)?
block. UHD has a completely different set of source/sink blocks than
“traditional”, although the
“traditional” blocks are still there in GRC.
Never mind, I managed to answer my own question:
For those of you who might be interested, the UHD images can be found
locally if you used the above script at (at least on my computer):
/usr/local/share/uhd/images
while if you want to download the UHD images manually you can go to http://code.ettus.com/redmine/ettus/projects/uhd/wiki http://code.ettus.com/redmine/ettus/projects/uhd/wiki a then click on
the
blue link that says “Download images from master branch”.
In the downloaded archive you will find images for USRP1, USRP2, USRP
E100,
N200 and N210 both for FPGA and for firmaware (fw).
Vlad Stoianovici wrote:
not a (traditional) USRP2
block. UHD has a completely different set of source/sink blocks than
“traditional”, although the
“traditional” blocks are still there in GRC.
UHD seems to communicate, but the firmware images are likely out of date
since the serial is not read.
“/usr/local/lib/python2.6/dist-packages/gnuradio/usrp2/usrp2_swig.py”, line
725, in source_32fc
return _usrp2_swig.source_32fc(ifc, mac)
RuntimeError: No USRPs found on interface eth0
This is an error for the old gnuradio/usrp2 driver. You will want to use
the gr-uhd blocks instead.
I proceeded to uninstalling GNURadio and UHD and then running the code
build-gnuradio from the link you provided above.
After installation and logging out, the same pattern emerges.
The uhd_find_devices command has the same output as before, as does running
the GRC flow graph.
Could it be possible that I didn’t uninstall the components correctly?
(although the scrip says it does that too)
My fpga and firmware images are u2_rev3_uhd_20100706.bin and
txrx_uhd_20100706.bin
Yesterday I did a ground-up install of GNU Radio for UHD. Since all the
steps were kind of scattered around various websites and list posts, I
thought I’d post them all in one place. Hopefully this’ll make it easier
for the next guy. This was on Ubuntu 10.04. You’ll need all the
prerequisites (e.g. cmake) first, of course. Corrections are welcome.
mkdir ~/gnuradio-uhd
cd ~/gnuradio-uhd
git clone git://ettus.sourcerepo.com/ettus/uhd.git
git clone git://gnuradio.org/gnuradio.git
cd ~/gnuradio-uhd/uhd/host/
mkdir build
cd build
cmake …/
make
make test
sudo make install
sudo ldconfig
cd ~/gnuradio-uhd/gnuradio
git branch --track next origin/next
git checkout next