Ubuntu20.04搭建USRP 与GNU Radio环境 (USRP1为例)
2022/1/11 7:07:42
本文主要是介绍Ubuntu20.04搭建USRP 与GNU Radio环境 (USRP1为例),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
参考文章:ubuntu20.04安装UHD(USRP Hardware Driver) v3.15 + GNURadio v3.8.1 (20200818)_u010956709的博客-CSDN博客_ubuntu20.04安装uhd
不想看上面链接的直接可以看代码版:
sudo apt-get update
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.15-0 libcppunit-dev libcppunit-doc ncurses-bin
cpufrequtils python-numpy python-numpy-doc python-numpy-dbg python3-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 libqwt6abi1
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-wxgtk3.0 git libqt4-dev python-numpy
ccache python-opengl libgsl-dev python-cheetah python-mako python-lxml doxygen
qt4-default qt4-dev-tools libusb-1.0-0-dev libqwtplot3d-qt5-dev pyqt4-dev-tools
python-qwt5-qt4 cmake git wget libxi-dev gtk2-engines-pixbuf r-base-dev python-tk
liborc-0.4-0 liborc-0.4-dev libasound2-dev python-gtk2 libzmq3-dev libzmq5
python-requests python-sphinx libcomedi-dev python-zmq libqwt-dev libqwt6abi1
python-six libgps-dev libgps23 gpsd gpsd-clients python-gps python-setuptools
cd $HOME
mkdir workarea
cd workarea
git clone https://github.com/EttusResearch/uhd
cd uhd
$ git tag -l
...
release_003_009_004
release_003_009_005
release_003_010_000_000
git checkout v3.15.0.0
cd host
mkdir build
cd build
cmake ../
make -j8 //调用通道加速
sudo make install
sudo ldconfig
环境变量:export LD_LIBRARY_PATH=/usr/local/lib
USRP1硬件驱动与FPGA:
sudo uhd_images_downloader -t usrp1
sudo apt-get install libusb-dev libusb-1.0-0-dev
sudo apt-get install uhd_host
查看支持的设备型号:uhd_config_info --enable
支持的设备型号会一 一列出,到此,USRP硬件部分安装完成。
GNU Radio 环境:
sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo apt-get update
sudo apt-get install gnuradio
注:上述环境搭建过程为非虚拟机环境,使用实体机刷入Ubuntu20.04系统,并且非最小化安装系统,有许多软件环境,编译器工具在系统安装时就已经被系统安装完成。如果用虚拟机安装,本人多次尝试之后,搭建失败,不建议尝试。另外,本人电脑为惠普暗影精灵,分开原D盘300G给予Ubuntu20.04,因此在搭建完成后有余力完成系统的美化成MAC,且运行较为流畅;如果分盘空间过少,加上电脑性能不足(亲身实践),强行美化成MAC后会导致Ubuntu20.04运行缓慢,建议尝鲜的朋友还是用原经典桌面。
注:美化博客推荐:美化博客推荐:记录 Ubuntu 20.04 安装后美化(MAC)过程_憶夣的博客-CSDN博客_ubuntu20美化mac
注:安装完Ubuntu20.04后,有两件事,第一:更换为国内软件源
第二:安装edge浏览器
参考:Ubuntu 20.04 LTS上安装Edge浏览器_散人的博客-CSDN博客_ubuntu安装edge
命令版:
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
sudo apt install microsoft-edge-dev
这篇关于Ubuntu20.04搭建USRP 与GNU Radio环境 (USRP1为例)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-24怎么修改Kafka的JVM参数?-icode9专业技术文章分享
- 2024-12-23线下车企门店如何实现线上线下融合?
- 2024-12-23鸿蒙Next ArkTS编程规范总结
- 2024-12-23物流团队冬至高效运转,哪款办公软件可助力风险评估?
- 2024-12-23优化库存,提升效率:医药企业如何借助看板软件实现仓库智能化
- 2024-12-23项目管理零负担!轻量化看板工具如何助力团队协作
- 2024-12-23电商活动复盘,为何是团队成长的核心环节?
- 2024-12-23鸿蒙Next ArkTS高性能编程实战
- 2024-12-23数据驱动:电商复盘从基础到进阶!
- 2024-12-23从数据到客户:跨境电商如何通过销售跟踪工具提升营销精准度?