linux minicom配置

来源:互联网 发布:好八字是什么 知乎 编辑:程序博客网 时间:2024/06/08 05:46
首先看一下系统有没有安装minicomwhich minicom ,没有输出相应的结果,我的linux没有安装minicom。那么我们来安装它,我使用的是ubuntu,可以使用下列命令安装它:sudo apt-get install minicom安装完成后,配置minicom。终端下输入命令:sudo minicom -s(记得sudo否则会提示权限不足) +-----[configuration]------+ | Filenames and paths      | | File transfer protocols  | | Serial port setup        | | Modem and dialing        | | Screen and keyboard      | | Save setup as dfl        | | Save setup as..          | | Exit                     | | Exit from Minicom        |
选择Serial port setup     +-------------------------------------------------------------+    | A -    Serial Device      : /dev/ttyS0                      |    | 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?                                    |    +-------------------------------------------------------------+A(按键盘a/A)的tty8改为ttyS0波特率等等根据需要连接设备来设置,设置完毕后按下回车键,回到主菜单。

+-----[configuration]------+

 | Filenames and paths      | | File transfer protocols  | | Serial port setup        | | Modem and dialing        | | Screen and keyboard      | | Save setup as dfl        | | Save setup as..          | | Exit                     | | Exit from Minicom        |然后选择 Save setup as dfl 。如需使用minicom来传输文件,则选择 Modem and dialingA—initing string BRest string KHang-up string 这三项的值去掉。按回车键返回。最后选择  Exit from Minicom连接上设备,终端下 sudo minicom , 我的板子上的u-boot输出信息:Press CTRL-A Z for help on special keys                                                                   *** Warning - bad CRC or NAND, using default environment                                                     Press Space key to Download Mode !                   #####    Boot for Nor Flash Main Menu   #####[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash[2] Download Eboot to Nand Flash[3] Download Linux Kernel to Nand Flash[5] Download CRAMFS image to Nand Flash[6] Download YAFFS image to Nand Flash[7] Download Program (uCOS-II or 2440_Test) to SDRAM and Run it[8] Boot the system[9] Format the Nand Flash[0] Set the boot parameters[a] Download User Program (eg: uCOS-II or 2440_Test) to Nand Flash              [b] Download LOGO Picture (.bin) to Nand  Flash                                 [l] Set LCD Parameters                                                          [o] Download u-boot to Nor Flash                                                [r] Reboot u-boot                                                               [q] quit from menu                                                              Enter your selection: PS1、如果是使用usb转串口,则需lsmod | grep usbserial若有usbserial,则说明系统支持usb转串口,那么Serial port setup A项应该为/dev/ttyUSB02、使用minicom传送文件:--------------------------------------------------# minicom(Ctrl + a) --> s --> zmodem --> [Okay] -->         +-----------------------------------------+     |No file selected - enter filename:       |     |> /home/codes/led/ledBin       | [Enter]    +-----------------------------------------+ 3、如果键盘无法使用,进入Serial port setup界面,将F项的
Hardware Flow Control改为NO(按下F键就行)