TFTP is the simplest network protocol used to download remote files, which is based on the UDP protocol. The TFTP development environment of embedded Linux includes two aspects: one is the Tftp-server support of embedded Linux host and the other is tftp-client support of embedded Linux target machine. Because the u-boot itself has built-in support for tftp-client, the embedded target machine is not configured. The following is a detailed description of the Linux host Tftp-server installation configuration.
In the ISO image of the SUSE Linux CD, there is a tftp-server RPM installation package.
(1) Installation
SuSE Linux uses its own yast for package installation, the specific installation method is not introduced.
(2) Modify the file
Under Linux, the TFTP service is disabled by default, regardless of which super-server,inetd or xinetd is used, so modify the file to open the service. Depending on the installation method (1), you can modify the file/etc/xinetd.d/tftp. The main is to set the root directory of the TFTP server, open the service. The revised document reads as follows:
Service TFTP
{
Socket_type = Dgram
protocol = UDP
Wait = yes
user = root
Server =/USR/SBIN/IN.TFTPD
Server_args =-s/home/burn/tftpboot
}
Description: Modify the item server_args=-S <path>-C, where <path> can be changed to your tftp-server root directory, parameter-s specifies chroot.
(3) Create the TFTP root directory and start Tftp-server.
#mkdir/tftpboot
#chmod O+w/tftpboot
#rcxinetd restart
In this way, the Tftp-server is started.
(4) Configure the firewall
The same applies to the YaST tool for firewall settings.
(5) Test command
#tftp your-ip-address
Tftp>get <download file>
Tftp>put <upload file>
Tftp>q
#