Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:general_information:tftp [2020/11/19 09:43] – [Ubuntu 14.04/16.04 x86 in vmware player] liedmann | en:general_information:tftp [2023/06/21 14:52] (current) – weinholdo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====== TFTP Server ====== | ====== TFTP Server ====== | ||
===== 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), | + | TFTP (Trivial File Transfer Protocol) is a simplified version of FTP (File Transfer Protocol), |
- | For example the TFTP server can be used to provide the u-boot, device tree blob and Linux kernel | + | For example the TFTP server can be used to provide the binaries (u-boot, device tree blob and Linux kernel) for 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 package together with xinetd superserver. | + | |
< | < | ||
sudo apt-get install xinetd tftpd tftp | sudo apt-get install xinetd tftpd tftp | ||
+ | |||
</ | </ | ||
- | The next step is to create folder to act as TFTP root, the files for e.g. the firmware updates | + | The next step is to create folder to act as TFTP root, the files for e.g. firmware updates |
- | Typically this folder is located at the root level and named **tftpboot** | + | Typically this folder is located at the root level and named **tftpboot** |
< | < | ||
sudo mkdir /tftpboot | sudo mkdir /tftpboot | ||
sudo chmod -R 777 /tftpboot | sudo chmod -R 777 /tftpboot | ||
sudo chown -R nobody /tftpboot | sudo chown -R nobody /tftpboot | ||
- | sudo / | + | |
</ | </ | ||
+ | Now a new xinetd tftp serivce has to be configured by creating the file **/ | ||
+ | < | ||
+ | sudo nano / | ||
+ | |||
+ | </ | ||
- | Now a new xinetd serivce has to be created | + | Add the following lines of code: |
< | < | ||
Line 38: | Line 42: | ||
disable | disable | ||
} | } | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ===== 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: | ||
</ | </ | ||
- | The TFTP default directory is / | + | After setting up everything properly, the xinetd service must be restarted by the following |
- | + | ||
- | Change | + | |
< | < | ||
- | TFTP_DIRECTORY="/ | + | sudo service xinetd restart |
- | </ | + | |
- | |||
- | To restart the TFTP server type: | ||
- | |||
- | <code bash> | ||
- | user@ubuntu: | ||
</ | </ | ||
- | To test the server copy some file to the server and get it back with | + | ===== Further applicable links ===== |
- | <code bash> | ||
- | user@ubuntu: | ||
- | </ | ||
- | |||
- | ===== Ubuntu 10.04 x86 in vmware player ===== | ||
- | |||
- | ==== Installation ==== | ||
- | <code bash> | ||
- | user@ubuntu: | ||
- | </ | ||
- | |||
- | ==== Configuration ==== | ||
- | To cofigure TFTP the file ''/ | ||
- | < | ||
- | service tftp | ||
- | { | ||
- | socket_type | ||
- | protocol | ||
- | wait = yes | ||
- | user = root | ||
- | server | ||
- | server_args | ||
- | per_source | ||
- | cps = 100 2 | ||
- | } | ||
- | </ | ||
- | |||
- | <WRAP round info> | ||
- | The directory requires at least the access authorisation "'' | ||
- | </ | ||
- | |||
- | <WRAP round info> | ||
- | After the configuration was changed the server should be restarted: | ||
- | <code bash> | ||
- | user@ubuntu: | ||
- | </ | ||
- | </ | ||
- | |||
- | ===== 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# | ||
- | |||
- | ===== Further applicable links ===== | ||
\\ | \\ | ||
- | [[en: | + | [[:en: |
- | + | ||
- | ==== Sources ==== | + | |
- | * http:// | + | |
- | * http:// | + | |
- | * http:// | + | |
- | + | ||