分类: 嵌入式
版本:BusyBox-1.17.4 编译过程选择FTP和TFTP相关选项。
TFTP 在终端中输入tftp命令,可以得到以下帮助信息:
BusyBox v1.17.4 (2010-12-22 10:59:18 CST) multi-call binary. Usage: tftp [OPTIONS] HOST [PORT] Transfer a file from/to tftp server Options: -l FILE Local FILE -r FILE Remote FILE -g Get file -p Put file -b SIZE Transfer blocks of SIZE octets
从172.19.6.100服务器上获取rootfs.jffs2文件,前提是在服务器上开启TFTP的服务器,比如TFTPD32.,可以使用如下命令
tftp 172.19.6.100 -g -r rootfs.jffs2
FTP 在终端输入ftpget命令,可以得到以下帮助信息:
BusyBox v1.17.4 (2010-12-22 10:59:18 CST) multi-call binary. Usage: ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE Retrieve a remote file via FTP Options: -c,--continue Continue previous transfer -v,--verbose Verbose -u,--username Username -p,--password Password -P,--port Port number
从172.19.6.88服务器上获取asc.bin文件,服务器端的FTP服务器开启,可以使用以下命令
ftpget -u rtos -P ****** 172.19.6.88 asc.bin
其中rots为用户名,*****为登录密码。