User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:general_information:tftp [2017/12/14 16:30]
schmid
en:general_information:tftp [2017/12/22 12:10] (current)
h_fitze reworked
Line 1: Line 1:
-===== TFTP Server ===== 
-\\ 
-===== Ubuntu x86 in VMware player ===== 
  
-Tested with Ubuntu ​+====== TFTP Server ======
  
-  * 14.04 +===== Ubuntu ​14.04/16.04 x86 in vmware player =====
-  * 12.04+
  
-The following guide desribes how to install ​and setup a tftp server under Ubuntu, the default TFTP suite is tftp-hpa.  +First you have to install ​xinetd ​tftp 
-To install the following step is needed: ​+
  
-<​code ​bash+<​code>​ 
-user@ubuntu:​~$ ​sudo apt-get install xinetd tftpd tftp+sudo apt-get install xinetd tftpd tftp
 </​code>​ </​code>​
  
-The TFTP default directory is /​var/​lib/​tftpboot. For convinience the following changes can be applied to the system: 
  
-  * Creation of a new directory for the server +create ​the file **/​etc/​xinetd.d/​tftp** and add the following lines of code to it: 
-  ​setting the ownership for the tftp user +
-  ​* add user to the tftp group to have rights to the tftpd dirctory+
  
-<​code ​bash+<​code>​ 
-user@ubuntu:~$ sudo mkdir -p /srv/tftpd +service tftp 
-user@ubuntu:​~$ sudo chown <​user>:​tftp /srv/tftpd +
-user@ubuntu:​~$ sudo chmod 775 /srv/tftpd +protocol ​       = udp 
-user@ubuntu:​~$ sudo usermod -a -G tftp <​user>​+port            = 69 
 +socket_type ​    = dgram 
 +wait            = yes 
 +user            = nobody 
 +server ​         = /usr/sbin/in.tftpd 
 +server_args ​    ​= ​/tftpboot 
 +disable ​        = no 
 +}
 </​code>​ </​code>​
  
-Finally ​the server configuration for the TFTP server has to be changed:+Then create a tftp folder and restart xinetd. 
 +<​code>​ 
 +sudo mkdir /tftpboot 
 +sudo chmod -R 777 /tftpboot 
 +sudo chown -R nobody /tftpboot 
 +sudo /​etc/​init.d/​xinetd restart 
 +</​code>​ 
 + 
 + 
 + 
 + 
 + 
 +===== Ubuntu 12.04 x86 in vmware player ===== 
 + 
 +The default TFTP suite is tftp-hpa. To install ​the following step is needed:
  
 <code bash> <code bash>
-user@ubuntu:​~$ sudo nano /​etc/​default/​tftpd-hpa+user@ubuntu:​~$ sudo apt-get install ​tftpd-hpa tftp-hpa
 </​code>​ </​code>​
  
-Change the following line to point to the new created ​directory:+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:
  
 <​code>​ <​code>​
-TFTP_DIRECTORY="/​srv/tftpd"+TFTP_DIRECTORY="/​home/tq/​workspace/​TQMa6x-BSP-REV.0104/​platform-MBa6x/​images"
 </​code>​ </​code>​
  
Line 53: Line 68:
 </​code>​ </​code>​
  
 +===== Ubuntu 10.04 x86 in vmware player =====
 +
 +==== Installation ====
 +<code bash>
 +user@ubuntu:​~$ sudo apt-get install xinetd tftpd tftp
 +</​code>​
 +
 +==== 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''​.
 +<​code>​
 +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
 +}
 +</​code>​
 +
 +<WRAP round info>
 +The directory requires at least the access authorisation "''​dr-xr-xr-x''"​.
 +</​WRAP>​
 +
 +<WRAP round info>
 +After the configuration was changed the server should be restarted:
 +<code bash>
 +user@ubuntu:​~$ sudo service xinetd restart
 +</​code>​
 +</​WRAP>​
 +
 +===== 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: [[vm#​nat_network_address_translation|Port Forwarding]].
  
 ===== Further applicable links  ===== ===== Further applicable links  =====
 \\ \\
 [[en:​general_information:​tutorial:​update_firmware_tftp|Updating existing firmware over ethernet]] [[en:​general_information:​tutorial:​update_firmware_tftp|Updating existing firmware over ethernet]]
 +
 +==== Sources ====
 +  * http://​www.denx.de/​wiki/​view/​DULG/​SystemSetup#​Section_4.6.
 +  * http://​www.unix.com/​ubuntu/​127020-configuring-ubuntu-9-04-tftp-server.html
 +  * http://​wiki.attie.co.uk/​wiki/​Ubuntu_server_12.04/​tftp
 +
 +
  
  

en/general_information/tftp.txt · Last modified: 2017/12/22 12:10 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