我的N310配置

Ubuntu18.04的安装

官网对UHD的安装教程,适用于Ubuntu14到Ubuntu20,我安装的是Ubuntu18.04
Ubuntu安装没什么好说的,bios选择U盘启动,安装18.04。当然,装更高版本Ubuntu也可以,不过后续的很多操作就会和在18.04不一样。

UHD4.0.0.0安装

UHD的安装,可以参考链接:https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux
根据这个教程安装UHD不会有什么问题,注意选自己想装的UHD版本要git checkout v4.0.0.0,以及保证LD_LIBRARY_PATH环境变量被定义,并包括在安装UHD的文件夹,既要在命令行中也要在 .bashrc 文件中输入 export LD_LIBRARY_PATH=/usr/local/lib

GNU Radio3.8.0.0的安装

要安装gnuradio3.7及以前的版本,可以参考上面的链接。但要安装3.8及以后的版本,就用下面的教程中的从源码搭建的教程:https://wiki.gnuradio.org/index.php/InstallingGR#From_Source

我安装的是3.8版本,3.8及之后的版本从源码安装源码Gnuradio的时候,volk和gnuradio分别安装,都以源码的方式安装,先安装volk,再安装gnuradio.
我本想安装3.9版本,但是需要装相关的依赖文件pybind ,然而通过sudo apt install pybind11-dev安装pybind的时候提示其与很多已有的依赖文件之间的依赖关系冲突,所以3.9版本安装失败。

教程中执行命令cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../可能会报错,这是因为之前安装依赖项可能没安全,根据错误提示安装,需要安装的相关依赖文件参考链接:https://wiki.gnuradio.org/index.php/UbuntuInstall#Focal_Fossa_.2820.04.29_through_Hirsute_Hippo_.2821.04.29
其它步骤应该不会出现问题。
若安装好后,输入gnuradio-companion 无法打开gnuradio,就请参考链接:
https://wiki.gnuradio.org/index.php/ModuleNotFoundError#B._Finding_the_Python_library
打不开的原因大概就是环境变量要添加进相应的配置文件中去。

开始进行N310的配置

安装好UHD和GNURadio后,开始进行N310的配置,参考这几个链接:

https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide

https://files.ettus.com/manual/page_usrp_n3xx.html#n3xx_getting_started
大概思路:
1.host下在载.mender类型的uhd镜像
2.下载的镜像从host 复制到N310
3.执行文件系统更新:mender -rootfs /home/root/usrp_n3xx_fs.mender
第3步易错,如果N310本身文件系统版本高于想要重新加载的版本,命令就会报错。如果提示:

root@ni-n3xx-31CF839:~# mender -rootfs /home/root/usrp_n3xx_fs.mender
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf  module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf  module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2   module=main
INFO[0000] Start updating from local image file: [/home/root/usrp_n3xx_fs.mender]  module=rootfs
Installing update from the artifact of size 397741056
INFO[0000] no public key was provided for authenticating the artifact  module=installer
ERRO[0000] Installation failed: installer: failed to read and install update: will not install artifact with state-scripts when installing from cmd-line. Use -f to override  module=rootfs
ERRO[0000] installer: failed to read and install update: will not install artifact with state-scripts when installing from cmd-line. Use -f to override  module=main
root@ni-n3xx-31CF839:~# mender -rootfs /home/root/usrp_n3xx_fs.mender
INFO[0000] Configuration file does not exist: /var/lib/mender/mender.conf  module=config
INFO[0000] Loaded configuration file: /etc/mender/mender.conf  module=config
INFO[0000] Mender running on partition: /dev/mmcblk0p2   module=main
INFO[0000] Start updating from local image file: [/home/root/usrp_n3xx_fs.mender]  module=rootfs
Installing update from the artifact of size 397741056
INFO[0000] no public key was provided for authenticating the artifact  module=installer
ERRO[0000] Installation failed: installer: failed to read and install update: will not install artifact with state-scripts when installing from cmd-line. Use -f to override  module=rootfs
ERRO[0000] installer: failed to read and install update: will not install artifact with state-scripts when installing from cmd-line. Use -f to override  module=main

就执行:
mender -rootfs /home/root/usrp_n3xx_fs.mender -f
4.重启N310,然后执行 mender -commit以便引导加载程序知道可以永久引导到该分区。

最终执行uhd_usrp_probe检查是否成功。

注:对N3xx系列,uhd_find_devices命令没有说服力,用 uhd_usrp_probe 命令显示出详细信息才算配置成功。

关于N3xx系列的更多详细资料,参考这个链接:
https://files.ettus.com/manual_archive/v3.15.0.0-e310_prerelease/html/page_usrp_n3xx.html

补充:
windows matlab下刷卡配置N3XX的方式,请问有大佬成功过吗?恳请交流。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值