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. 简单探索ContentProviderOperation

    前面一片文章中用到了ContentProviderOperation,那么我们就来看看ContentProviderOperation到底是怎么工作的. 1. ContentProviderOpera ...

  2. 数据结构-bubble sort

    #gcc version 4.5.3 (GCC) #include <iostream> #include <algorithm> template <typename ...

  3. 0xC0000005: 读取位置 0x00000000 时发生访问冲突

    遇见这种问题一般都是空指针,即:指针里没有赋值~ 如果你对null 进行操作就会产生空指针异常 Object obj = new Object(); 你要知道 obj是一个Object指针变量,指向O ...

  4. java抽象类与接口 详解

    在面向对象的概念中,我们知道所有的对象都是通过类来描绘的,但是并不是所有的类都是用来描绘对象的,如果一个类中没有包含足够的信息来描绘一个具体的对象,这样的类就是抽象类. 抽象类往往用来表征我们在对问题 ...

  5. RPI学习--WebCam_mplayer

    1,安装mplayer $ sudo apt-get install mplayer 2,运行 $ sudo mplayer tv:// 有时会秀逗,绿屏,多试几下就好了,情况未知

  6. 教学目标的表述方式──行为目标的ABCD表述法

    教学目标应规定学生在教学活动结束后能表现出什么样的学业行为,并限定学生学习过程中知识.技能的获得和情感态度发展的层次.范围.方式及变化效果的量度.对每节课教学目标的准确表述,可以充分发挥教学目标在教学 ...

  7. 迭代器(Iterator)模式

    转自:http://blog.csdn.net/lilu_leo/article/details/7609496 概述      迭代器(Iterator)模式,又叫做游标(Cursor)模式.GOF ...

  8. 转:Python时间戳和日期的相互转换

    当前时间戳:time.time() 当前日期:time.ctime() 1.Python下日期到时间戳的转换 import datetime import time dateC=datetime.da ...

  9. Ubuntu 14.10 下NodeJS Cannot find module 'npmlog'

    在安装brunch的时候npm install -g brunch发现如下问题: Error: Cannot find module ‘npmlog’ at Function.Module._reso ...

  10. 45个非常有用的oracle语句(摘自尚学堂)

    日期/时间 相关查询 获取当前月份的第一天 运行这个命令能快速返回当前月份的第一天.你可以用任何的日期值替换 “SYSDATE”来指定查询的日期. 1 2 SELECT TRUNC (SYSDATE, ...