The use of TFTP under Linux __linux

Source: Internet
Author: User
Tags chmod
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 FC6 CD, there is a tftp-server RPM installation package.
1> Installation
#mount-o loop <fc6 CD ISO mirror .iso>/MNT/CD//Mount CD
#rpm-IVH tftp-0.42-3.1.i386.rpm//Installation Tftp-client
#rpm-IVH tftp-server-0.42-3.1.i386.rpm//Installation Tftp-server
#umount/MNT/CD//Uninstall CD
2> when installing, there may be a xinet without installation prompts
3> This dongdong can be downloaded to http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/fedora/rpm.
4> or you can yum it.

Use of TFTP server:
1> on the host (that is, the server side) to open the TFTP server
Service xinetd Start
chmod o+w/tftpboot
2> into the uclinux with minicom.

3> Modify 44b0 IP to host on the same network segment
Ifconfig eth0 192.168.1.30
If you do not want to enter the system every time you play this command, you can do the following:
Under Uclinux-dist/vendors/samsung/44b0/, open an RC file with a line in it:
Ifconfig eth0 192.168.0.30 netmask 255.255.255.0 up
We can change the IP here.
4> into one of the download directories: such as/var/tmp

5> Login to Host
Input: TFTP 192.168.1.105 (assuming that my host's IP is this)
Note that the ARM board here with the host in the same network segment, if the ARM board is not with the host in the same network segment, you will be unable to log on the situation, modify the method is:
In arm (44b0) input ifconfig eth0 192.168.1.* (this assumes that the host gateway is 192.168.1.1)
A successful login will have the following tips:
TFTP >
6> input: Get < filename you want to download >//Note that this file name must be in the TFTP working directory, as mine is in/Tftpboot

7> How many seconds to use if the download is successful
8> Next we can run this file directly (sometimes there will be no running conditions, such as Badcommand, etc., you can use the following command: chmod 777 file name).  

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.