Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:general_information:tftp [2020/11/19 09:43] – [Ubuntu 14.04/16.04 x86 in vmware player] liedmannen:general_information:tftp [2022/10/31 15:15] – added nano weinholdo
Line 4: Line 4:
 ===== Setting up TFTP Server in Ubuntu ===== ===== Setting up TFTP Server in Ubuntu =====
  
-TFTP (Trivial File Transfer Protocol) is a simplified version of FTP (File Transfer Protocol),running on port 69. It can be setup with very litte effort.  +TFTP (Trivial File Transfer Protocol) is a simplified version of FTP (File Transfer Protocol),running on port 69. It can be setup with very litte effort.\\    
-For example the TFTP server can be used to provide the u-boot, device tree blob and Linux kernel binaries for firmware updates in u-boot on the target hardware. +For example the TFTP server can be used to provide the binaries (u-boot, device tree blob and Linux kernelfor firmware updates in u-boot on the target hardware. 
-   +\\   
- +\\   
-The first thing is to install install the client and the server package together with xinetd superserver.+The first thing is to install install the client and the server packagetogether with xinetd superserver.
  
 <code> <code>
Line 14: Line 14:
 </code> </code>
  
-The next step is to create folder to act as TFTP root, the files for e.g. the firmware updates has to be stored there.+The next step is to create folder to act as TFTP root, the files for e.g. firmware updates on the Starterkit must be stored here .\\  
 Typically this folder is located at the root level and named **tftpboot**    Typically this folder is located at the root level and named **tftpboot**   
 <code> <code>
Line 20: Line 20:
 sudo chmod -R 777 /tftpboot sudo chmod -R 777 /tftpboot
 sudo chown -R nobody /tftpboot sudo chown -R nobody /tftpboot
-sudo /etc/init.d/xinetd restart 
 </code> </code>
  
  
-Now a new xinetd serivce has to be created  the file **/etc/xinetd.d/tftp** and add the following lines of code to it+Now a new xinetd tftp serivce has to be configured by creating the file **/etc/xinetd.d/tftp** : 
  
 +<code>
 +sudo nano /etc/xinetd.d/tftp
 +</code>
 +
 +Add the following lines of code:
 <code> <code>
 service tftp service tftp
Line 40: Line 44:
 </code> </code>
  
- +After setting up everything properly, the xinetd service must be restarted by the following command
- +
- +
- +
- +
- +
-===== Ubuntu 12.04 x86 in vmware player ===== +
- +
-The default TFTP suite is tftp-hpa. To install the following step is needed: +
- +
-<code bash> +
-user@ubuntu:~$ sudo apt-get install tftpd-hpa tftp-hpa +
-</code> +
- +
-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="/home/tq/workspace/TQMa6x-BSP-REV.0104/platform-MBa6x/images"+sudo service xinetd restart
 </code> </code>
  
- 
-To restart the TFTP server type: 
- 
-<code bash> 
-user@ubuntu:~$ sudo service tftpd-hpa restart 
-</code> 
- 
-To test the server copy some file to the server and get it back with  
- 
-<code bash> 
-user@ubuntu:~$ tftp 127.0.0.1 -c get <filename>  
-</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  =====
Line 116: Line 55:
 [[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+
  
  
  
  
  • Last modified: 2023/06/21 14:52