wiki:Internal/SDR/NodeImage

Version 4 (modified by nilanjan, 12 years ago) ( diff )

Installation procedure for UHD 003.005.000 and GNU Radio v3.6.3 on Ubuntu v12.04

  1. Load baseline-5.4.ndz onto node
  2. Build UHD from source code (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build)
    1. Download source tar ball:
      > wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_000.tar.gz
      > tar -zxvf release_003_005_000.tar.gz
      > mv uhd_003_005_000 uhd
      
    2. Download prerequisites for UHD
      > apt-get install libboost1.48-all-dev libusb-1.0-0-dev python-cheetah doxygen python-docutils
      > apt-get install git cmake libncurses5-dev libfftw3-3 libfftw3-dev
      
    3. Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies)
      > cd uhd/host
      > mkdir build
      > cd build
      > cmake ../
      > make
      > make test
      > make install
      
    4. Set up library path
      > echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf
      > ldconfig
      
    5. 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
      
    6. Add following lines to /etc/sysctl.conf
      net.core.rmem_max=50000000
      net.core.wmem_max=1048576
      
  1. Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide)
    1. Get source code in tarball
      > wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.3.tar.gz
      > tar -zxvf gnuradio-3.6.3.tar.gz
      > mv gnuradio-3.6.3 gnuradio
      
    2. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)
      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
      
    3. Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process)
      > cd gnuradio
      > mkdir build
      > cd build
      > cmake ../
      > make
      > make test
      > make install
      
    4. Set up Python path variable
      > PYTHONPATH=/usr/local/lib/python2.7/dist-packages/
      > export PYTHONPATH
      > ldconfig
      

Finally reboot the node. To test out the UHD install

> uhd_find_devices

To test out gnu radio install

> gnuradio-config-info -v
Note: See TracWiki for help on using the wiki.