2016年(152)
分类: LINUX
2016-06-02 14:13:39
原文地址:关于《使用C-Kermit下载内核》的补充 作者:tekkamanninja
kermit,每次使用时,都要将命令复制过来一遍,麻烦!
今天在研究U-Boot时,看了U-Boot的官方,里面讲到了。我才知道
kermit在启动时会查找~/.kermrc文件,调用里面的命令来初始化
kermit。只要将你所需的命令写到
~/.kermrc文件里,启动后就不这么麻烦了。
# 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 lit
set rec pack 1000
set send pack 1000
set window 5
c
保存后退出即可。然后启动
kermit,你会看到:
# 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.
----------------------------------------------------