Changes between Version 1 and Version 2 of Documentation/dSDR/GNURadio/InstallationOnUbuntu12.04
- Timestamp:
- May 14, 2013, 9:22:34 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/dSDR/GNURadio/InstallationOnUbuntu12.04
v1 v2 1 1 = Installation procedure for UHD 003.005.002 and GNU Radio v3.6.4.1 on Ubuntu v12.04 = 2 2 3 1. Load baseline image onto node3 1. Load baseline ubuntu 12.04 image onto node 4 4 2. Build UHD from source code (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Build) 5 a. Downloadsource tar ball:5 a. From the root directory download the source tar ball: 6 6 {{{ 7 wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz8 tar -zxvf release_003_005_002.tar.gz9 mv UHD-Mirror-release_003_005_002/ uhd7 root@node1-1:~# wget https://github.com/EttusResearch/UHD-Mirror/archive/release_003_005_002.tar.gz 8 root@node1-1:~# tar -zxvf release_003_005_002.tar.gz 9 root@node1-1:~# mv UHD-Mirror-release_003_005_002/ uhd 10 10 }}} 11 11 b. Download prerequisites for UHD 12 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 13 root@node1-1:~# apt-get update 14 root@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 14 15 }}} 15 16 c. Build UHD (http://files.ettus.com/uhd_docs/manual/html/build.html#build-dependencies) 16 17 {{{ 17 cd uhd/host18 mkdir build19 cd build20 cmake ../21 make22 make test23 make install18 root@node1-1:~# cd uhd/host 19 root@node1-1:~/uhd/host# mkdir build 20 root@node1-1:~/uhd/host# cd build 21 root@node1-1:~/uhd/host/build# cmake ../ 22 root@node1-1:~/uhd/host/build# make 23 root@node1-1:~/uhd/host/build# make test 24 root@node1-1:~/uhd/host/build# make install 24 25 }}} 25 26 d. Set up library path 26 27 {{{ 27 echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf28 ldconfig28 root@node1-1:~# echo "include /root/uhd/host/build/lib" >> /etc/ld.so.conf 29 root@node1-1:~# ldconfig 29 30 }}} 30 31 e. Update network interfaces to enable eth2. Add following line to /etc/network/interfaces … … 43 44 44 45 3. Build GNU from source code (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide) 45 a. Get source code in tarball46 a. From the root directory get source code in tarball 46 47 {{{ 47 wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz48 tar -zxvf gnuradio-3.6.4.1.tar.gz49 mv gnuradio-3.6.4.1 gnuradio48 root@node1-1:~# wget http://gnuradio.org/releases/gnuradio/gnuradio-3.6.4.1.tar.gz 49 root@node1-1:~# tar -zxvf gnuradio-3.6.4.1.tar.gz 50 root@node1-1:~# mv gnuradio-3.6.4.1 gnuradio 50 51 }}} 51 52 b. Download pre-reqs (http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall) 52 53 {{{ 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-gtk254 root@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 54 55 }}} 55 56 c. Build GNU Radio (http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide#III-Start-the-build-process) 56 57 {{{ 57 cd gnuradio58 mkdir build59 cd build60 cmake ../61 make62 make test63 make install58 root@node1-1:~# cd gnuradio 59 root@node1-1:~/gnuradio# mkdir build 60 root@node1-1:~/gnuradio/build# cd build 61 root@node1-1:~/gnuradio/build# cmake ../ 62 root@node1-1:~/gnuradio/build# make 63 root@node1-1:~/gnuradio/build# make test 64 root@node1-1:~/gnuradio/build# make install 64 65 }}} 65 66 d. Set up Python path variable 66 67 {{{ 67 PYTHONPATH=/usr/local/lib/python2.7/dist-packages/68 export PYTHONPATH69 ldconfig68 root@node1-1:~# PYTHONPATH=/usr/local/lib/python2.7/dist-packages/ 69 root@node1-1:~# export PYTHONPATH 70 root@node1-1:~# ldconfig 70 71 }}} 71 72 72 4. Finally reboot the node. 73 4. Finally reboot the node and then ssh back in. 74 {{{ 75 root@node1-1:~# reboot 76 }}} 73 77 5. To test out the UHD install 74 78 {{{ 75 uhd_find_devices79 root@node1-1:~# uhd_find_devices 76 80 }}} 77 81 and 78 82 {{{ 79 uhd_usrp_probe83 root@node1-1:~# uhd_usrp_probe 80 84 }}} 81 85 82 86 6. To test out gnu radio install 83 87 {{{ 84 gnuradio-config-info -v88 root@node1-1:~# gnuradio-config-info -v 85 89 }}}