Thursday, June 23, 2011

HowTo: Build GNU RADIO with UHD


 Platform: Ubuntu Lucid 10.04/10.10

** All the following commands (in italic) are to be run at the shell.
  • CMAKE: Check if CMAKE is installed (just try to execute command cmake). If not installed then do the following.
    2. Unzip
    3. Goto the folder by $cd ~/cmake-X.X.X
    4. Run commands $./bootstrap; make; sudo make install
  • GIT: Check if GIT is installed (just try to execute command git). If not then install it from Applications->Ubuntu Software Center
  • LibUSB: If LibUSB is not installed...
    2. Unzip
    3. Goto the folder by $cd ~/libusb-X.X.X
    4. Run commands $./configure; make; sudo make install
  • GNURADIO Pre-Requisites:
    $sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev \
    libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries \ 
    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 \
    libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4
  • Download and Install UHD
    $git clone git://ettus.sourcerepo.com/ettus/uhd.git
    $cd ~/uhd/host/
    $mkdir build
    $cd build
    $cmake ../
    $make
    $make test
    $sudo make install
    $sudo ldconfig
  • Download and Install GNURADIO
    $git clone git://gnuradio.org/gnuradio.git
    $cd ~/gnuradio
    $git branch --track next origin/next
    $git checkout next 
    $./bootstrap
    $PKG_CONFIG_PATH=~/uhd/host/build/
    $export PKG_CONFIG_PATH
    $./configure --enable-gr-uhd
    $make
    $make check
    $sudo make install
    $sudo ldconfig
  • Configure USRP Support
    $sudo addgroup usrp
    $sudo usermod -G usrp -a <YOUR_USERNAME>
    $echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"' > tmpfile
    $sudo chown root.root tmpfile
    $sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules
    $sudo udevadm control --reload-rules

2 comments:

  1. i have these two burner files but how to burn them??
    i have those image files too,but wheni run gui file for burner and give paths for firmware and fpga how to select sd card
    ???

    ReplyDelete
    Replies
    1. You should put the files in your hard-drive, not SD card. When the GUI asks, then select the files from your hard-drive. The GUI will copy these in the SD card.

      Delete