Use the Kermit protocol in Ubuntu to transmit files through the serial port (retention verification)

Source: Internet
Author: User

 

Run the C-Kermit software under Ubuntu to call the Kermit protocol and send the kernel file to the Development Board. Record the twists and turns.

(1) minicom

First, using minicom is an error. Then, I tried to use minicom. In fact, I should abandon using minicom and switch to other tools at the beginning. U-boot Official website has already made it clear. Here:

Http://www.denx.de/wiki/view/DULG/UBootCmdGroupDownload#Section_5.9.5.3.

Minicom is another popular serial communication program. unfortunately, many users have reported problems using it with U-boot and Linux, especially when trying to use it for serial image download. it's use is therefore discouraged.

(2) c-Kermit

C-Kermit is no problem at all. Compile a Kermit configuration file:

~ /. Kermrc:
Set line/dev/ttys0
Set speed 115200
Set carrier-watch off
Set handshake none
Set flow-control none
Robust
Set file type Bin
Set file name Parameters
Set rec package 1000
Set Send package 1000
Set window 5

C-Kermit can be downloaded from http://www.columbia.edu/kermit.

(3) Usage

Run the following command:

Connect

You can connect to the Development Board, which is the same as minicom and feels faster.

(4) Switch

Press Ctrl + \ and then press C to jump back to kermit.

Switch back to the serial port control, you can enter C, that is, connect.

(5) Send files

After entering connect in Kermit, it is transferred to the U-boot serial port interface.

Enter loadb 0x00300000 to start the Kermit protocol on the Development Board.

Press Ctrl + \ and then press C to switch to kermit.

Enter the command: Send/home/share/uimage. PKG

Kermit starts transfer, and a transfer interface is displayed, and the transfer progress is displayed dynamically.

After the transfer, enter C, that is, the connect command, and return to the serial port interface of U-boot.

Run the U-boot command to start the kernel.

Finished!

(6) Speed comparison: The Kermit in Linux is much faster.

I don't know why. If the same development board does not change any code, I use a Windows Super Terminal to transfer files, which is obviously not as fast as using Kermit in Linux. Although the Super Terminal is relatively easy to use, the Linux Kermit is not bad, and the speed is much faster than that of the Super Terminal. We recommend that you use the Kermit software in Linux.

From: http://szricky.blog.hexun.com/8444684_d.html

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.