Changeset 8258

Show
Ignore:
Timestamp:
09/02/08 17:38:04 (5 years ago)
Author:
mcarrick
Message:

added gnuradio installation portion required by usrp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/ossie/user-guide-0.7.0/Installation.tex

    r8255 r8258  
    105105\end{lstlisting} 
    106106 
    107  
    108107Now move onto Section~\ref{section:installation:source:dependencies:configomni} 
    109108 
     
    175174 
    176175At this time it is a good idea to restart your machine. 
     176 
     177\subsubsection{Installing Portions of GNU Radio} 
     178\label{section:installation:source:dependencies:ubuntu} 
     179OSSIE uses a small subset of GNU Radio to communicate and configure the USRP. The 
     180following steps will walkthrough installing portions of GNU Radio. 
     181 
     182First, GNU Radio's dependencies must be installed. Install the Engineering  
     183and Scientific packages as well as the Software Development packages as root entering  
     184the command: 
     185 
     186\begin{lstlisting}[] 
     187 # yum groupinstall "Engineering and Scientific" "Development Tools" 
     188\end{lstlisting} 
     189 
     190Additional utilities such as the FFT library and the CPP Test Framework must also be  
     191installed. As root, enter the following command 
     192 
     193\begin{lstlisting}[] 
     194 # yum install fftw-devel cppunit-devel wxPython-devel libusb-devel  \ 
     195   guile boost-devel alsa-lib-devel numpy 
     196\end{lstlisting} 
     197 
     198The Small Device C Compiler, SDCC, must be installed: 
     199 
     200\begin{lstlisting}[] 
     201 # yum install sdcc 
     202\end{lstlisting} 
     203 
     204The path for the SDCC must be set. Open the .bashrc file and add the path to the end  
     205of the file. To open the file, enter the command: 
     206 
     207\begin{lstlisting}[] 
     208 $ vim ~/.bashrc 
     209\end{lstlisting} 
     210 
     211Add the following path to the end of the file: 
     212\begin{lstlisting}[] 
     213 export PATH=/usr/libexec/sdcc:$PATH 
     214\end{lstlisting} 
     215 
     216At this point, all of the GNU Radio dependencies have been installed. Now, the GNU Radio 
     217software must be installed. 
     218 
     219Download the GNU Radio source code by entering the command: 
     220\begin{lstlisting}[] 
     221 $ svn co http://gnuradio.org/svn/gnuradio/branches/releases/3.1 gnuradio 
     222\end{lstlisting} 
     223 
     224Move into the {\tt gnuradio} directory and start building the source code by entering the 
     225following commands: 
     226 
     227\begin{lstlisting}[] 
     228 $ cd gnuradio/ 
     229 $ ./bootstrap 
     230 $ ./configure --disable-all-components --enable-gnuradio-core \ 
     231   --enable-usrp --enable-gr-usrp --enable-omnithread 
     232\end{lstlisting} 
     233 
     234This sets up the install to only build resources for the USRP which OSSIE requires. 
     235Compile the source code by entering the command: 
     236 
     237\begin{lstlisting}[] 
     238 $ make 
     239\end{lstlisting} 
     240 
     241Verify that the compile worked by running a check: 
     242 
     243\begin{lstlisting}[] 
     244 $ make check 
     245\end{lstlisting} 
     246 
     247Install the portions of GNU Radio by running the following command as root: 
     248 
     249\begin{lstlisting}[] 
     250 # make install 
     251\end{lstlisting}   
     252 
     253The libraries installed by GNU Radio need to be linked: 
     254 
     255\begin{lstlisting}[] 
     256 # /sbin/ldconfig 
     257\end{lstlisting} 
     258 
     259At this point, GNU Radio and its dependencies have been installed. Now setup the 
     260proper permissions for the USRP. As root, create a group which will have access 
     261to the USRP: 
     262 
     263\begin{lstlisting}[] 
     264 # /usr/sbin/groupadd usrp 
     265\end{lstlisting} 
     266 
     267Add users to the group which need access to the USRP: 
     268 
     269\begin{lstlisting}[] 
     270 # /usr/sbin/usermod -G usrp -a USERNAME 
     271\end{lstlisting} 
     272 
     273Now that users will have access to the USRP, read and write access to the device 
     274must be created. As root, open the file {\tt /etc/udev/rules.d/10-usrp.rules} in 
     275a text editor: 
     276 
     277\begin{lstlisting}[] 
     278 # vim /etc/udev/rules.d/10-usrp.rules 
     279\end{lstlisting} 
     280 
     281Add the following text to the file: 
     282 
     283\begin{lstlisting}[] 
     284 ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", \ 
     285 SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660" 
     286\end{lstlisting} 
     287 
     288The text above is displayed on two lines due to the contraints on page size, however 
     289the text must appear on a single line, without the backslash, in the file for the 
     290access to the USRP to work properly. You may also add the following comment lines to 
     291the file for future reference: 
     292 
     293\begin{lstlisting}[] 
     294 # rule to grant read/write access on USRP to group named usrp. 
     295 # to use, install this file in /etc/udev/rules.d/ as 
     296 # 10-usrp.rules 
     297\end{lstlisting} 
     298 
     299The USRP interface has now been created. As an optional test, connect the USRP 
     300to the computer and run the following command: 
     301 
     302\begin{lstlisting}[] 
     303 $ ls -lR /dev/bus/usb 
     304\end{lstlisting} 
     305 
     306The users root and usrp should now be listed under the user groups. 
    177307 
    178308\subsubsection{Install OSSIE}