Table of Contents
Installation procedure for UHD 003.005.002 and GNU Radio v3.6.4.1 on Ubuntu v12.04
Source installation
- Load baseline ubuntu 12.04 image onto node
- Build UHD from source code (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build)
- From the root directory download the source tar ball:
root@node1-1:~# wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz root@node1-1:~# tar -zxvf release_003_005_002.tar.gz root@node1-1:~# mv UHD-Mirror-release_003_005_002/ uhd
- Download prerequisites for UHD
root@node1-1:~# apt-get update root@node1-1:~# apt-get -y install emacs libboost1.48-all-dev libusb-1.0-0-dev python-cheetah doxygen python-docutils git cmake libncurses5-dev libfftw3-3 libfftw3-dev
- Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies)
root@node1-1:~# cd uhd/host root@node1-1:~/uhd/host# mkdir build root@node1-1:~/uhd/host# cd build root@node1-1:~/uhd/host/build# cmake ../ root@node1-1:~/uhd/host/build# make root@node1-1:~/uhd/host/build# make test root@node1-1:~/uhd/host/build# make install
- Set up library path
root@node1-1:~# echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf root@node1-1:~# ldconfig
- Update network interfaces to enable eth2. Add following line to /etc/network/interfaces
auto eth2 iface eth2 inet static address 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
- Add following lines to /etc/sysctl.conf
net.core.rmem_max=50000000 net.core.wmem_max=1048576
- From the root directory download the source tar ball:
- Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide)
- From the root directory get source code in tarball
root@node1-1:~# wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz root@node1-1:~# tar -zxvf gnuradio-3.6.4.1.tar.gz root@node1-1:~# mv gnuradio-3.6.4.1 gnuradio
- Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)
root@node1-1:~# apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost1.48-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk2.8 git-core guile-1.8-dev libqt4-dev python-numpy ccache python-opengl libgsl0-dev python-cheetah python-lxml doxygen qt4-dev-tools libusb-1.0-0-dev libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4 cmake git-core wget libxi-dev python-docutils gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 libasound2-dev python-gtk2
- Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process)
root@node1-1:~# cd gnuradio root@node1-1:~/gnuradio# mkdir build root@node1-1:~/gnuradio/build# cd build root@node1-1:~/gnuradio/build# cmake ../ root@node1-1:~/gnuradio/build# make root@node1-1:~/gnuradio/build# make test root@node1-1:~/gnuradio/build# make install
- Set up Python path variable
root@node1-1:~# PYTHONPATH=/usr/local/lib/python2.7/dist-packages/ root@node1-1:~# export PYTHONPATH root@node1-1:~# ldconfig
- From the root directory get source code in tarball
- Finally reboot the node and then ssh back in.
root@node1-1:~# reboot
- To test out the UHD install
root@node1-1:~# uhd_find_devices
androot@node1-1:~# uhd_usrp_probe
- To test out gnu radio install
root@node1-1:~# gnuradio-config-info -v
Binary installation from Ettus repository (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Linux)
- Load baseline ubuntu 12.04 image onto node
- Add Ettus repository
root@node1-1:~# bash -c 'echo "deb http://files.ettus.com/binaries/uhd_stable/repo/uhd/ubuntu/`lsb_release -cs` `lsb_release -cs` main" > /etc/apt/sources.list.d/ettus.list' root@node1-1:~# bash -c 'echo "deb http://files.ettus.com/binaries/uhd_stable/repo/gnuradio/ubuntu/`lsb_release -cs` `lsb_release -cs` main" >> /etc/apt/sources.list.d/ettus.list'
- Update and install
root@node1-1:~# apt-get update root@node1-1:~# apt-get install -t `lsb_release -cs` uhd gnuradio
- Update network interfaces to enable eth2. Add following line to /etc/network/interfaces
auto eth2 iface eth2 inet static address 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
- Add following lines to /etc/sysctl.conf
net.core.rmem_max=50000000 net.core.wmem_max=1048576
Last modified
10 years ago
Last modified on Sep 11, 2014, 8:53:17 PM
Note:
See TracWiki
for help on using the wiki.