Establish a TFTP development environment for Embedded Linux

Source: Internet
Author: User
TFTP is the simplest network protocol used to download remote files. It is implemented through UDP. The TFTP development environment for Embedded Linux includes two aspects: one is TFTP-server support for the Linux server, and the other is TFTP-Client Support for the Embedded Target System. Because U-boot itself supports built-in TFTP-client, you do not need to configure the Embedded Target System. The following describes the configuration of TFTP-server on the Linux server. On the third CD of RedHat 9.0, there is a TFTP-Server Installation RPM package. (1) install # Mount-T iso9660/dev/HDC/mnt/CDROM // mount the disc # rpm-IVH tftp-server-0.32-4.i386.rpm // install # umount/mnt/CDROM // uninstall the disc (2) in Linux, no matter which super-server, inetd or xinetd is used, the TFTP service is disabled by default, so you need to modify the file to enable the Service. According to the installation method of (1), you can modify the file/etc/xinetd. d/TFTP. It mainly sets the root directory of the TFTP server and enables the service. The modified file is as follows: service tftp {socket_type = dgram protocol = udp wait = Yes user = root server =/usr/sbin/in. tftpd server_args =-S/home/lqm/tftpboot-C disable = No per_source = 11 CPS = 100 2 flags = IPv4} description: modify the parameter server_args =-S <path>-C, where <path> can be changed to the root directory of your TFTP-server. The parameter-s specifies the chroot, -C specifies that files can be created. (3) create the tftp root directory and start the TFTP-server. # Mkdir/home/lqm/tftpboot # chmod o + w/home/lqm/tftpboot # service xinetd restart. In this way, TFTP-server is started. You can log on to the local machine to test the following command: # TFTP your-IP-address TFTP> Get <download file> TFTP> put <Upload File> TFTP> q # About the TFTP protocol, please refer to the following website content: http://www.longen.org/S-Z/details-z/TFTPProtocol.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.