Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| computers:tftpmac [2022/05/24 03:09] – created jon | computers:tftpmac [2022/05/24 17:49] (current) – jon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Before entering tftp, change your directory | + | ====== TFTP on macOS ====== |
| + | |||
| + | ===== Client ===== | ||
| + | |||
| + | Before entering tftp, change your directory | ||
| + | |||
| + | < | ||
| + | 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 / | ||
| + | </ | ||
| + | |||
| + | Stopping the tftp server | ||
| + | < | ||
| + | sudo launchctl unload -F / | ||
| + | </ | ||
| + | |||
| + | Check the process to ensure the server is running. If there is a blank response, server is not running. | ||
| + | < | ||
| + | netstat -atp UDP | grep tftp | ||
| + | </ | ||
| + | |||
| + | The tftp server uses / | ||
| + | < | ||
| + | cp filename / | ||
| + | </ | ||
| + | |||
| + | Since the folder is restricted, you need to set the correct permissions on the file. | ||
| + | < | ||
| + | chmod -R 766 / | ||
| + | </ | ||
| + | |||
| + | 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. | ||
| + | |||
| + | ### Create the file | ||
| + | touch / | ||
| + | ### Set permissions | ||
| + | chmod -R 766 / | ||
| - | cd (drag the folder contains the firmware file to Terminal)“ | ||
| - | “tftp 192.168.1.1“ | ||
| - | | ||
| - | | ||