First of all, standing on the shoulders of giants, the first half is the previous article. I am lucky to be guided by this article, set successfully, and pass the test. The second part is the configuration of the serial port tool. Original address: 
First of all, standing on the shoulders of giants, the first half is the previous article. I am lucky to be guided by this article, set successfully, and pass the test. The second part is the configuration of the serial port tool. Original address http://www.linuxidc.com/Linux/2011-11/47480.htm
 
 
 - $ 
-  
- 1. Download sudo apt-get install minicom 
- 2. Insert the usb to the serial port. Terminal input: dmesg | grep usb 
- ........................................ ........................................ ............ 
- [2, 7415.893942] USB Serial: USB Serial Driver core 
- [2, 7415.931116] usb 3-1: ark3116 converter now attached to ttyUSB0 
- [2, 7415.931141] usbcore: registered new interface driver ark3116 
- [2, 7430.248072] usb 3-1: USB disconnect, address 2 
- [2, 7434.588044] usb 3-1: new full speed USB device using uhci_hcd and address 3 
- ........................................ ........................................ ............. 
- 3. Settings: minicom-s 
- Serial port setup -->Serial device:/dev/ttyUSB0 
- Set hardware data flow and Software Data Flow Control to no 
- 4. Save and exit 
- 5. Run the command window: minicom 
- Bytes ---------------------------------------------------------------------------------------------------- 
- Note: by default, the USB to serial port driver (pl2303) is installed in Ubuntu ). I am using ark3116, which is also the default installation. 
- 1. # lsmod | grep usbserial 
- If USB serial exists, the USB-to-serial port is supported. 
- Yzj @ yzj-laptop :~ /Minicom $ lsmod | grep usbserial 
- Usbserial 36264 3 ark3116 
-  
- 2. Plug in the USB to serial port and enter the command # dmesg | grep ttyUSB0 on the terminal. If the connection is successful, the ubuntu system has recognized the device. 
- Bytes ---------------------------------------------------------------------------------------- 
- Key combination: press Ctrl + A first, then release the two keys, and then press Z. There are also some common key combinations. 
- (1) S key: send the file to the target system; 
- (2) W key: automatic screen scrolling. When more than one line is displayed, the next line is automatically wrapped. This function is useful when viewing kernel startup information. 
- (3) C: Clear the display content on the screen; 
- (4) Key B: view the historical display of minicom; 
- (5) Key X: Exit mInicom and a prompt is displayed to confirm exit. 
-  
- $
Okay. After the USB to serial port is configured, It is the serial port tool. Kermit is used here.
 
Install Kermit
 
$ Sudo apt-get install ckermit
 
Configuration
 
Here, the configuration is to manually write a configuration file. kermrc, which is placed in the/home/jun directory (of course, you are definitely not the jun directory, that is, the current user's home directory)
 
$ Vi. kermrc # The file content is below. Note that this file is stored in/home/jun.
 
# In fact, many configuration files of the software you installed are stored in this directory, except that # is hidden. Does it start.
 
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 Parameters
 
Set rec package 1000
 
Set send package 1000
 
Set window 5
 
Run
 
$ Sudo kermit-c
 
It starts. to close it, press Ctrl + \, press C, enter exit, and press enter to exit.
 
Below are some of the screen capture tools Shutter for Ubuntu.
  
Is the output of Uboot;
  
Is the kernel and root file output on the board.