打开终端,更新下源。
1. 首先安装依赖库,依赖库的版本不对就要走很多很多弯路了,下面一行代码让我走了多少弯路自行脑补。
1 |
sudo apt-get install 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-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 python-docutils gtk2-engines-pixbuf r-base-dev python-tk liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 |
2. 接下来安装uhd,首先下载,如果git命令不好使,就先安装git。
1 |
git clone git://github.com/EttusResearch/uhd.git |
找到uhd目录,依次执行下面的命令:
1 2 3 4 5 6 7 8 |
cd uhd/host/ mkdir build cd build cmake ../ make make test // 注:进行测试,一般会全部通过 sudo make install sudo ldconfig |
下载uhd镜像。
1 |
sudo uhd_images_downloader |
3. 接下来安装gnuradio,首先下载。
1 |
git clone --recursive https://github.com/gnuradio/gnuradio.git |
完成后,找到目录,依次输入命令:
1 2 3 4 5 6 7 8 |
cd gnuradio/ mkdir build cd build cmake ../ make make test //注:我安装的时候全部通过 sudo make install sudo ldconfig |
接下来配置volk,为volk选择最优的指令集,可做可不做。
1 |
volk_profile |
配置grc关联文件。
1 |
/usr/local/libexec/gnuradio/grc_setup_freedesktop install |
到此为止,软件环境的搭建已经全部完成。下面的步骤看个人兴趣和需求。
4. 配置系统。
添加usrp用户组。
1 2 |
sudo /usr/sbin/groupadd usrp sudo /usr/sbin/usermod -a -G usrp coder //注:以用户coder为例 |
优化系统性能。
1 2 3 4 |
sudo gedit /etc/sysctl.conf //注:在该文档末尾添加以下 3 项配置并保存: net.core.rmem_max = 50000000 net.core.wmem_max = 1048576 kernel.shmmax = 2147483648 |
添加实时进程权限。
1 2 |
sudo gedit /etc/security/limits.conf //注:在该文档末尾添加下述指令并保存: @usrp - rtprio 50 |
最后添加 usb 接口运行规则(仅当使用 USB 接口系列的 USRP 需要进行该项)。
1 2 3 |
sudo cp uhd/host/utils/uhd-usrp.rules /etc/udev/rules.d/10-usrp.rules sudo chown root /etc/udev/rules.d/10-usrp.rules sudo chgrp root /etc/udev/rules.d/10-usrp.rules |
至此usrp工作环境就初步搭好了。
You post very interesting content here. Your blog deserves much more traffic.
It can go viral if you give it initial boost, i
know useful tool that can help you, just search in google: svetsern traffic tips
@Kathie Thanks, I do not need that tool.
Thank you, I've recently been searching for information about this subject for ages and yours is the greatest I have discovered so far. But, what about the conclusion? Are you sure about the source?
Thanks for another fantastic article. Where else could anybody get that kind of info in such a perfect way of writing? I've a presentation next week, and I am on the look for such info.
Very neat article post.Much thanks again. Awesome.
Looking forward to reading more. Great article.Really looking forward to read more. Will read on...
wow, awesome blog article.Really thank you! Keep writing.
782692 326396Thank you for your very good information and feedback from you. san jose car dealers 595780
I truly appreciate this article.Thanks Again. Much obliged.
Wow, great blog article.Thanks Again.
Muchos Gracias for your blog article.Really thank you! Really Great.
Hey, thanks for the blog post.Much thanks again. Cool.
Great article post.Really looking forward to read more. Fantastic.
I think this is a real great blog article.Really thank you! Will read on...
Im obliged for the blog article.Thanks Again. Really Great.
What's Happening i'm new to this, I stumbled upon this I have found It absolutely useful and it has helped me out loads. I hope to contribute & aid other users like its helped me. Great job.
Really informative article post.Really looking forward to read more. Really Great.
Wow, great post.Thanks Again. Want more.
I value the post.Much thanks again. Really Great.
Im grateful for the article post.Thanks Again. Really Great.
I value the blog post. Awesome.
Im grateful for the blog.Thanks Again. Great.
I cannot thank you enough for the article.
Helpful information. Fortunate me I found your web site by chance, and I am surprised why this coincidence did not happened in advance! I bookmarked it.
Great, thanks for sharing this blog post.Really thank you! Great.
Muchos Gracias for your blog post.Much thanks again. Awesome.
I really liked your article. Really Cool.
A round of applause for your article post.Thanks Again.
Appreciating the persistence you put into your site and detailed information you provide.
It's good to come across a blog every once in a while that isn't
the same old rehashed material. Fantastic read! I've saved your site and I'm including your RSS feeds
to my Google account.
This is a topic that's near to my heart...
Many thanks! Exactly where are your contact details though?
I'm extremely inspired with your writing abilities as smartly as with the layout to your weblog.
Is that this a paid topic or did you modify it yourself?
Anyway keep up the nice quality writing, it's rare to see
a nice blog like this one nowadays..
continuously i used to read smaller articles which also clear their motive, and that is also happening with
this post which I am reading now.
I truly appreciate this post. Great.
Howdy! Do you know if they make any plugins to safeguard against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?
Thanks again for the article.Really looking forward to read more. Awesome.
whoah this blog is excellent i like reading your posts. Keep up the good paintings! You already know, many persons are looking around for this info, you could aid them greatly.
Major thankies for the blog post. Cool.
A big thank you for your article. Want more.
I've learn several just right stuff here. Definitely worth bookmarking for revisiting. I surprise how a lot attempt you put to make this kind of excellent informative site.
519348 753245Outstanding post, I conceive individuals ought to larn a great deal from this weblog its extremely user friendly . 457305
A round of applause for your article.Really thank you! Will read on...
Appreciate you sharing, great article post.Much thanks again. Cool.
Thank you for your article.Thanks Again. Fantastic.
Hello There. I found your blog using msn. This is an extremely well written article.
I will make sure to bookmark it and return to read more of your useful information. Thanks for the post.
I will definitely comeback.
I really liked your blog article.Really looking forward to read more. Cool.
Hello fantastic blog! Does running a blog similar
to this require a lot of work? I have virtually no understanding of coding however
I was hoping to start my own blog soon. Anyway, should you have any suggestions or tips for new blog owners
please share. I know this is off topic however I simply had to ask.
Kudos!
Hey, thanks for the blog.Really looking forward to read more. Really Great.
It's truly very complicated in this busy life to listen news on TV, thus I
just use the web for that purpose, and take the latest information.
I really enjoy the post.Much thanks again. Will read on...
It's going to be finish of mine day, but before end I
am reading this enormous paragraph to improve my knowledge.
Great, thanks for sharing this blog article.Thanks Again. Much obliged.