1. Install the xinetd service and install tftp tftpd
1. apt-get ins tall xinetd install xinetd service
2、apt-get install tftp 安装tftp tftpd
Second, configure the tftp server
1. cd /etc/xinetd.d to enter the relevant directory
2, vim tftp to create a configuration file
In /etc/xinetd.d/tftp, write the following configuration. (where server_args is the directory where tftp upload and download are set)
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
3. Restart the xinetd service
/etc/init.d/xinetd restart
Fourth, check whether the tftp server is successfully built
After netstat -au | grep tftp is executed, the following phenomenon appears, then, the tftp server has been successfully built and started
You can then put the file under /tftpboot (you can modify the directory by modifying server_args).
Five, test - use tftp to download files from the server
I tested it under uboot, using tftp 0x30008000 zImage-qt (the file name must be the same as the one in the server)
After hitting Enter, the relevant files will be downloaded and the download will be completed.