1 Star 0 Fork 5.1K

silence2455 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tftp.md 5.39 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

tftp

Command Function

Trivial File Transfer Protocol (TFTP) is a protocol in the TCP/IP protocol suite for transferring files between clients and servers. TFTP provides simple and low-overhead file transfer services. The port number is 69.

The tftp command is used to download files from the TFTP server.

Syntax

./bin/tftp <-g/-p> -l [FullPathLocalFile] -r [RemoteFile] [Host]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

-g/-p

Indicates the file transfer direction.

  • -g: downloads files from the TFTP server.
  • -p: uploads files to the TFTP server.

N/A

-l FullPathLocalFile

Indicates the complete path of a local file.

N/A

-r RemoteFile

Indicates the file name on the server.

N/A

Host

Indicates the server IP address.

N/A

Usage

  1. Deploy a TFTP server on the server and configure the TFTP server correctly.

  2. Use the tftp command to upload and download files on the OpenHarmony board.

  3. The size of the file to be transferred cannot exceed 32 MB.

    NOTICE: TFTP is under debugging and disabled by default. Do not use it in formal products.

Example

Download the out file from the server.

Output

OHOS # ./bin/tftp -g -l /nfs/out -r out 192.168.1.2
TFTP transfer finish

After the tftp command is executed, TFTP transfer finish is displayed if the file transfer is complete. If the file transfer fails, other information is displayed to help locate the fault.

1
https://gitee.com/silence2455/docs.git
git@gitee.com:silence2455/docs.git
silence2455
docs
docs
master

搜索帮助