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. dedecms5.7安装百度(ueditor)编辑器的方法

    第一步:下载相对应编辑器的版本 第二步:修改inc_func_funcAdmin.php文件 打开include下的inc文件夹内的inc_func_funcAdmin.php找到184行,贴入以下代 ...

  2. Deep Learning In NLP 神经网络与词向量

    0. 词向量是什么 自然语言理解的问题要转化为机器学习的问题,第一步肯定是要找一种方法把这些符号数学化. NLP 中最直观,也是到目前为止最常用的词表示方法是 One-hot Representati ...

  3. 【C语言学习】-02 分支结构

    本文目录: 一.BOOL布尔类型 二.关系运算符 三.逻辑运算符 四.if语句 五.枚举类型 六.switch语句 一.BOOL布尔类型 BOOL数据类型,是一种表示非真即假的数据类型,布尔类型的变量 ...

  4. eval函数的缺陷

    1.今天在维护产品目录的时候,发现了个奇葩的事情,eval函数转换出错,查验之后发现字符串中如果加入了换行符就会导致该问题. 2.测试程序 info.file [{productDirIds:'1', ...

  5. Android 微信分享图文资料

    上个项目做Android的微信分享,需要分享的内容有图片有文字,看了微信分享的SDK,貌似没有这个API,在网上搜了好久,总算找到解决方法了,直接上代码: public void sendReq(Co ...

  6. namenode 无法启动之每次开机需要重新格式化-tmp

    最近遇到了一个问题,执行start-all.sh的时候发现JPS一下namenode没有启动        每次开机都得重新格式化一下namenode才可以        其实问题就出在tmp文件,默 ...

  7. SharePoint 2013 开发——SharePoint Designer 2013工作流

    博客地址:http://blog.csdn.net/FoxDave SharePoint Designer 2013为开发者和高级用户提供了两种创建定制工作流的模式: 基于文本的设计器--即我们一直 ...

  8. ODI中web service介绍

    ODI WS架构

  9. HTML--9表单和验证事件

    1.表单验证<form></form> (1).非空验证(去空格) (2).对比验证(跟一个值对比) (3).范围验证(根据一个范围进行判断) (4).固定格式验证:电话号码, ...

  10. EF学习笔记(一)

    EF(EntityFramwork)实体框架:主要是将实体类(EntityClass)和数据表(Table)进行映射(Map). EF核心对象: DbContext   (数据访问核心对象)      ...