在TX1上安装RPLidar及其驱动


安装:参考官方教程即可:https://github.com/robopeak/rplidar_ros/wiki

问题:安装完rplidar后,命令行输入ls –l /dev | grep ttyUSB 并没有发现 /dev/ttyUSB0。

原因:TX1内核里缺少相应的驱动,cp210x


方法1:

比较直接的方法是 http://blog.csdn.net/sinat_31135199/article/details/52902744?locationNum=13&fps=1 博客里的方法,即直接在TX1上编译相应的驱动。

但是我在tx1上编译的过程中遇到了以下问题:
Failed to compile kernel module (gcc cannot recognize aarch64 option: -mgeneral-regs-only)

可能原因是:
‘This is an aarch64 specific option that the ARM A57 on TX1 should support, so I guess it’s a toolchain issue.’
如果执行以下步骤重新安装gcc,会卸载掉原先安装好的cuda,ros,plc等程序
sudo dpkg –add-architecture arm64
sudo apt-get update
sudo apt-get install libc6:arm64 binutils:arm64 cpp-4.8:arm64 gcc-4.8:arm64


方法2:

用这个方法解决了以上问题,思路是在pc机上交叉编译cp210x这个驱动,然后把相应的库文件拷贝到tx1上的相应位置,配置生效。

参考:

https://devtalk.nvidia.com/default/topic/906942/failed-to-compile-module-gcc-cannot-recognize-aarch64-option-mgeneral-regs-only-/

I’ve been struggling with getting cross compilation to work with the Jetson TX1 kernel source for a while and also found a lot of the posts on the forum to be only partial answers. I’m going to step through it here.

As a more direct response to the question above, the -mgeneral-regs-only error means you’re using the wrong compiler to attempt to compile the kernel source (one which doesn’t take the -mgeneral-regs-only flag). You might be trying to just compile the kernel source on the Jetson or you might be trying to cross compile on another machine and t

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值