使用ckermit通过console传送文件

1. 安装kermit

apt-get install ckermit

 

2. 设置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 lit
set rec pack 1000
set send pack 1000
set window 5

 

3. 连接

kermit -c

 

4. 发送文件

Richard # loadb 0xc0008000
## Ready for binary (kermit) download to 0x00100000 at 115200 bps...
Ctrl-/c  (Ctrl-/ 加上 c)
(Back at wizard-desktop)
----------------------------------------------------
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.
(/root/) C-Kermit>send test.txt
(/root/) C-Kermit>connect
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.
----------------------------------------------------
## Total Size      = 0x00000007 = 7 Bytes
## Start Addr      = 0x00100000
Richard #

 

好了,文件传到0x100000地址了。

 

5. 退出 及其他命令

也是

Ctrl-/c  

然后help就好了

你可能感兴趣的:(使用ckermit通过console传送文件)