Construction process:
1. Install related software package: TFTPD (server side), TFTP (client), xinetd
sudo apt-get install tftpd tftp xinetd
2. Create a configuration file (blue directories can be changed to other addresses, such as/home/user/tftpboot)
set up a configuration file tftp under/etc/xinetd.d/
sudo vi tftp
Enter the following in the file:
Service TFTP
{
Socket_type = Dgram
protocol = UDP
Wait = yes
user = root
Server =/USR/SBIN/IN.TFTPD
Server_args =-s/home/wmx/desktop/tftp (own file upload download directory)
Disable = no
Per_source = 11
CPS = 100 2
Flags = IPV4
}
Save exit
2., set up the TFTP service file directory (upload file and download file location), and change its permissions
sudo mkdir/home/wmx/dektop/tftp
Sudu chmod 777 /home/wmx/dektop/tftp
3. Restart the service
sudo/etc/init.d/xinetd restart
Now that the TFTP service has been installed, you can test it below
4. IP Settings for PC
sudo ifconfig eth0 192.168.2.1
5. PINGPC Machine with Development Board
Ping 192.168.2.1
can see:
Dev Board tftp download file