Network device (embedded Linux) connected to local computer (Windows OS). What is tftp command to copy binary file from network device to local computer? Also, what's command to copy file in the opposite way, from local computer to network device?
EDIT:
I find the BusyBox tftp commands:
BusyBox v0.61.pre (2003.02.04-12:10+0000) multi-call binary
Usage: tftp [OPTIONS] HOST [PORT]
Transfers a file from/to a tftp server
Options: -l FILE Local FILE. -r FILE Remote FILE. -g Get file. -p Put file.commands:
tftp -l <local file> -r <remote file> -p <remote ip>
tftp -g -r <remote file> <remote ip> 2 2 Answers
tftp 192.168.1.1 -m binary -c put localfile remotefile
tftp 192.168.1.1 -m binary -c get remotefile localfileOf course you will have to change the ip address to the address of the computer you are going to access.
tftp defaults to ascii, so the binary mode has to be specified or you will receive a file mismatch error.
Use:
tftp -gr filename 192.168.1.1:69to get the file from the server. You need to setup tftp and enable a firewall exception.
From device to PC you can use:
udpsvd -Ev 192.168.1.1 69 tftpd 3