GNU Radio + UHD install

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

./bootstrap

PKG_CONFIG_PATH=~/gnuradio-uhd/uhd/host/build/
export PKG_CONFIG_PATH
./configure --enable-gr-uhd

make
make check
sudo make install
sudo ldconfig

sudo ifconfig eth0 192.168.10.1 # substitute eth0 with the
appropriate device.

I used the GUI System->Preference->Network Connections to make the
network setting permanent.

Hi marc,
When i am typing the follwing thing

       git branch --track next origin/next
       git checkout next

its giving error that fatal:not a valid object name : ‘origin next’

Marc E.-3 wrote:

git clone git://gnuradio.org/gnuradio.git
cd ~/gnuradio-uhd/gnuradio
make check


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31571389.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi marc,
When i am typing the follwing thing

        git branch --track next origin/next
        git checkout next

its giving error that fatal:not a valid object name : ‘origin next’

You might try:

http://www.sbrac.org/files/build-gnuradio

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
http://www.sbrac.org

Hi Marcus thanks for the script a lot.
I saved it as build-gnuradio.sh

I ran that script but after pressing “yes” its giving following error
which
I am unable to debug

./build-gnuradio.sh: 52: function not found
./build-gnuradio.sh:73:syntax error: “}” unexpected

Thanks

Marcus D. Leech wrote:


https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572168.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Sun, May 8, 2011 at 5:40 PM, sumitstop
[email protected]wrote:

Hi marc,
When i am typing the follwing thing

      git branch --track next origin/next
      git checkout next

its giving error that fatal:not a valid object name : ‘origin next’

There is currently no next branch. The master branch is the current most
up-to-date/advanced branch.

Tom

Thanks Tom.

Tom R. wrote:

its giving error that fatal:not a valid object name : ‘origin next’

cd ~/gnuradio-uhd
sudo ldconfig

I used the GUI System->Preference->Network Connections to make the

Sent from the GnuRadio mailing list archive at Nabble.com.
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572171.html
Sent from the GnuRadio mailing list archive at Nabble.com.

**Sorry for spamming.I thought I lost the thread :frowning:

Hi Marcus thanks for the script a lot.
I saved it as build-gnuradio.sh

I ran that script but after pressing “yes” its giving following error
which
I am unable to debug

./build-gnuradio.sh: 52: function not found
./build-gnuradio.sh:73:syntax error: “}” unexpected

Thanks

Marcus D. Leech wrote:


https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572242.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi Marcus thanks for the script a lot.
I saved it as build-gnuradio.sh

I ran that script but after pressing “yes” its giving following error
which
I am unable to debug

./build-gnuradio.sh: 52: function not found
./build-gnuradio.sh:73:syntax error: “}” unexpected

Thanks

Marcus D. Leech wrote:


https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572226.html
Sent from the GnuRadio mailing list archive at Nabble.com.

./build-gnuradio.sh:73:syntax error: “}” unexpected

Thanks

Re-save as just “build-gnuradio”, and:

chmod 755 build-gnuradio

./build-gnuradio

I assume that you used “sh build-gnuradio.sh”, which, on Ubuntu (because
their /bin/sh isn’t BASH), it
executed under the wrong shell interpreter.


Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

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

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572670.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi Marcus,
I followed all of your step-by-step instructions and after installation,
the
uhd_find_devices command returns:

linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.001.000-d11bb4e

– UHD Device 0

Device Address:
type: usrp2
addr: 192.168.10.2
name:
serial:

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.

Vlad.

Marcus D. Leech wrote:

Principal Investigator


View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31610273.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 05/13/2011 06:39 AM, Vladutzzz wrote:

addr: 192.168.10.2
self.usrp2_source_xxxx_0 = usrp2.source_32fc()

the GRC flow graph.

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
http://www.sbrac.org

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.


View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31610598.html
Sent from the GnuRadio mailing list archive at Nabble.com.

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.


View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31611803.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 05/13/2011 03:39 AM, Vladutzzz wrote:

type: usrp2
addr: 192.168.10.2
name:
serial:

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

Get the images from here
http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Binary-downloads

-Josh

Thanks Josh!
It’s working fine now.

Vlad.

Josh B.-3 wrote:

-Josh


View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31627574.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Marc E. wrote in post #936487:

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

./bootstrap

PKG_CONFIG_PATH=~/gnuradio-uhd/uhd/host/build/
export PKG_CONFIG_PATH
./configure --enable-gr-uhd

make
make check
sudo make install
sudo ldconfig

sudo ifconfig eth0 192.168.10.1 # substitute eth0 with the
appropriate device.

I used the GUI System->Preference->Network Connections to make the
network setting permanent.

Hi Marc,
after I give the ./configure --enable-gr-uhd
i get the following error.
Configure:error: Could not link against libboost_system!

Could you help me with this? Awaiting your kind reply.

Regards,
Nekkanti

Hi Marc,

After I enter the “./configure --enable-gr-uhd” and then enter “make”
i get some error,

_32fc_a.h:11: undefined reference to `powf’
/usr/bin/ld.bfd.real: final link failed: Invalid operation
collect2: ld returned 1 exit status

Could you help me to solve this problem?

by the way, I used the USRP E100,
could I enter “./configure --disable-volk --disable-usrp2
–disable-usrp1 --disable-gr-video-sdl --enable-gr-uhd”?

Awaiting for your kind reply.
Thank you very much.

Regards,
Shu-Ching

Hi Marcus
Yes I did “sh build-gnuradio.sh” actually in the beginning.
But now its working with the modifications you said.

Its really too helpful script for first time users :slight_smile:
Thanks

Marcus D. Leech wrote:

Principal Investigator


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/GNU-Radio-%2B-UHD-install-tp29561741p31572592.html
Sent from the GnuRadio mailing list archive at Nabble.com.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs