This is an old revision of the document!
TFTP on macOS
Client
Before entering tftp, change your directory in terminal where the file you want to push is sent.
tftp 192.168.x.x
Prompt switches to tftp>
bin # sets tftp to binary mode trace on # gives you verbose output put [firmware file]
Server
The server is disabled by default.
Starting the TFTP server
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
Stopping the TFTP server
sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
### Check if its running (no process means it not running) netstat -atp UDP | grep tftp The TFTP daemon uses the /private/tftpboot folder so we are going to copy the file there. Then set the correct permissions on the file.
### Copy file to tftp folder cp FILENAME /private/tftpboot ### Set permissions for the folder and files within chmod -R 766 /private/tftpboot There is a gotcha with the TFTP daemon, which is you cant copy a file to the TFTP daemon if that file does not already exist there. To work around it you can just create a file and set the permission for it. Then your devices will just send data into the pre-created file.
### Create the file touch /private/tftpboot/FILENAME ### Set permissions chmod -R 766 /private/tftpboot