TX2安装435i驱动

TX2刷机为Jetpack4.2。运行过程中遇到的问题已经表明。
安装D435i驱动步骤:
1、下载D435i驱动脚本:
git clone https://github.com/Tengyun-Mo/buildLibrealsense2TX2.git
2、进入下载文件:cd ~/buildLibrealsense2TX2
3、授予给内核打补丁的脚本权限:chmod +x ./buildPatchedKernel.sh
4、运行给内核打补丁的脚本:./buildPatchedKernel.sh
此时可能会出现错误:error:RPC failed; curl 56 GnuTLS recv error (-54):Error in the pull function.
解决方法:重新运行该命令。
此时可能出现:Getting Kernel sources …command not found
解决方法:找不到sudo命令原因是权限问题,打开buildPatchedKernel.sh文件,搜索Getting Kernel sources发现有若干(大概4个)sudo命令后加.sh文件,手动对这些文件添加权限,然后运行。具体为以下命令(其他文件同理):
chmod +x ./scripts/getKernelSourcesNoGUI.sh
sudo ./scripts/getKernelSourcesNoGUI.sh
5、此步为buildPatchedKernel.sh文件中未执行语句,新建文件夹并copy文件:

mkdir -p image
cp /usr/src/kernel-4.9/arch/arm64/boot/Image ./image/Image

6、将新建文件夹下的image文件复制到boot下:sudo cp ./image/Image /boot
7、删除编译文件:

chmod +x ./removeAllKernelSources.sh
./removeAllKernelSources.sh

此时可能出现command not found问题,与4、同理:

chmod +x ./scripts/removeAllKernelSources.sh
sudo ./scripts/removeAllKernelSources.sh

此时会提醒找不到JAX-TX2-public_sources.tbz2,进入/usr/src发现实际文件名与该文件命有出入,手动删除或者修改文件名后执行命令。
8、安装librealsense2,在buildLbrealsense2TX2文件夹下打开终端运行:

chmod +x ./installLibrealsense.sh
./installLibrealsense.sh

可能遇到的问题:command not found,打开installLibrealsense.sh文档找到脚本文件名,可以与4、进行同样的处理遇到的第一个解决语句:

chmod +x ./scripts/installDependencies.sh
sudo ./scripts/installDependencies.sh

但是此文档中该语句后内容较多,一条条执行不方便,建议修改方案:在installLibrealsense.sh文件中找到错误命令对应的语句“sudo ./scripts/installDependencies.sh”,在语句前加命令:chmod +x ./scripts/installDependencies.sh。
保存文件后再次执行:./installLibrealsense.sh
可能遇到的错误:No CMAKE_CUDA_COMPILER could be found。解决方法:在/etc/environment文档中加一句:CUDACXX=/usr/local/cuda-10.0/bin/nvcc(我的CUDA是10.0版本)。该错误解决方法来自Github并未实践。
可能遇到的错误:librealsense did not successfully build.解决方法:将librealsense文件夹中的build文件夹删除后再次运行:./installLibrealsense.sh
9、没有错误安装成功,运行:realsense-viewer

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值