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


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

Legend:

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

    v1 v2  
    11= Installation procedure for UHD 003.005.002 and GNU Radio v3.6.4.1 on Ubuntu v12.04 =
    22
    3  1. Load baseline image onto node
     3 1. Load baseline ubuntu 12.04 image onto node
    44 2. Build UHD from source code (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build)
    5   a. Download source tar ball:
     5  a. From the root directory download the source tar ball:
    66{{{
    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
     7root@node1-1:~# wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz
     8root@node1-1:~# tar -zxvf release_003_005_002.tar.gz
     9root@node1-1:~# mv UHD-Mirror-release_003_005_002/ uhd
    1010}}}
    1111  b. Download prerequisites for UHD
    1212{{{
    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
     13root@node1-1:~# apt-get update
     14root@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
    1415}}}
    1516  c. Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies)
    1617{{{
    17 cd uhd/host
    18 mkdir build
    19 cd build
    20 cmake ../
    21 make
    22 make test
    23 make install
     18root@node1-1:~# cd uhd/host
     19root@node1-1:~/uhd/host# mkdir build
     20root@node1-1:~/uhd/host# cd build
     21root@node1-1:~/uhd/host/build# cmake ../
     22root@node1-1:~/uhd/host/build# make
     23root@node1-1:~/uhd/host/build# make test
     24root@node1-1:~/uhd/host/build# make install
    2425}}}
    2526  d. Set up library path
    2627{{{
    27 echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf
    28 ldconfig
     28root@node1-1:~# echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf
     29root@node1-1:~# ldconfig
    2930}}}
    3031  e. Update network interfaces to enable eth2. Add following line to /etc/network/interfaces
     
    4344
    4445 3. Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide)
    45   a. Get source code in tarball
     46  a. From the root directory get source code in tarball
    4647{{{
    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
     48root@node1-1:~# wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz
     49root@node1-1:~# tar -zxvf gnuradio-3.6.4.1.tar.gz
     50root@node1-1:~# mv gnuradio-3.6.4.1 gnuradio
    5051}}}
    5152  b. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall)
    5253{{{
    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
     54root@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
    5455}}}
    5556  c. Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process)
    5657{{{
    57 cd gnuradio
    58 mkdir build
    59 cd build
    60 cmake ../
    61 make
    62 make test
    63 make install
     58root@node1-1:~# cd gnuradio
     59root@node1-1:~/gnuradio# mkdir build
     60root@node1-1:~/gnuradio/build# cd build
     61root@node1-1:~/gnuradio/build# cmake ../
     62root@node1-1:~/gnuradio/build# make
     63root@node1-1:~/gnuradio/build# make test
     64root@node1-1:~/gnuradio/build# make install
    6465}}}
    6566  d. Set up Python path variable
    6667{{{
    67 PYTHONPATH=/usr/local/lib/python2.7/dist-packages/
    68 export PYTHONPATH
    69 ldconfig
     68root@node1-1:~# PYTHONPATH=/usr/local/lib/python2.7/dist-packages/
     69root@node1-1:~# export PYTHONPATH
     70root@node1-1:~# ldconfig
    7071}}}
    7172
    72  4. Finally reboot the node.
     73 4. Finally reboot the node and then ssh back in.
     74{{{
     75root@node1-1:~# reboot
     76}}}
    7377 5. To test out the UHD install
    7478{{{
    75 uhd_find_devices
     79root@node1-1:~# uhd_find_devices
    7680}}}
    7781 and
    7882{{{
    79 uhd_usrp_probe
     83root@node1-1:~# uhd_usrp_probe
    8084}}}
    8185
    8286 6. To test out gnu radio install
    8387{{{
    84 gnuradio-config-info -v
     88root@node1-1:~# gnuradio-config-info -v
    8589}}}