原创 [博客大赛]U-Boot for AM335x (7) 使用kermit

2014-8-28 09:07 1407 21 21 分类: MCU/ 嵌入式 文集: U-Boot

U-Boot for AM335x (7) 使用kermit

虽然我是minicom的忠实用户,但是调试U-Boot转向了kermit,因为前者的文件传输协议在这里有点问题。kermit也是开源软件,使用方法和minicom有点不同,但也是很好掌握的:

===========================================
http://www.denx.de/wiki/view/DULG/SystemSetup#Section_4.3.
===========================================
kermit executes the commands in its initialization file, .kermrc, in your home directory before it executes any other commands, so this can be easily used to customize its behaviour using appropriate initialization commands. The following settings are recommended for use with U-Boot and Linux:

(在终端输入kermit,然后在其命令提示符下输入:)
set line /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

The example assumes that you use the first serial port of your host system (/dev/ttyS0) at a baudrate of 115200 to connect to the target's serial console port.

You can then connect to the serial line:

$ kermit -c
Connecting to /dev/ttyS0, speed 115200.
The escape character is Ctrl-\ (ASCII 28, FS)
Type the escape character followed by C to get back,
or followed by ? to see other options.
(实际上我用的命令是不是kermit -c,而是connect。)
 

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
21
关闭 站长推荐上一条 /3 下一条