zoukankan      html  css  js  c++  java
  • linux使用usb转串口调试ARM开发板


    usb转串口使用的是pl2303芯片,linux2.4以上版本已经自带驱动。

    1.安装minicom

    Ubuntu中使用 sudo apt-get install minicom 安装即可

    2.配置minicom

       # minicom -s
       Serial port setup [Enter]
        +-------------------------------------------------------------+
        | A -    Serial Device      : /dev/ttyUSB0                    |
        | B - Lockfile Location     : /var/lock                       |
        | C -   Callin Program      :                                 |
        | D - Callout Program      -:                                 |
        | E -    Bps/Par/Bits       : 115200 8N1                      |
        | F - Hardware Flow Control : No                              |
        | G - Software Flow Control : No                              |
        |                                                             |
        |    Change which setting?                                    |
        +-------------------------------------------------------------+
    注: 如果没有使用USB转接口,Serial Device要配置为/dev/ttyS0

       Save setup as dfl
       Exit from Minicom

     

    使用USB转串口需要注意:
    首先要加载USB-serial转换线驱动:modprobe pl2303

    查看状态:dmesg | grep pl2303

    [ 2788.401258] usb 6-1: FTDI USB Serial Device converter now attached to ttyUSB0
    [ 6664.718291] usbcore: registered new interface driver pl2303

    3.使用minicom传输文件
    --------------------------------------------------
    # minicom
    (Ctrl + a) --> s --> zmodem --> [Okay] -->
       
        +-----------------------------------------+
        |No file selected - enter filename:       |
        |> /home/zxl/ssl/codes/led/lls_led.ko     | [Enter]
        +-----------------------------------------+






  • 相关阅读:
    设置zookeeper开机自启动
    安装zookeeper
    Elasticsearch 5.6.5 安装head插件
    [redis] Node is not empty. Either the node already knows other nodes
    【redis】 redis 创建集群时,Waiting for the cluster to join.... 一直等待
    [redis] redis.clients.jedis.exceptions.JedisDataException: MOVED 13102 127.0.0.1
    [linux] FastDFS访问文件,400 Bad Request
    [linux] Nginx编译安装错误error: the HTTP rewrite module requires the PCRE library
    [java] java解析txt文件
    【java】 java 解压tar.gz读取内容
  • 原文地址:https://www.cnblogs.com/oceanking/p/2679494.html
Copyright © 2011-2022 走看看