Howto Install and setup TFTPD in Ubuntu workstation

by admin on May 20, 2009

I was doing my own project using TMS320DM355 EVM with MontaVista realtime Linux is installed some months ago.  At that time, I search in Google many times but I didn’t get success to install TFTP. Finally, I found out one great tutorial about that.

In my system, I use TFTP protocol to download Linux kernel, U-boot bootloader to DM355 EVM kit.

What is TFTP ?

Trivial File Transfer Protocol (TFTP) is a file transfer protocol, with the functionality of a very basic form of File Transfer Protocol (FTP); it was first defined in 1980.

Due to its simple design, TFTP can be implemented in a very small amount of memory — an important consideration at that time. It was therefore useful for booting computers such as routers which did not have any data storage devices. It is still used to transfer small amounts of data between hosts on a network, such as IP phone firmware or operating system images when a remote X Window System terminal or any other thin client boots from a network host or server. The initial stages of some network based installation systems (such as Solaris Jumpstart, Red Hat Kickstart and Windows NT’s Remote Installation Services) use TFTP to load a basic kernel that performs the actual installation.

TFTP is based in part on the earlier protocol EFTP, which was part of the PUP protocol suite. In the early days of work on the TCP/IP protocol suite, TFTP was often the first protocol implemented on a new host type, because it was so simple.

See here for more information

Howto install and setup

In my system, I use Ubuntu 8.04 as Workstation computer to communicate with DM355EVM. You can also use these steps with Ubuntu 8.10 or Ubuntu 9.04.

1. Install tftpd and related packages.

$ sudo apt-get install xinetd tftpd tftp

2. Create /etc/xinetd.d/tftp and put this entry:

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

3. Make /tftpboot directory

$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Start tftpd through xinetd

$ sudo /etc/init.d/xinetd start

5. Testing. Tranfering file hda.txt from 192.168.1.100 (Client using tftp) to 192.168.1.100 (Server 192.168.1.100). Get an example file to transfer (eg. hda.txt)

$ touch /tftpboot/hda.txt
$ chmod 777 /tftpboot/hda.txt
$ ls -l /tftpboot/
total 0
-rwxrwxrwx  1 davids davids 0 2006-03-27 23:04 hda.txt
$ tftp 192.168.1.100
tftp> put hda.txt
Sent 722 bytes in 0.0 seconds
tftp> quit
$ ls -l /tftpboot/
total 4
-rwxrwxrwx  1 davids davids 707 2006-03-27 23:07 hda.txt

Now we will be able to download new kernel file to my EVM board. Note that you have to configure the bootargs parameters correctly, otherwise you can’t download to your EVM board. I will introduce how to setup in Ubuntu in another post.

References

davidsudjiman.info

en.wikipedia.org

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)
Howto Install and setup TFTPD in Ubuntu workstation10.0101

Popularity: 19% [?]

Related posts:

  1. Howto install Vietnamese Input Method Scim-Unikey on Ubuntu Hi everyone, Today, I would like to introduce the Vietnamese input method in Ubuntu. Scim-Unikey is the most stable package for typing Vietnamese characters, by combining the advantages of Smart Character  Input Method (SCIM) and the most famous Vietnam input method Unikey. Scim-Unikey now is maintained by Ubuntu-VN and Vietnamese Ubuntu Community. If you want to learn Vietnamese [...]...
  2. How to upgrade Pidgin and fix Yahoo problem in Ubuntu 9.04 Some days ago, I couldn’t even sign in my Yahoo account in Pidgin. At that time, I guessed that having some problems and was waiting for upgrade version of Pidgin. Finally, the new version 2.5.7 has been released on 20th June wih new bug fix. Version 2.5.7 (06/20/2009) Yahoo Protocol 16 support, including new HTTPS login method; [...]...
  3. How to install Picasa in Ubuntu Homepage: http://picasa.google.com Today, I am going to upload my pictures from last party, I suddenly remember a such powerful and great image management: Picasa from Google. Actually, I love Google products because of their simple characteristics. Picasa application can run cross-platform on Linux and Windows OS as well. In Windows, it use this one also. Now Picasa [...]...
  4. How to install Ubuntu 9.04 on notebook MSI VX600 It is my first and new notebook with special specification: Intel Core 2 Duo Processor 2.0 GHz SIS 672DX+SIS 968 Chipse 15.4? 1280×800 WXGA Display ATi Mobility Radeon HD3410 Graphic Card  512MB 4GB DDR2 533/667Mhz Memory 10/100Mbps LAN 802.11 b/g, 802.11 b/g/n WLAN 250 GB HDD Physical Dimension: 358 x 259 x 27-33mm It have arrived in the yesterday afternoon after finish working in [...]...
  5. How to install RTAI, ComediLib in Ubuntu 8.10, Ubuntu 9.04 Last several months ago, I have done to install RTAI, ComediLib in Ubuntu 8.04. Actually, I have spent a lot of time to config Ubuntu system. It faces a lot of problems but finally it has finished. Now new RTAI package version 3.7 which supports Linux kernel 2.6.28 has been released with a lot of features: support [...]...
  6. Howto get direct link from files, folders in box.net Homepage: http://ngohaibac.com/9k Box.net is the most famous online box store with great  stability, not limited time of existence of the file, so we will not be worry about my file is suddenly deleted hehe. Nowadays it is very easy to create a free account in box.net but they limit some free functions. Now [...]...

Leave a Comment