How to use kermit
1. apt-get install kermit
2. Into kermit
kermit -l /dev/ttyUSB0 (/dev/ttyUSB0 depend on which console you use)
3.
HINTS... If the preceding error message does not explain the failure:
. Try changing the remote Kermit's FLOW-CONTROL setting.
. Increase the retry limit (see HELP SET RETRY).
. Try it again with SET PREFIXING ALL.
. Try it again with SET STREAMING OFF.
. Try it again with SET PARITY SPACE.
. As a last resort, give a ROBUST command and try again.
Also:
. Be sure the source file has read permission.
. Be sure the target directory has write permission.
(Use SET HINTS OFF to suppress hints.)
(/home/freeman/) C-Kermit>SET PREFIXING ALL
(/home/freeman/) C-Kermit>SET PARITY SPACE
(/home/freeman/) C-Kermit>set serial 8N1
(/home/freeman/) C-Kermit>send /home/freeman/tftp/u-boot.bin ## Choose which file will donwload to board
4.
Switch to kermit command:
(/home/freeman/) C-Kermit>connect
or
(/home/freeman/) C-Kermit>c
5.
type
=> loadb
## Ready for binary (kermit) download to 0x80000100 at 115200 bps...
6.Back to kermit
crtl+\ then c
back to board command
7.
(/home/freeman/) C-Kermit>send /home/freeman/tftp/u-boot.bin
Start to download
Screen Capture:
/****************************************************/
C-Kermit 8.0.211, 10 Apr 2004, freeman-laptop
Current Directory: /home/freeman
Communication Device: /dev/ttyUSB0
Communication Speed: 115200
Parity: none
RTT/Timeout: 08 / 08
File Type:
File Size:
Bytes So Far:
...10...20...30...40...50...60...70...80...90..100
Estimated Time Left:
Transfer Rate, CPS: 4934
Window Slots: 1 of 1
Packet Type: %
Packet Count: 1
Packet Length: 28
Error Count: 4
Last Error: (resend)
Last Message:
X to cancel file, Z to cancel group, <CR> to resend last packet,
E to send Error packet, ^C to quit immediately, ^L to refresh screen.
/****************************************************/
8.
Switch to kermit command:
(/home/freeman/) C-Kermit>connect
or
(/home/freeman/) C-Kermit>c
9.
=> protect off 48000000 +20000 ## protect off address from 48000000 to 48020000
=> erase 48000000 +20000 ## erase address from 48000000 to 48020000
=> cp.b 80000100 48000000 20000 ## copy address from 80000100 (Put file here temporarily) to 48000000 - 48020000
=> reset ## reboot board again
Reference :
0 意見:
張貼留言