Changes between Version 1 and Version 2 of Documentation/dSDR/GNURadio/Installation31Debian


Ignore:
Timestamp:
Jan 15, 2010, 7:54:15 PM (15 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/dSDR/GNURadio/Installation31Debian

    v1 v2  
    1 = Installation of GNU radio software on a orbit node with the baseline.ndz image: =
     1= Installation of GNU radio software on a orbit node with the baseline.ndz image =
    22
    3 === Binary Packages ===
     3== Binary Packages ==
    44
    55Baseline.ndz installs a slimed version of Debian, for image speed. There is a binary package of GNU radio in the Debian repository, but it
    66is very old and not maintained. The package that is now being maintained is made for Ubuntu 9.04. Its not part of the Ubuntu repository. It is
    77maintained by gnuraido.org, if you want to install it you will need to add their repository to your list of sources
    8 ([http://www.mepis.org/node/569 explanation]). The paths are:
     8([http://www.mepis.org/node/569 reference]). The paths are:
    99{{{
    10   Stable release branch:
    11    deb http://gnuradio.org/ubuntu stable main
    12    deb-src http://gnuradio.org/ubuntu stable main
    13   Unstable development branch:
    14    deb http://gnuradio.org/ubuntu unstable main
    15    deb-src http://gnuradio.org/ubuntu unstable main
     10Stable release branch:
     11  deb http://gnuradio.org/ubuntu stable main
     12  deb-src http://gnuradio.org/ubuntu stable main
     13Unstable development branch:
     14  deb http://gnuradio.org/ubuntu unstable main
     15  deb-src http://gnuradio.org/ubuntu unstable main
    1616}}}
    17 It should be noted that these packages are for Ubuntu. Although they might install on baseline image, the probably won't work correctly.
     17It should be noted that these packages are for Ubuntu. Although they might install on baseline image, the probably won't work correctly. The GNU Radio website for
     18these packages is http://gnuradio.org/redmine/wiki/1/DebianPackages
    1819
    19 === Building  from sources ===
     20== Building  from sources ==
     21
     22=== Perquisites ===
     23Before we build the actual Gnu radio we must satisfy this list of  prerequisites:
     24 * sdcc-libraries_2.6.0-5
     25 * boost-build
     26 * wx-common
     27 * libqt3-mt-dev
     28 * libgsl0-dev
     29 * guile-1.8
     30 * libcomedi-0.7.22
     31 * locales
     32 * Python
     33 * build-essentials
     34 * auto-make
     35
     36Most of these are can be installed with apt-get ([http://newbiedoc.sourceforge.net/tutorials/apt-get-intro/apt-and-install.html.en reference]).  You may need to modify your source list to include:
     37{{{
     38deb http://ftp.at.debian.org/debian/ etch main non-free contrib
     39}}}
     40
     41You may find it usefull to run the following two commands:
     42{{{
     43apt-get build-dep gnuradio
     44apt-get build-dep usrp
     45}}}
     46
     47These commands would install any of the packages that the gnuradio and usrp packages depend on. Although we will not be installing the gnuraido and usrp packages, there is probably some packages that are common to both the package installation and source build of GNU Radio.
     48
     49One noteable exception is sdcc-library which had to be installed via a deb package, because the repository version does not support a feature we need (asx8051). We will
     50have to downgrade to version sdcc 2.6.0-5:
     51
     52{{{
     53 wget http://ftp.egr.msu.edu/debian/pool/main/s/sdcc/sdcc-libraries_2.6.0-5_all.deb
     54 dpkg -i sdcc-libraries_2.6.0-5_all.deb
     55}}}
     56
     57It may be necessary to modify the compiler and documentation packages as well. [[BR]]
     58http://packages.debian.org/etch/all/sdcc-doc/download [[BR]]
     59http://packages.debian.org/etch/i386/sdcc/download [[BR]]
     60
     61'''Note:''' Our architecture is i686, but the only debs for i386. We have used the i386 ones sucessfully. The install process was the same as for the libraries.
     62
     63=== Sources ===
     64
     65Once we have all the dependencies in place, we can begin building the actual GNU Radio software. There are many ways to get the sources. The most straight forward
     66is to download the file from http://gnuradio.org/redmine/wiki/gnuradio/Download. If you are using the node's console you can use [http://en.wikipedia.org/wiki/Wget wget]. As an alternative you can download the file to some other machine, and them copy file to the node with [http://help.ischool.washington.edu/faqs/30_32_en.html scp].   Once you have the source on your node you'll need to extract it ([http://www.tech-recipes.com/rx/65/decompress-and-extract-a-tgz-or-targz-archive-in-a-single-step/ refrence]).
     67
     68=== Building ===
     69
     70If you copied from the repositories you man need to run '''./bootstrap'''. Once bootstrap completes you will need to run '''./configure'''. Once completed a list of components being built will be displayed:
     71{{{
     72*********************************************************************
     73The following GNU Radio components have been successfully configured:
     74
     75config
     76omnithread
     77gnuradio-core
     78usrp
     79gr-usrp
     80gr-audio-alsa
     81gr-audio-jack
     82gr-audio-oss
     83gr-audio-portaudio
     84gr-atsc
     85gr-gpio
     86gr-gsm-fr-vocoder
     87gr-pager
     88gr-radar-mono
     89gr-radio-astronomy
     90gr-trellis
     91gr-video-sdl
     92gr-wxgui
     93gr-sounder
     94gr-utils
     95gnuradio-examples
     96
     97You my now run the make command to build these components.
     98
     99*********************************************************************
     100The following components were skipped either because you asked not
     101to build them or they didn't pass configuration checks:
     102
     103gr-audio-osx
     104gr-audio-windows
     105gr-comedi
     106
     107These components will not be built.
     108}}}
     109
     110It should be checked for the components you are interested in. A file named ''config.log'' is created when the configure script is being built. If there are any missing components, this file should have useful information. At a minimum, gr-usrp will be needed. This component steers the USRP, and is vital to the rest of the process.
     111 
     112Once the configure process completes, we can simply run '''make'''.
     113