Use of FTP and TFTP in busybox

Source: Internet
Author: User

Original article address:

 

TFTP -- helpbusybox v1.14.3 (10:13:59 UTC) Multi-call binary

Usage: TFTP [Option]... host [port]

Transfer a file from/to TFTP Server

Options:
-L file local file
-R File Remote File
-G get File
-P put File
Based on the help instructions, we will build the TFTP service. Method 1: Implemented in WindowsTFTP
Server Step 1: After downloading tftpd32.exe, double-click to run Step 2: Keep the default settings and change the current directory of the TFTP server to our convenient path. (do not change, as long as you know the TFTP service and directory.) Step 3: add the program file we want to go to the Development Board in the tftp root directory. Note: In this step, Windows is a hidden extension name, and the full name of the file is shown as a text document of a.txt. You may only see. TXT you cannot see Step 4: Enter the TFTP-l a.txt-r a.txt-G 192.168.1.21 69 parameter description in the command line of the Development Board:-L is the abbreviation of local, the file name that is renamed after being downloaded locally or locally. -R is the abbreviation of remote, followed by the name of the root directory of the TFTP server on the PC, or the name of the renamed file after being uploaded to the PC. -G is the abbreviation of get. It is used for downloading files, followed by the IP address of the PC.-P is the abbreviation of put, used for uploading files, and followed by the IP address of the PC. TFTP uses port 69 by default. Note: When downloading or uploading a file, it is recommended that the file name be the same. Otherwise, the file is obtained, but the file size is 0 kb. If this problem occurs, run the following command several times to place spaces in front of-l-R and-G, for example, TFTP-l a.txt-r a.txt-G 192.168.1.21 69 is downloaded to the current directory of the Development Board by default. Upload File: upload a file from the current directory of the Development Board to the root directory of the TFTP server. (The-C parameter must be added after the path in the command line parameters started by TFTPD. Otherwise, the file to be uploaded does not have the same name as the file on the server.
) Command: TFTP-l a.txt-r a.txt-P 192.168.1.21 69of course, the directory a.txt does not exist in the root directory of the tftpserver. After running this command, the file will be found in the root directory of the TFTP server. FAQ: Why is the size of the downloaded file 0 K? A: This is the hassle of using Windows. If this happens, we recommend that you change the-L and-R parameters to the same one and add spaces. Method 2: Using t10.04 to build TFTP see http://www.360doc.com/content/11/0104/10/3508740_83803707.shtml

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.