2012年(1008)
分类:
2012-08-01 10:44:48
原文地址:关于《使用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.
----------------------------------------------------