install usb serial

來源:互聯網
上載者:User

標籤:

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

Ubuntu下USB轉串口晶片驅動程式安裝,支援cp210x,pl2303等
 Reference: Fixing the cp210x open - Unable to enable UARTError 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-UARTdevice. We need to install the driver for yourdevice. Here we use Ubuntu12.04, and Updated thesource to 3.2.0 version. If there is difference about versionNumber from your OS platform, please try to modify it intoyours.  1.Download theLinux Source Code Open a terminal and execute the followingcommands. Note that your version of Linux may differ slightly --adjust accordingly.$ cd ~$ sudo apt-get installbuild-essential linux-source$ cp/usr/src/linux-source-3.2.0.tar.bz2 .$ bunzip2linux-source-3.2.0.tar.bz2 $ tar xflinux-source-3.2.0.tar $ cd~/linux-source-3.2.0   2.Recompile andReinstall 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 cp210xDriverHere, We can actually install many kindsof USB-UART converter drivers. We take cp210x as theexample.From within a terminal,execute: $ makeM=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 cpdrivers/usb/serial/cp210x.ko /lib/modules/$(uname-r)/kernel/drivers/usb/serial/$ sudo modprobe -rcp210x$ sudo modprobecp210x Reboot Linux system. RunTerminal: $ ls /dev/tty*The we can see the device is detected byLinux Host OS:

install usb serial

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.