| 1 | = Installation procedure for UHD 003.005.002 and GNU Radio v3.6.4.1 on Ubuntu v12.04 = |
| 2 | |
| 3 | 1. Load baseline image onto node |
| 4 | 2. Build UHD from source code (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build) |
| 5 | a. Download source tar ball: |
| 6 | {{{ |
| 7 | wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz |
| 8 | tar -zxvf release_003_005_002.tar.gz |
| 9 | mv UHD-Mirror-release_003_005_002/ uhd |
| 10 | }}} |
| 11 | b. Download prerequisites for UHD |
| 12 | {{{ |
| 13 | 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 |
| 14 | }}} |
| 15 | c. Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies) |
| 16 | {{{ |
| 17 | cd uhd/host |
| 18 | mkdir build |
| 19 | cd build |
| 20 | cmake ../ |
| 21 | make |
| 22 | make test |
| 23 | make install |
| 24 | }}} |
| 25 | d. Set up library path |
| 26 | {{{ |
| 27 | echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf |
| 28 | ldconfig |
| 29 | }}} |
| 30 | e. Update network interfaces to enable eth2. Add following line to /etc/network/interfaces |
| 31 | {{{ |
| 32 | auto eth2 |
| 33 | iface eth2 inet static |
| 34 | address 192.168.10.1 |
| 35 | netmask 255.255.255.0 |
| 36 | broadcast 192.168.10.255 |
| 37 | }}} |
| 38 | f. Add following lines to /etc/sysctl.conf |
| 39 | {{{ |
| 40 | net.core.rmem_max=50000000 |
| 41 | net.core.wmem_max=1048576 |
| 42 | }}} |
| 43 | |
| 44 | 3. Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide) |
| 45 | a. Get source code in tarball |
| 46 | {{{ |
| 47 | wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz |
| 48 | tar -zxvf gnuradio-3.6.4.1.tar.gz |
| 49 | mv gnuradio-3.6.4.1 gnuradio |
| 50 | }}} |
| 51 | b. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall) |
| 52 | {{{ |
| 53 | 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 |
| 54 | }}} |
| 55 | c. Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process) |
| 56 | {{{ |
| 57 | cd gnuradio |
| 58 | mkdir build |
| 59 | cd build |
| 60 | cmake ../ |
| 61 | make |
| 62 | make test |
| 63 | make install |
| 64 | }}} |
| 65 | d. Set up Python path variable |
| 66 | {{{ |
| 67 | PYTHONPATH=/usr/local/lib/python2.7/dist-packages/ |
| 68 | export PYTHONPATH |
| 69 | ldconfig |
| 70 | }}} |
| 71 | |
| 72 | 4. Finally reboot the node. |
| 73 | 5. To test out the UHD install |
| 74 | {{{ |
| 75 | uhd_find_devices |
| 76 | }}} |
| 77 | and |
| 78 | {{{ |
| 79 | uhd_usrp_probe |
| 80 | }}} |
| 81 | |
| 82 | 6. To test out gnu radio install |
| 83 | {{{ |
| 84 | gnuradio-config-info -v |
| 85 | }}} |