Linux's arm linux and windows use tftp for simple arrangement of file transfer

Linux's arm linux and windows use tftp for simple arrangement of file transfer

Table of contents

Linux's arm linux and windows use tftp for simple arrangement of file transfer

1. Brief introduction

Two, tftp download and install

3. arm linux downloads files on windows through tftp

4. Related instructions of tftp command

1. Common parameters of the busybox tftp command are as follows:

2. Command description: tftp -g -r lv_100ask_demo 192.168.189.14


1. Brief introduction

Organize some knowledge developed by Linux/Ubuntu, so that you can consult and use it in time if you encounter similar problems later.

This section introduces how arm linux and windows use tftp for file transfer. If there are deficiencies, welcome to point out, or if you have a better method, please leave a message.

TFTP is a simple protocol for transferring files. It is implemented based on the UDP protocol, but we cannot be sure that some TFTP protocols are based on other transfer protocols . This protocol is designed for small file transfers . Therefore, it does not have many functions of the usual FTP. It can only obtain or write files from the file server , cannot list directories, does not perform authentication, and transmits 8-bit data. There are three modes in transmission: netascii, which is 8-bit ASCII code form, and the other is octet, which is 8-bit source data type ; the last one is no longer supported by mail, which returns the returned data directly to the user instead of Not saved as a file.

Case environment:

  • windows 10
  • tftp64
  • arm board stm32mp157

Two, tftp download and install

1. Search for tftp related downloads on Baidu

This is the download URL used in this tutorial: Tftpd32 Official Download - tftpd32 Software Free Download [Official Version]

 

2. After downloading, double-click to install, and the installation settings are basically default

3. After installation, open the software

3. arm linux downloads files on windows through tftp

 1. Turn on the arm board and connect it to the windows computer through the serial port

The mobaxterm serial port tool connection is used here

2. Connect the arm board and windows to the unified network

Here is a unified connection to the specified wifi, ifconfig is used to view the network ip on the arm board, and ipconfig is used to view the ip on windows

 

 3. Unify the network and ensure that the arm board can ping the ip of windows

As shown in the figure, it means the ping is successful

4. Open the previously installed tftp tool on windows, set the transfer folder, and set the ip

For the first time, there may be a prompt related to the firewall, just agree, the purpose is to allow the transfer of files to avoid blocking by the firewall; if it cannot be transferred, the firewall may block it.

 5. arm linux switch to the folder to download the file, enter the download command, press Enter to download the corresponding file

Make sure that the windows settings folder has corresponding transfer files, command: tftp -g -r file name 192.168.xxx.xxx

 6. After confirming the download by pressing Enter, the windows interface starts to download the progress and download the file

7. After downloading, the specified file will appear on the arm board

4. Related instructions of tftp command

1. Common parameters of the busybox tftp command are as follows:

-g: Used when downloading files.

-p: Used when uploading files.

-r: followed by the remote (eg: PC) file name.

-l: Followed by the name of the file saved locally (for example: single board), it can also be omitted when downloading the file.

2. Command description:tftp -g -r lv_100ask_demo 192.168.189.14

Enter the command to download the file in the arm linux system tftp, for example:

tftp -g -r lv_100ask_demo 192.168.189.14

in:

1)lv_100ask_demoIndicates the downloaded file name, with suffix, including the suffix name.

2)192.168.189.14 Indicates the IP address of the remote host (PC).

Note: PC IPThe address can be checked by entering commands in Windowsthe system cmdcommand prompt ipconfig; if it is Linuxa system, you can use ifconfigcommands to check.

Guess you like

Origin blog.csdn.net/u014361280/article/details/128075666