如何安装3.15版本uhd驱动(源代码编译安装)

关于如何安装老版本的uhd(3.15.0.0)

添加usrp的专用用户和用户组

sudo /usr/sbin/groupadd  usrp
sudo /usr/sbin/usermod -a -G usrp $USER
sudo gedit /etc/security/limits.conf 
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 

需要安装的相应软件源

sudo apt-get install autoconf automake build-essential ccache cmake cpufrequtils doxygen ethtool g++ git inetutils-tools libboost-all-dev libncurses5 libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev libusb-dev python3-dev python3-mako python3-numpy python3-requests python3-scipy python3-setuptools python3-ruamel.yaml 

从官网下载源代码并编译的流程

git clone https://gitee.com/rssdr/uhd
cd uhd/

git checkout v3.15.0.0
cd host/
mkdir build
cd build/
cmake ..
make -j36
sudo make install
sudo ldconfig

下载uhd的相关镜像

sudo uhd_images_downloader 

sudo uhd_images_downloader -t b2 
sudo uhd_images_downloader -t x3

uhd_find_devices 
uhd_usrp_probe 

uhd_usrp_probe --args=type=b200

扩展uhd传输时的缓存

sudo sysctl -w net.core.rmem_max=128000000
sudo sysctl -w net.core.wmem_max=128000000

猜你喜欢

转载自blog.csdn.net/daijingxin/article/details/122464109