sudo yum install ckermit
执行以上命令,就可以在终端上输入kermit就可运行了。
配置:
kermit在启动时会查找~/.kermrc文件,调用里面的命令来初始化kermit。只要将你所需的命令写到~/.kermrc文件里,启动后就不这么麻烦了。
# vi ~/.kermrc
点击(此处)折叠或打开
- set line /dev/ttyS0 #如果是用USB转串口查看/dev/下,一般是ttyUSB0
- set speed 115200
- set carrier-watch off
- set handshake none
- set flow-control none
- robust
- set file type bin
- set file name lit
- set rec pack 1000
- set send pack 1000
- set window 5
- c
输入 kermit 命令启动
[xt@butbueatiful ~]# 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 by ? to see other options.
注:如果出现如下错误
?SET SPEED has no effect without prior SET LINE
Sorry, you must SET LINE or SET HOST first
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/xt/) C-Kermit>
执行chmod 777 /dev/ttyS0即可
发送文件:
输入loadb 回车
按下 ctrl + \ ,再按c,切换到kermit。
输入命令:send /home/zImage
kermit开始传送数据了,并可以看到传送进度。
发送完后,输入c,再回到u-boot界面
再输入:
go 0x******* (根据显示)
退出:
ctrl + \
q