Èí¼þÎÞÏßµçʹÓÃ½Ì³Ì £º Part1 ÊÖ¶¯ÇéÐδ
´Ë×°Öý̳ÌÔÚUbuntuϵͳϾÙÐС£Ê×ÏÈ×°ÖÃUbuntuϵͳ£¬È»ºóƾ֤ÏÂÁн̳̽ø
µÚÒ»²½£º ¸üÐÂÈí¼þ°üÁÐ±í£¬¸üÐÂϵͳÈí¼þ
sudo apt-get update
sudo apt-get upgrade
µÚ¶þ²½£º×°ÖÃÒÀÀµ°ü
ÒÔUbuntu 14.04»ò14.10ÇéÐÎÏÂËùÐèÒÀÀµ°üΪÀý£º
sudo apt-get -y install git swig cmake doxygen build-essential libboost-all-dev libtool libusb-1.0-0 libusb-1.0-0-dev libudev-dev libncurses5-dev libfftw3-bin libfftw3-dev libfftw3-doc libcppunit-1.13-0 libcppunit-dev libcppunit-doc ncurses-bin cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python-scipy python-docutils qt4-bin-dbg qt4-default qt4-doc libqt4-dev libqt4-dev-bin python-qt4 python-qt4-dbg python-qt4-dev python-qt4-doc python-qt4-doc libfftw3-bin libfftw3-dev libfftw3-doc ncurses-bin libncurses5 libncurses5-dev libncurses5-dbg libfontconfig1-dev libxrender-dev libpulse-dev swig g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev libboost-all-dev libusb-dev libusb-1.0-0-dev fort77 libsdl1.2-dev python-wxgtk2.8 git-core libqt4-dev python-numpy ccache python-opengl libgsl0-dev python-cheetah python-mako python-lxml doxygen qt4-default 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 gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq1 libzmq-dev python-requests python-sphinx libcomedi-dev python-setuptools
×¢£ºÏÈ×°ÖÃUHDÔÙ×°ÖÃGNU Radio£¬²»È»×°ÖõÄGNU RadioÖлáûÓÐUHDÄ£¿é¡£
×°ÖÃUHD
µÚÈý²½£º ÏÂÔØUHD Ô´Îļþ²¢±àÒë×°ÖÃ
1. »Øµ½homeϽ¨ÉèÒ»¸öеÄÎļþ¼ÐÓÃÀ´×°ÖÃUHD£¬½øÈë¸Õ¸Õ½¨ÉèµÄÎļþ¼Ð£º
cd $home
mkdir workarea-uhd
cd workarea-uhd
2. ¿Ë¡uhdÎļþµ½¸Õ¸Õ½¨ÉèµÄÎļþ¼ÐÖÐ
git clone https://github.com/EttusResearch/uhd
cd uhd
£¨ÈôÌáÐÑgit Èí¼þδװÖã¬Ôòƾ֤ÌáÐÑÊäÈësudo apt-get install git ×°Öã©
3.ÏÂÔصÄÔ´ÎļþÓвî±ðUHD°æ±¾£¬Í¨¹ýÈçϲÙ×÷ÕÒµ½×îеÄUHD°æ±¾»òÕßÄãÐèÒªµÄ°æ±¾
ͨ¹ýÏÂÁÐÏÂÁîÉó²éÏÖÓеİ汾£º
git tag -l
Èç×°ÖÃ3.9.5°æ±¾µÄUHD£º
# Example: For UHD 3.9.5:
git checkout release_003_009_005
4.½¨ÉèbuildÎļþ¼Ð
cd host
mkdir build
cd build
5.ŲÓÃcmakeÀ´½¨Éèmakefiles
cmake ../
6.ÔËÐÐmakeUHD
make
7.Äã¿ÉÒÔÔËÐÐһЩ»ù´¡µÄ²âÊÔÀ´ÑéÖ¤ÌìÉúµÄÀú³ÌÊÇ·ñÍêÕû
make test
8.½ÓÏÂÀ´£¬Ê¹ÓÃĬÈÏ×°ÖÃǰ׺װÖÃuhd£¬¸Ãǰ׺½«ÔÚ/usr/local/libÎļþ¼ÐÏÂ×°ÖÃuhd¡£ÓÉÓÚ¶Ô¸ÃÎļþ¼ÐµÄȨÏÞ£¬ÄúÐèÒªÒÔrootÓû§Éí·ÝÔËÐд˲Ù×÷¡£
sudo make install
9.½ÓÏÂÀ´£¬¸üÐÂϵͳµÄ¹²Ïí¿â»º´æ¡£
sudo ldconfig
10.×îºó£¬È·±£½ç˵ÁËLD_LIBRARY_PATHÇéÐαäÁ¿²¢°üÀ¨×°ÖÃUHDµÄÎļþ¼Ð¡£×î³£¼ûµÄÇéÐÎÊÇ£¬Äú¿ÉÒÔ½«ÏÂÃæµÄÐÐÌí¼Óµ½$home/.bashrcÎļþµÄĩβ£º
Ҫʹ´Ë¸ü¸ÄÉúЧ£¬ÄúÐèÒª¹Ø±ÕÄ¿½ñÖն˴°¿Ú£¬È»ºó·¿ªÒ»¸öÐÂÖÕ
¶Ë¡£
export LD_LIBRARY_PATH=/usr/local/lib
´Ëʱ£¬Ó¦×°ÖÃUHD²¢×¼±¸Ê¹Óá£Äã¿ÉÒÔͨ¹ýÔËÐÐuhd_find_devices£¬ÔÚ²»ÅþÁ¬usrp×°±¸µÄÇéÐÎÏ¿ìËÙ²âÊÔ¡£
ÏÂÔØUHD¾µÏñÎļþ£º
sudo uhd_images_downloader
×°ÖÃGRC
µÚËIJ½£ºÏÂÔØUHD Ô´Îļþ²¢±àÒë×°ÖÃ
1.»Øµ½homeϽ¨ÉèÒ»¸öеÄÎļþ¼ÐÓÃÀ´×°ÖÃUHD£¬½øÈë¸Õ¸Õ½¨ÉèµÄÎļþ¼Ð
cd $home
mkdir workarea-gnuradio
cd workarea-gnuradio
2. ¿Ë¡gnuradioÎļþµ½¸Õ¸Õ½¨ÉèµÄÎļþ¼ÐÖÐ
git clone --recursive https://github.com/gnuradio/gnuradio
3.½ÓÏÂÀ´£¬½øÈë´æ´¢¿â²¢Éó²éËùÐèµÄgnu radio°æ±¾
cd gnuradio
4.Òªcheckout v3.7.13.5 ·ÖÖ§
git checkout v3.7.13.5
5.È»ºó£¬¸üÐÂ×ÓÄ£¿é
git submodule update --init --recursive
6.½¨ÉèbuildÎļþ¼Ð
mkdir build
cd build
7.ŲÓÃcmakeÀ´½¨Éèmakefiles
cmake ../
8.ÔËÐÐmakeÀ´ÌìÉúGNU Radio
make
9.Äã¿ÉÒÔÔËÐÐһЩ»ù´¡µÄ²âÊÔÀ´ÑéÖ¤ÌìÉúµÄÀú³ÌÊÇ·ñÍêÕû
make test
10.½ÓÏÂÀ´£¬Ê¹ÓÃĬÈÏ×°ÖÃǰ׺װÖÃuhd£¬¸Ãǰ׺½«ÔÚ/usr/local/libÎļþ¼ÐÏÂ×°ÖÃuhd¡£ÓÉÓÚ¶Ô¸ÃÎļþ¼ÐµÄȨÏÞ£¬ÄúÐèÒªÒÔ¸ùÓû§Éí·ÝÔËÐд˲Ù×÷
sudo make install
11.½ÓÏÂÀ´£¬¸üÐÂϵͳµÄ¹²Ïí¿â»º´æ
sudo ldconfig
12.´Ëʱ£¬GNU RadioÓ¦¸ÃÒѾװÖúò¢¿ÉÒÔʹÓÃÁË¡£Í¨¹ýÔËÐÐÒÔÏ¿ìËÙ²âÊÔ£¬Äú¿ÉÒÔÔÚ²»ÅþÁ¬usrp×°±¸µÄÇéÐÎÏ¿ìËÙ²âÊԴ˹¦Ð§
gnuradio-config-info --version
gnuradio-config-info --prefix
gnuradio-config-info --enabled-components
4. ÏÂÔØGNU Radio Ô´Îļþ²¢±àÒë×°ÖÃ
·¿ªGNU Radio Companion
- ·¿ªÖÕ¶Ë
- ÔËÐУºgnuradio-companion
×Ô¶¯·¿ªGNU Radio Companion½çÃ棬ÈçÏÂͼËùʾ£º