Changes between Initial Version and Version 1 of Documentation/dSDR/GNURadio/InstallationOnUbuntu12.04


Ignore:
Timestamp:
May 14, 2013, 9:10:51 PM (11 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/dSDR/GNURadio/InstallationOnUbuntu12.04

    v1 v1  
     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{{{
     7wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz
     8tar -zxvf release_003_005_002.tar.gz
     9mv UHD-Mirror-release_003_005_002/ uhd
     10}}}
     11  b. Download prerequisites for UHD
     12{{{
     13apt-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{{{
     17cd uhd/host
     18mkdir build
     19cd build
     20cmake ../
     21make
     22make test
     23make install
     24}}}
     25  d. Set up library path
     26{{{
     27echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf
     28ldconfig
     29}}}
     30  e. Update network interfaces to enable eth2. Add following line to /etc/network/interfaces
     31{{{
     32auto eth2
     33iface eth2 inet static
     34address 192.168.10.1
     35netmask 255.255.255.0
     36broadcast 192.168.10.255
     37}}}
     38  f. Add following lines to /etc/sysctl.conf
     39{{{
     40net.core.rmem_max=50000000
     41net.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{{{
     47wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz
     48tar -zxvf gnuradio-3.6.4.1.tar.gz
     49mv gnuradio-3.6.4.1 gnuradio
     50}}}
     51  b. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)
     52{{{
     53apt-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{{{
     57cd gnuradio
     58mkdir build
     59cd build
     60cmake ../
     61make
     62make test
     63make install
     64}}}
     65  d. Set up Python path variable
     66{{{
     67PYTHONPATH=/usr/local/lib/python2.7/dist-packages/
     68export PYTHONPATH
     69ldconfig
     70}}}
     71
     72 4. Finally reboot the node.
     73 5. To test out the UHD install
     74{{{
     75uhd_find_devices
     76}}}
     77 and
     78{{{
     79uhd_usrp_probe
     80}}}
     81
     82 6. To test out gnu radio install
     83{{{
     84gnuradio-config-info -v
     85}}}