File transmission through serial ports between the embedded Linux System and the host
I think if I want to download something from my PC to the embedded Linux System of the Development Board, many people will first think of using network tools such as TFTP SFTP to download it from the network port. But if the network is not used, what should I do if I can only download it through the serial port? At this time, there are two tools that can help you: zmrx and zgp, and lsz and lrz. I personally think that zmrx/zgp is not stable with lsz/lrz. We recommend that you use the latter. The following describes how to use lsz/lrz.
1. Compile lrzsz and download it to the Development Board
Slave! Get two executable files, SZ, RZ (or lsz, lrz), and download them to the/bin directory of the Linux System of the Development Board.
Ii. Case 1: Windows OS for PC
If the PC is equipped with a Windows operating system, you can use the Super Terminal that comes with the system for serial communication tools. The following describes how to transfer files.
1. Development Board --> PC
Enter SZ filename on the Development Board.
On the PC, click "transfer"> "receive file" in the Super Terminal menu, select the download location and the zmodem and crash recovery protocol, and click "receive.
2. PC --> Development Board
Enter the/tmp directory on the Development Board, and then enter Rz.
On the PC, click "transfer"-> "Send File" in the Super Terminal menu, select the target file and the zmodem and the crash recovery protocol, and click "send.
Reprinted from: http://blog.chinaunix.net/uid-23189697-id-2527210.html