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

Ubuntu下USB转串口芯片驱动程序安装,支持cp210x,pl2303等

 
 
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:

install usb serial的更多相关文章

  1. usb serial for android

    /******************************************************************** * usb serial for android * 说明: ...

  2. gentoo usb serial ch340 16进制读写

    首先安装包含 lsusb 命令的 usbutils, emerge -v usbutils. 使用 lsusb后,可以查看到 ch340 的信息: Bus 001 Device 004: ID 1a8 ...

  3. Linux/drivers/usb/serial/ftdi_sio.c

    Linux/drivers/usb/serial/ftdi_sio.h /* 2 * Driver definitions for the FTDI USB Single Port Serial Co ...

  4. Seeking USB Serial Com Port in Windows Automatically : via PID VID

    After you read previous article, you might know how to operate a com port in Windows.    But that ex ...

  5. linux下USB串口,minicom

    [一].驱动相关说明: 如果直接使用串口线,而没有用到USB转串口设备,就不需要安装驱动. 如果使用了USB转串口,一般情况下也不需要安装驱动了,目前linux系统已经包含了该驱动,可以自动识别,亦可 ...

  6. [转]Mac's and serial TTY's

    Mac's are excellent tools for accessing serial device TTY ports (to console into PBX's, switches, an ...

  7. ubuntu + usb转RS232驱动

    1. 购买USB转串RS232/485/422 如果你的电脑有串口的话,就不用买啦,我的台式机有串口,把USB转串的线插上之后,unbuntu就不支持了.(自己有嘛) 就是输入  ls /dev/tt ...

  8. 『翻译』Access USB Devices on the Web

    https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web Access USB Devices o ...

  9. USB组合设备 Interface Association Descriptor (IAD)

    Communication Device Class,简称CDCUSB Compound Device,USB复合设备USB Composite Device,USB组合设备 摘要USB复合设备 Co ...

随机推荐

  1. 【个人使用.Net类库】(1)INI配置文件操作类

    开发接口程序时,对于接口程序配置的IP地址.端口等都需要是可配置的,而在Win Api原生实现了INI文件的读写操作,因此只需要调用Win Api中的方法即可操作INI配置文件,关键代码就是如何调用W ...

  2. 一步步学习JSON

    什么是Json json是JavaScript Object Notation(javascript对象表示法)的缩写,是一种轻量的数据格式,是基于javascript的一个子集.与XML一样,jso ...

  3. POJ 2559 Program C

    Submit Status Practice POJ 2559 Description A histogram is a polygon composed of a sequence of recta ...

  4. source 命令与“ . ”点命令

    http://wenku.baidu.com/link?url=r3_WjJwQziv5wooIiatYbIMotPHcop56ZyakNGFor5DgJLQD-orAwVmOwp80RAnJ3tRD ...

  5. Fix the Can’t clobber writable file error in Perforce Version Control System - forward

    http://easyprograming.com/eclipse-articles/57-fix-the-cant-clobber-writable-file-error-in-perforce-v ...

  6. SharePoint 2013 开发——构建工作流开发环境

    博客地址:http://blog.csdn.net/FoxDave 本篇我们来讲述一下如何搭建SharePoint 2013工作流开发环境. Windows Azure Workflow作为单独的可下 ...

  7. mysql 批量创建表

    使用存储过程 BEGIN    DECLARE `@i` int(11);    DECLARE `@sqlstr` varchar(2560); SET `@i`=0; WHILE `@i` < ...

  8. UID 修改 & UID 锁死修复

    首先是UID修改的问题,只要卡是UID卡,就都可以修改UID,首先读卡器连接电脑,卡片放到读卡器上. 然后我们要用一个工具,UID207.打开UID207.exe,点Initialize,初始化. 然 ...

  9. 玩转无线电 -- GPS Hacking (上)

    0x00 序 GPS Hacking 在过去几年的安全会议上一直都是很受关注的议题. 但往往因为内容太过学术化, 所需设备成本太高. 让许多感兴趣的朋友苦于无法入门. 直到GPS-SDR-SIM 这类 ...

  10. Best Sequence_DFS&&KMp

    Description The twenty-first century is a biology-technology developing century. One of the most att ...