Objective:
In embedded development, it is divided into host and target machine.
The TFTP server is the software that works on the host, mainly provides
The download of the primary image file for the target machine.
1, install Tftp-server (my system for the x86_64 system, installation package for centos6.5):
RPM-IVH tftp-server-0.49-7.el6.x86_64.rpm
2. Create a shared directory: Mkdir/tftpboot
3. Set the TFTP boot file:
Vi/etc/xinetd.d/tftp, shown below;
# Default:off
# description:the TFTP server serves files using the trivial file transfer \
# protocol. The TFTP protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to-start the installation process for some operating systems.
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
}
Modify the rows 22 and 23 as shown above. Save exit.
4. Restart the service:
/etc/init.d/xinetd Start or/etc/init.d/xinetd restart
5 See if TFTP starts: netstat-a | grep tftp
TFTP server configuration process