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. Struts2 的验证

    概述 一个健壮的 web 应用程序必须确保用户输入是合法.有效的. Struts2 的输入验证 –基于 XWork Validation Framework 的声明式验证:Struts2 提供了一些基 ...

  2. 查看UI调试界面利器 revealapp

    官网 http://revealapp.com 做iOS的开发,UI是非常非常重要的一环.调试时我们一般用模拟器,提交前用真机做测试.用模拟器来调试UI效果虽然快捷方便,但有时仍然希望有更强大的工具来 ...

  3. CodeForces 468A Program F

    Description Little X used to play a card game called "24 Game", but recently he has found ...

  4. bitmapData

    一些常用接口: clone(): 得到位图数据的拷贝: 用途:深复制位图 draw(source :IBitmapDrawable...): source 要绘制到 BitmapData 对象的显示对 ...

  5. Eclipse版本及其代号

    1.维基百科介绍 http://zh.wikipedia.org/wiki/Eclipse 2.版本及其代号

  6. Core Text概述

    本文是我翻译的苹果官方文档<Core Text Overview> Core Text框架是高级的底层文字布局和处理字体的技术.它在Mac OS X v10.5 and iOS 3.2开始 ...

  7. python文件打包格式,pip包管理

    1..whl是python文件的一种打包格式, 在有些情况下,可以将文件的后缀名改为.zip并解压 2.cmd中,提示pip版本太低,先升级pip   pip install --upgrade pi ...

  8. JS constructor

    1.每个对象都有一个constructor,都指向创建该对象的方法. 2.function对象的prototype的constructor也是指向该方法.如果对prototype进行重写,constr ...

  9. MagSpoof:能预测并窃取你下一张信用卡号码的廉价设备

    想象一下,你丢失了信用卡,并从银行申请了一张新的信用卡.但是,如果在你收到这张新卡之前,一些网络罪犯就已经在使用你的新信用卡,此时你作何感想?是的,这完全是可以实现的,至少使用这个仅仅10美元的设备M ...

  10. 解决:Android编译源码根目录下/system/vold后,通过push命令将编译生成的vold文件push至system/bin下无法正常开机

    这段时间由于工作需要,在对android根目录下/system/vold进行修改编译的时候,在通过adb命令将vold文件push至/system/bin目录下,adb reboot重启手机却发现一直 ...