Use C-Kermit to download the kernel

Source: Internet
Author: User
Use C-Kermit to download the kernel-general Linux technology-Linux programming and kernel information. The following is a detailed description. Since minicom cannot download kernel, I download it from windows. Today, the waste windows XP went down and couldn't get down the kernel, so I had to look at how to download the kernel (forced) from com under Fedora ). The kernel is finally downloaded in FC6 tonight. Linux has always been used in VMware. One of the reasons is that kernel images cannot be downloaded in the FC6 environment. It took a long time. The kermit Protocol cannot be used in minicom, and the network cannot be downloaded. Besides, if the network is used, you often have to change the network cable. I got a C-Kermit tonight, which is easy to use. The following describes how to install and use C-Kermit.

1. Download c-kermitat http://www.columbia.edu/kermit/ck80.html#download. If cku211.tar.gz is downloaded, run the following command:

Gunzip cku211.tar.gz

Tar xvf cku211.tar

Rm-rf cku211.tar

Make linux

Mv wermit/usr/local/bin/kermit

Run the preceding command to run kermit on the terminal.

2. After running kermit, you must configure it to download the kernel, for example:

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

Run the following command: connect

You can use the serial port to enter the same serial port as minicom.

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, the connect command.

Send file:

Enter connect in kermit and jump to the u-boot serial port interface.

Enter loadb 0x0c008000 and press Enter.

Press ctrl + \ and then press c to switch to kermit.

Enter the command: send/home/zImage

Kermit starts to transfer data, and you can see the transfer progress. After sending the data, enter c, return to the u-boot interface, and then enter go 0x0c008000.

The kernel is running.

Kermit will be searched at startup ~ /. Kermrc file, call the command in it to initialize kermit. Just write the commands you need ~ /. In the kermrc file, it will not be so troublesome after startup.

# Vi ~ /. 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

Save and exit. Start kermit and you will see:

# Kermit
Connecting to/dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
Or followed? To see other options.

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.