en

User Tools

Site Tools


vmware.png nfs.png tftp.png subversion.png eclipse.png logo.png tutorial.png

TFTP Server

Ubuntu 14.04/16.04 x86 in vmware player

First you have to install xinetd tftp

(sudo apt-get install xinetd tftpd tftp

create the file /etc/xinetd.d/tftp and add the following lines of code to it:

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

Then create a tftp folder and restart xinetd.

sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/xinetd restart

Ubuntu 12.04 x86 in vmware player

The default TFTP suite is tftp-hpa. To install the following step is needed:

user@ubuntu:~$ sudo apt-get install tftpd-hpa tftp-hpa

The TFTP default directory is /var/lib/tftpboot.

Change the following line in /etc/default/tftpd-hpa to point to the images directory of the BSP:

TFTP_DIRECTORY="/home/tq/workspace/TQMa6x-BSP-REV.0104/platform-MBa6x/images"

To restart the TFTP server type:

user@ubuntu:~$ sudo service tftpd-hpa restart

To test the server copy some file to the server and get it back with

user@ubuntu:~$ tftp 127.0.0.1 -c get <filename> 

Ubuntu 10.04 x86 in vmware player

Installation

user@ubuntu:~$ sudo apt-get install xinetd tftpd tftp

Configuration

To cofigure TFTP the file /etc/xinetd.d/tftp must be created and filled with the following content. This configuration uses the directory /tftpboot.

service tftp
{
  socket_type             = dgram
  protocol                = udp
  wait                    = yes
  user                    = root
  server                  = /usr/sbin/in.tftpd
  server_args             = -s /tftpboot
  per_source              = 11
  cps                     = 100 2
}

The directory requires at least the access authorisation “dr-xr-xr-x”.

After the configuration was changed the server should be restarted:

user@ubuntu:~$ sudo service xinetd restart

Firewall & port forwarding

TFTP uses port 69 UDP. This port must be opened. How to configure port forwarding on a Windows-XP host system is described here: Port Forwarding.

Sources


en/tftp.txt · Last modified: 2017/11/24 12:06 by h_fitze


Disclaimer

TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.


Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki