| | 1 | = Installation procedure for UHD 003.005.000 and GNU Radio v3.6.3 on Ubuntu v12.04 = |
| | 2 | |
| | 3 | 1. Load baseline-5.4.ndz 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_000.tar.gz |
| | 8 | > tar -zxvf release_003_005_000.tar.gz |
| | 9 | > [rename UHD directory to 'uhd'] |
| | 10 | }}} |
| | 11 | b. Download prerequisites for UHD |
| | 12 | {{{ |
| | 13 | > apt-get install libboost1.48-all-dev libusb-1.0-0-dev python-cheetah doxygen python-docutils |
| | 14 | > apt-get install git cmake libncurses5-dev libfftw3-3 libfftw3-dev |
| | 15 | }}} |
| | 16 | c. Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies) |
| | 17 | {{{ |
| | 18 | > cd uhd/host |
| | 19 | > mkdir build |
| | 20 | > cd build |
| | 21 | > cmake ../ |
| | 22 | > make |
| | 23 | > make test |
| | 24 | > make install |
| | 25 | }}} |
| | 26 | d. Set up library path |
| | 27 | {{{ |
| | 28 | > echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf |
| | 29 | > ldconfig |
| | 30 | }}} |
| | 31 | e. Update network interfaces to enable eth2. Add following line to /etc/network/interfaces |
| | 32 | {{{ |
| | 33 | auto eth2 |
| | 34 | iface eth2 inet static |
| | 35 | address 192.168.10.1 |
| | 36 | netmask 255.255.255.0 |
| | 37 | broadcast 192.168.10.255 |
| | 38 | }}} |
| | 39 | f. Add following lines to /etc/sysctl.conf |
| | 40 | {{{ |
| | 41 | net.core.rmem_max=50000000 |
| | 42 | net.core.wmem_max=1048576 |
| | 43 | }}} |
| | 44 | |
| | 45 | 3. Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide) |
| | 46 | a. Get source code in tarball |
| | 47 | {{{ |
| | 48 | > wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.3.tar.gz |
| | 49 | > tar -zxvf gnuradio-3.6.3.tar.gz |
| | 50 | > mv gnuradio-3.6.3 gnuradio |
| | 51 | }}} |
| | 52 | b. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall) |
| | 53 | {{{ |
| | 54 | 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 |
| | 55 | }}} |
| | 56 | c. Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process) |
| | 57 | {{{ |
| | 58 | > cd gnuradio |
| | 59 | > mkdir build |
| | 60 | > cd build |
| | 61 | > cmake ../ |
| | 62 | > make |
| | 63 | > make test |
| | 64 | > make install |
| | 65 | }}} |
| | 66 | d. Set up Python path variable |
| | 67 | {{{ |
| | 68 | > PYTHONPATH=/usr/local/lib/python2.7/dist-packages/ |
| | 69 | > export PYTHONPATH |
| | 70 | > ldconfig |
| | 71 | }}} |