博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
install usb serial
阅读量:4973 次
发布时间:2019-06-12

本文共 1870 字,大约阅读时间需要 6 分钟。

Install driver for USB-UART bridge converter on Linux Ubuntu12.04

Ubuntu下USB转串口芯片驱动程序安装,支持cp210x,pl2303等
 
Reference: 
 
When you plugin your USB-UART converter, and run "
> ls /dev/tty*
", if you don't see the /dev/ttyUSB0 (or similar), your Linux does not detect your USB-UART device.
 
We need to install the driver for your device.
 
Here we use Ubuntu12.04, and Updated the source to 3.2.0 version. If there is difference about version Number from your OS platform, please try to modify it into yours.
 
 
1.Download the Linux Source Code
 
Open a terminal and execute the following commands. Note that your version of Linux may differ slightly -- adjust accordingly.
$ cd ~
$ sudo apt-get install build-essential linux-source
$ cp /usr/src/linux-source-3.2.0.tar.bz2 .
$ bunzip2 linux-source-3.2.0.tar.bz2 
$ tar xf linux-source-3.2.0.tar 
$ cd ~/linux-source-3.2.0
 
 
 
2.Recompile and Reinstall the cp210x Driver
 
From within a terminal, execute:
$ cd ~/linux-source-3.2.0
$ make oldconfig
$ make prepare
$ make scripts
$ cp /usr/src/linux-headers-3.2.0-34-generic-pae/Module.symvers .
 
Here, I have the "3.2.0
-29" version also, I launched the command above, but not the below:
  "cp /usr/src/linux-headers-3.2.0-29-generic-pae/Module.symvers ."
 
Recompile and Reinstall the cp210x Driver
Here, We can actually install many kinds of USB-UART converter drivers. We take cp210x as the example.
From within a terminal, execute:
 
$ make M=drivers/usb/serial
$ sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/serial/cp210x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/cp210x.ko.old
$ sudo cp drivers/usb/serial/cp210x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/
$ sudo modprobe -r cp210x
$ sudo modprobe cp210x
 
Reboot Linux system.
 
Run Terminal: 
$ ls /dev/tty*
The we can see the device is detected by Linux Host OS:

转载于:https://www.cnblogs.com/zxouxuewei/p/5430450.html

你可能感兴趣的文章
cross socket和msgpack的数据序列和还原
查看>>
解决跨操作系统平台JSON中文乱码问题
查看>>
DELPHI搭建centos开发环境
查看>>
IdHTTPServer允许跨域访问
查看>>
更新.net core 3.0,dotnet ef命令无法使用的解决办法
查看>>
React躬行记(13)——React Router
查看>>
前端利器躬行记(1)——npm
查看>>
前端利器躬行记(2)——Babel
查看>>
前端利器躬行记(6)——Fiddler
查看>>
Forbidden You don't have permission to access / on this server.
查看>>
Windows server 2008 R2中安装MySQL !
查看>>
Intellij Idea新建web项目(转)
查看>>
用JAVA编写浏览器内核之实现javascript的document对象与内置方法
查看>>
linux 命令之top
查看>>
洛谷 [P3033] 牛的障碍
查看>>
centos iptables
查看>>
unity3d 移动与旋转 2
查看>>
寻找二叉查找树中比指定值小的所有节点中最大的那个节点
查看>>
如何设置输入框达到只读效果
查看>>
RT3070 USB WIFI 在连接socket编程过程中问题总结
查看>>