Upload and download minicom under Ubuntu12.04

Source: Internet
Author: User
Linux: Ubuntu12.04 uploads and downloads minicom. 1. enter sudoapt-getinstallminicom in the terminal to install and configure minicom. Then, enter sudominicom-s in the terminal to enter the configuration interface and the third option & ldquo; serialportsetup & rdquo;. The configuration is as follows: + ---------

Linux: Ubuntu 12.04

Upload and download minicom.

1. installation and configuration of minicom

Enter sudo apt-get install minicom in the terminal to install minicom.

Then, enter sudo minicom-s in the terminal to enter the configuration interface,

Go to the third option "Serial port setup" and configure it as follows:

+ ----------------------------------------------------------------------- +

| 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? |

+ ----------------------------------------------------------------------- +

Next, set "filenames ant paths" to the upload and download paths of minicom.

Upload directory is the file path uploaded from the PC end to the Development Board,

Download directory is the file path downloaded from the development class to the PC.

Then select Save setup as dfl to Save the configuration.

2. Install lrzsz

1. install lrzsz: sudo apt-get install lrzsz on the PC

2. Cross-compile lrzsz and download it to the Development Board:

A. Download The lrzsz source package. To the http://www.linuxidc.com/Linux/2010-08/27739.htm, the next lrzsz tar package

B. decompress and run./configure (tar-zxf lrzsz-0.12.20.tar.gz; cd lrzsz-0.12.20/;./configure) in the decompressed directory)

C. Modify Makefile:

There are three makefiles to be modified, respectively lrzsz-0.12.20/Makefile, lrzsz-0.12.20/lib/Makefile, lrzsz-0.12.20/src/Makefile

Replace all gcc in the three makefiles with the cross compiler required by your Development Board, such as arm-linux-gcc (not installed)

(That is, CC = gcc CPP = gcc-E are changed to CC = arm-linux-gcc CPP = arm-linux-gcc-E)

D. Compile: make

E. two executable files lsz, lrz (or sz, rz) are generated under the lrzsz-0.12.20/src directory. Next we will use minicom to download them to the/bin directory of the linux System of the Development Board.

F. cp lrz/home/wgc/arm_upload

Cp lsz/home/wgc/arm_upload

3. Use minicom to upload files from the PC to the Development Board (PC-> Development Board)

Enter sudo minicom on the terminal, enter minicom, connect to the data line of the Development Board, start the development board from nor flash, and enter uboot mode. In the pop-up options, select 8 Boot the system.

Because we want to download lsz and lrz to the/usr/bin directory under the Development Board, after entering the Development Board, we will go to the cd/usr/bin directory.

Then, press Ctrl + A and then open it. The following gray line appears under the terminal:

Press and hold S, Select zmodem from the pop-up options, and enter the Select one or more files for upload dialog box.

Press the tab key, select the menu, and select Goto. The Goto directory dialog box is displayed. Enter the path of the file to be transferred on the PC, such as/home/wgc/arm_upload. Press enter, you can see all the files in the arm_upload directory.

Then press the keys to move, press the space key to select a file, and then select Okay. Enter

Transfer successful! And then the lsz transmits the data as well.

In this step, we have completed the transfer of PC-> Development Board

4. Development Board-> PC

Now, I want to upload the test.txt file under the current directory to the PC,

Input: lsz test.txt

The upload is successful. You can view the test.txt file after entering/home/wgc/arm_downloadin the PC.

Here, we have completed the transfer of PC-> Development Board and Development Board-> PC files.

Ubuntu serial port tool minicom use and DNW image burning http://www.linuxidc.com/Linux/2012-08/67589.htm

Linux Super Terminal mini COM and XGCom http://www.linuxidc.com/Linux/2012-06/63691.htm

Install and configure the minicom http://www.linuxidc.com/Linux/2012-05/60248.htm in Ubuntu

Porting minicom porting to S3C2440 http://www.linuxidc.com/Linux/2011-07/38999.htm

Managing serial device http://www.linuxidc.com/Linux/2011-04/34924.htm with minicom in Linux

Minicom details: Click here
Minicom: Click here

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/105269.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.