Part1 preface recently I have been studying the OK6410 Development Board. However, rvds in windows is really not easy to use. It also requires dnw to download programs to the Development Board, and all the software should be done under win, in addition, 64-bit win7 also has various problems. I want to port a Linux system. Why can't I complete all the steps in linux? Last night, I searched for information and finally found the message that dnw can run successfully in linux. I also encountered the serial port connection terminal minicom and kermit in linux;
Part1 Preface
Recently, I have been studying the OK6410 Development Board. However, rvds in windows is really not easy to use. It also requires dnw for programs to be written to the Development Board, and all the software should be done under win, which is quite wrong, in addition, 64-bit win7 also has various problems. I want to port a Linux system. Why can't I complete all the steps in linux?
Last night, I searched for information and finally found the message that dnw can run successfully in linux;
In addition, I encountered the serial port connection terminal minicom and kermit in linux. I tried and tested continuously, and finally solved the problem of downloading dnw and usb. The subsequent steps were much more open! Write down various resources and experiences and share them with you.
Prepare the Part2 Tool
2.1 serial port terminal kermit
This command can be directly installed. In addition, you need to familiarize yourself with its configuration and two modes;
2.1.1 install kermit
Sudo apt-get install ckermit
2.1.2 configure kermit
Create a configuration file ~ /. Kermrc. The content is as follows:
# USB to serial port, so the device is/dev/ttyUSB0
Set line/dev/ttyUSB0
# Set the baud rate
# Set speed 115200
# Disable communication monitoring. You must disable it to view the information returned by the Development Board.
Set carrier-watch off
2.1.3 use kermit to connect to the Development Board
After connecting the USB to the serial port, the USB can be directly identified by Linux. The corresponding device file is/dev/ttyUSB0;
Note: First connect the USB serial port to the development board, and then open the configured kermit terminal; otherwise, the kermit will read the configuration file and first occupy and lock/dev/ttyUSB0, after the USB serial port is plugged in, the device file allocated by the device becomes/dev/ttyUSB1. The Development Board cannot be controlled on the terminal due to non-matching; (but this is also a good solution, that is, to set a new connection object in the kermit, as follows :)
Set line/dev/ttyUSB1 # The name can be found through ls/dev/ttyUSB * based on the actual situation.
2.1.4 two kermit Modes
After entering, the command mode is entered by default. You can execute many commands, including the connect command for connecting to the Development Board:
C-Kermit 9.0.302 open source:, 20 Aug 2011, for Linux + SSL + KRB5
Copy right (C) 1985,201 1,
Trustees of Columbia University in the City of New York.
Type? Or HELP for help.
(/Media/GoldenResources/arm/src/dnw4linux/) C-Kermit>? Command, one of the following:
Add check disable getc learn mmove push return statistics type
Answer chmod do getok LICENSE move pwd rlogin status undeclare
Apc clear echo goto lineout msend quit rmdir stop undefine
Array close edit grep log msleep read run SUPPORT version
Ask connect enable head login open receive screen suspend void
Askq copy end hangup logout orientation redial script switch wait
Assign date evaluate HELP lookup output redirect send tail where
Associate debug exit http mail pause redo server take while
Authenticate decrement file if manual pdial reget set telnet who
Back define finish increment message pipe remote shift touch write
Browse delete for input minput print remove show trace xecho
Bye dial ftp INTRO mget pty rename space translate xmessage
Cd directory get kcd mkdir purge resend ssh transmit
Or a macro name ("do? "For a list) or one of the tokens :! # (.;: <@ ^ {
Question mark at any time? You can get help and code completion. after entering the connect command to connect to the Development Board (you need to configure the connection object before that, you can use the command set line/dev/ttyUSB0 ), go to the connected Development Board mode and display the feedback from the Development Board. You can control the entire development board. to return to the original command mode, press Ctrl + \, and then press C to return;