In the course of learning the network protocol, we should know that TFTP is the simplest network protocol used to download remote files. It is implemented based on UDP. How can we install and configure tftp server? First, we need to understand that the tftp development environment for Embedded linux includes two aspects: one is tftp-server support for Embedded linux host machines, and the other is tftp-client Support for Embedded linux target machines. because u-boot itself supports built-in tftp-client, you do not need to configure the Embedded Target machine.
The tftp-server rpm installation package is available in the ISO image of the FC6 disc.
Tftp server Installation configuration 1> Installation
# Mount-o loop <FC6 cd iso image. iso>/mnt/CD // mount the CD
# Rpm-ivh tftp-0.42-3.1.i386.rpm // install tftp-client
# Rpm-ivh tftp-server-0.42-3.1.i386.rpm // install tftp-server
# Umount/mnt/CD // unmount the disc
Tftp server installation and configuration 2> during installation, a prompt may appear that xinet is not installed.
Tftp server installation and configuration 3> this stuff can go to the terminal.
Tftp server installation and configuration 4> or you can use yum.
Use of the Tftp server:
1> enable the tftp server on the host, that is, the server.
Service xinetd start
Chmod o + w/tftpboot
2> Use minicom to access uclinux
3> modify the IP address of 44B0 in the same CIDR block as the host.
Ifconfig eth0 192.168.1.30
If you do not want to execute this command every time you enter the system, you can do the following:
Open an rc file in uclinux-dist/vendors/samsung/44b0/with one line:
Ifconfig eth0 192.168.0.30 netmask 255.255.255.0 up
Here we just need to change the IP address.
4> enter a download directory, such as/var/tmp.
5> log on to the host
Input: tftp 192.168.1.105. Suppose the IP address of my host is this one)
Note that the ARM board must be in the same network segment as the host. If the ARM board is not in the same network segment as the host, you will not be able to log on. The modification method is as follows:
On ARM44B0), enter ifconfig eth0 192.168.1. * (assume that the gateway of the host is 192.168.1.1)
If you log on successfully, the following message is displayed:
Tftp>
6> input: get <the file name you want to download> note that the file name must be in the tftp working directory, for example, in/tftpboot
7> If the download is successful, the system will prompt how many seconds are used
8> next, we can directly run this file (sometimes it cannot be run, such as badcommand. At this time, we can use the following command: chmod 777 file name ).
The installation and configuration of the tftp server are complete.