Difference between revisions of "GNURadio: UHD"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
Generate Makefiles with CMake
+
===Download===
  
  cd <uhd-repo-path>/host
+
  echo "/usr/local/lib" >> /etc/ld.so.conf
mkdir build
+
  cd /usr/local/src
  cd build
+
  git clone git://ettus.sourcerepo.com/ettus/uhd.git uhd.git
  cmake ../
 
  
Additionally, configuration variables can be passed into CMake via the command line. The following common-use configuration variables are listed below:
+
==Compile==
 
 
    For a custom install prefix: -DCMAKE_INSTALL_PREFIX=<install-path>
 
    To install libs into lib64: cmake -DLIB_SUFFIX=64
 
 
 
Example usage:
 
 
 
cmake -DCMAKE_INSTALL_PREFIX=/opt/uhd ../
 
 
 
Build and install
 
  
 +
cd /usr/local/src/uhd.git/host/
 +
mkdir build
 +
cd /usr/local/src/uhd.git/host/build
 +
cmake -DENABLE_E100=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=ON -DENABLE_B100=OFF ../
 
  make
 
  make
 
  make test
 
  make test
  sudo make install
+
  make install
 
+
ldconfig
Setup the library path (Linux)
 
  
 
Make sure that libuhd.so is in your LD_LIBRARY_PATH, or add it to /etc/ld.so.conf and make sure to run:
 
Make sure that libuhd.so is in your LD_LIBRARY_PATH, or add it to /etc/ld.so.conf and make sure to run:
Line 27: Line 20:
 
  sudo ldconfig
 
  sudo ldconfig
  
 +
==Install UHD USRP ke udev==
  
 
+
  cd /usr/local/share/uhd/utils
 
 
  cd <install-path>/share/uhd/utils
 
 
  sudo cp uhd-usrp.rules /etc/udev/rules.d/
 
  sudo cp uhd-usrp.rules /etc/udev/rules.d/
 
  sudo udevadm control --reload-rules
 
  sudo udevadm control --reload-rules
 
 
 
  
 
==Referensi==
 
==Referensi==

Revision as of 04:23, 13 August 2012

Download

echo "/usr/local/lib" >> /etc/ld.so.conf
cd /usr/local/src
git clone git://ettus.sourcerepo.com/ettus/uhd.git uhd.git

Compile

cd /usr/local/src/uhd.git/host/
mkdir build
cd /usr/local/src/uhd.git/host/build
cmake -DENABLE_E100=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=ON -DENABLE_B100=OFF ../
make
make test
make install
ldconfig

Make sure that libuhd.so is in your LD_LIBRARY_PATH, or add it to /etc/ld.so.conf and make sure to run:

sudo ldconfig

Install UHD USRP ke udev

cd /usr/local/share/uhd/utils
sudo cp uhd-usrp.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules

Referensi

Pranala Menarik

Persiapan

OpenBTS 2.6

OpenBTS 2.8

Multi OpenBTS 2.8

Ettus E110

GPRS

Power Amplifier

Lain Lain

Catatan Legal dan Pendukung

Catatan Sejarah

Dokumentasi Video