Use of Ubuntu serial port tool Minicom and install DNW Image

Source: Internet
Author: User
Use the Ubuntu serial port tool minicom and install the dnw image (mainly for the Android210 Development Board ). I. Minicom also has serial communication tools in Ubuntu, such as Minicom and kermit. The usage of Minicom is described here. (1) install suodoapt-getinstallminicom (2) Start Minicom with root permission. Start command: sudominicom

Use the Ubuntu serial port tool minicom and install the dnw image (mainly for the Android210 Development Board ).

I. Use Minicom

There are also serial communication tools in Ubuntu, such as Minicom and kermit. The usage of Minicom is described here.

(1) Installation

Suodo apt-get install minicom

(2) Start

The root permission must be used to start Minicom.

Start command: sudo minicom

(3) Serial Port Configuration

Run the sudo minicom command and the following prompt appears at the bottom of the screen:

CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.4 | VT102 | Offline

Press ctrl + o to enter the configuration interface as follows:

+ ----- [Configuration] ------ +
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as... |
| Exit |
+ -------------------------------- +


Then press the up/down key to select and enter the menu for configuration.

Here we mainly configure the Serial port setup item. Select this option and the following configuration page is displayed:

+ ----------------------------------------------------------------------- +
| 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? |
+ ----------------------------------------------------------------------- +
Press A, B, and C to enter the corresponding configuration item. After the configuration item is edited, Press esc to exit.

Here we mainly configure the Serial Device item and Bps/Par/Bits item. We can use ls/dev/to view the devices under/dev. If we connect to the Device Serial port through usb to Serial port, here we should look

/Dev/ttyUSB? Device, usually/dev/ttyUSB0. If you connect to the serial port directly, the device name is usually/dev/ttyS ?, It is generally/dev/ttyS0. Bps/Par/Bits item 232 serial port configuration

115200.

Note: Here, item F is the default value of the Hardware Flow Control item. This will make it unavailable after the serial port connection. If the input is unavailable, modify item F to no.

II. DNW usage

The development software provided by the Android210 Development Board is based on windows. For example, if the image burning software is dnw, the driver is generally adapted to the 232 serial port driver. Dnw has functions such as display and file transfer.

However, for the convenience of source code compilation, I am used to working directly under ubuntu. In this case, you need to find the dnw in linux to burn the Android210 image. Good to find this tool here: http://code.google.com/p/dnw-linux/

You can use git to get the code:

$ Git clone https://github.com/changbindu/dnw-linux.git

The following is the compilation and use of this tool (in fact, these are very detailed in the source code README, it is recommended to directly read the README documentation ):


(1) build and install

$ Make
$ Sudo make install
(2) tool usage

Connect board to PC and open minicom. Boot board and enter U-Boot command line mode. Then run command "dnw "In U-Boot. U-Boot may print bellow message:
Insert a OTG cable into the connector!
OTG cable Connected!
Now, Waiting for DNW to transmit data

Now, you can download your file to board by follow command on PC end:
$ Sudo dnw file_to_download
The downloading speed tested is about 3.8 M/S.
Notes:

Above steps have only downloaded file to board's RAM, so you need flash it to nand via U-Boot command "nand write ".
If above doesn' t work, pls check if you can see bellow message in dmesg.
Usb 1-1: new full speed USB device using uhci_hcd and address 2
Usb 1-1: configuration #1 chosen from 1 choice
Secbulk: secbulk probing...
Secbulk: bulk out endpoint found!

Minicom details: Click here
Minicom: Click here

Reading:

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

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.