1. Download Kermit # sudo apt-Get install Kermit 2. view the Installation File
Starby ~ # Ls-L/usr/bin /*
Kermit*
-Rwxr-XR-x 1 Root 21257 07-17 0:41
Ckermit. ini
-Rwxr-XR-x 1 Root 2138660
07-17
Kermit
Lrwxrwxrwx 1 Root 15 07-17 0:41
Kermit-Sshsub->
/Usr/bin/
Kermit3. Add
KermitDefault configuration file (u-boot/tools/DOT. kermrc)
KermitAt startup, The. kermrc file under the user's home directory will be searched and the command in it will be called to set
Kermit.
# Cat> ~ /. 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
Set prompt
Kermit>
Define sz! Sz/% 1/% 2/% 3/% 4/% 5/% 6/% 7/% 8
/% 9 </v (line)>/v (line)
Define rz
! Rz/% 1/% 2/% 3/% 4/% 5/% 6/% 7/% 8/% 9 </v (line)>/v (line)
Define sx! Sx/% 1/% 2/% 3/% 4/% 5/% 6/% 7/% 8
/% 9 </v (line)>/v (line)
Define rx
! Rx/% 1/% 2/% 3/% 4/% 5/% 6/% 7/% 8/% 9 </v (line)>/v (line)
^ D
Note:
TtyS0 corresponds to COM1, ttyUSB0 corresponds to USB to serial device. 4. Start
Kermit
#
Kermit##
This command (or ckermit. ini) enters
KermitThe following welcome information is displayed:
C-
Kermit8.0.211, 10
Apr 2004, for Linux
Copyright (C) 1985,
2004,
Trustees of Columbia University in
The City of New York.
Type? Or HELP
Help.
(/Root/) C-
Kermit>
##
KermitCommand Line prompt. 5. Connect to the serial port to display the system information of the Development Board.
(/Root/) C-
Kermit>
Connect ##
KermitConnect to the serial port.
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.
----------------------------------------------------
[/N] #
Just press Enter. The following shows the Development Board information:
Mpc8349itx ~ # Ls ##
This operation is performed on the Development Board mpc8349itx.
Diskinit-1.1.sh
Get. sh put. sh
Mpc8349itx ~ #
Note: To enable
KermitDirectly connect to the serial port. Enter the following command:
Kermit-C. 6. switch back
Kermit
Mpc8349itx ~ ### Press ctrl at the same time
+/"Followed by" c ".
(Back at starby)
----------------------------------------------------
(/Root/) C-
Kermit>
# Returned
KermitTo connect to the serial port again, enter connect
Or c. 7. Download an object
For example, download the Kernel File/home/liuby/uImage:
First, make sure that
KermitConnect to the serial port, that is, the start is the input
Kermit-C
Or connect to the serial port;
Enter loadb 0x200000 in the u-boot command line;
Then press ctrl +/, and then press c to switch
Kermit.
In
KermitEnter "send" in the command interface.
/Home/liuby/uImage
Then
KermitStart sending data. You can see the transmission progress. After sending the data, enter connect to enter the u-boot command line again. 8. Send text files
The settings are as follows ~ /. Kermrc, or manually set, or add the last four items to the above configuration file ~ /. In kermrc:
# Cat> ~ /. Kermrc
Set line/dev/ttyS0
Set speed 115200
Set carrier-watch off
Set handshake none
Set flow-control none
Set transmit echo on
Set transmit pause 20
Set transmit timeout 1
Set transmit prompt 62
Or modify/etc/kermit/kermrcset line/dev/ttyS0set speed 115200 set carrier-watch offset handshake noneset flow-control nonerobustset file type binset file name litset rec pack 1000 set send pack 1000 set window 5
For example, to send a file mpc8349itx set-uboot-env.txt
First, pay attention to format conversion (line break), and use the following command to convert:
# Dos2unix mpc8349itx/set-uboot-env.txt
ThenKermit-C or connect
Connect to the serial port, press Ctrl +/, and then press C to switchKermitOn the command line interface, enter the following command in the command line to send a text file:
(/Root/) c-Kermit> Transmit
"Maid set-uboot-env.txt"
English version (reference from the http://blog.chinaunix.net/u2/80953/showart.php? Id = 1897149 9. ExitKermit
IfKermitOn the command interface, enter Q to exit, as shown below:
(/Root/) c-Kermit> Q
Closing/dev/ttys0. .. OK
If you can see the Development Board information during the connect process, you can press Ctrl +/and then press Q
Exit directlyKermit.
Mpc8349itx ~ ### Press Ctrl at the same time
+/"Followed by" Q"
Closing/dev/ttys0. .. OK
Starby ~ ### ExitedKermit. 10. Common usersKermit
Common usersKermit, Except configuration ~ /. In addition to kermrc, do you still need to pair/dev/ttyS? (TtyS0, ttyUSB0. ..) has read and write permissions.
Starby ~ # Ls-l/dev/ttyS0
Crw-rw ---- 1 root uucp 4, 64 07-17
/Dev/ttyS0
To use/dev/ttyS0 for a common user, add the common user to the uucp group.
# Groupmems-a liuby-g uucp ##
This command adds liuby, a common user, to the uucp group. From: http://xxw8393.blog.163.com/blog/static/37256834201011610249930/