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 [2017/12/14 16:30] – schmid | en:general_information:tftp [2023/06/21 14:52] (current) – weinholdo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== TFTP Server ===== | + | ====== TFTP Server ====== |
- | \\ | + | |
- | ===== Ubuntu x86 in VMware player | + | |
- | Tested with Ubuntu | + | ===== Setting up TFTP Server in Ubuntu |
- | * 14.04 | + | TFTP (Trivial File Transfer Protocol) is a simplified version of FTP (File Transfer Protocol), |
- | * 12.04 | + | 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 following guide desribes how to install | + | < |
- | To install the following step is needed: | + | sudo apt-get |
- | <code bash> | ||
- | user@ubuntu: | ||
</ | </ | ||
- | The TFTP default directory | + | 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** | |
- | * Creation of a new directory for the server | + | < |
- | * setting the ownership for the tftp user | + | sudo mkdir /tftpboot |
- | * add user to the tftp group to have rights to the tftpd dirctory | + | sudo chmod -R 777 /tftpboot |
+ | sudo chown -R nobody /tftpboot | ||
- | <code bash> | ||
- | user@ubuntu: | ||
- | user@ubuntu: | ||
- | user@ubuntu: | ||
- | user@ubuntu: | ||
</ | </ | ||
- | Finally the server configuration for the TFTP server | + | Now a new xinetd tftp serivce |
+ | < | ||
+ | sudo nano / | ||
- | <code bash> | ||
- | user@ubuntu: | ||
</ | </ | ||
- | Change | + | Add the following |
< | < | ||
- | TFTP_DIRECTORY="/srv/tftpd" | + | service tftp |
- | </code> | + | { |
+ | protocol | ||
+ | port = 69 | ||
+ | socket_type | ||
+ | wait = yes | ||
+ | user = nobody | ||
+ | server | ||
+ | server_args | ||
+ | disable | ||
+ | } | ||
- | |||
- | 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 | + | After setting up everything properly, |
+ | |||
+ | < | ||
+ | sudo service xinetd restart | ||
- | <code bash> | ||
- | user@ubuntu: | ||
</ | </ | ||
+ | ===== Further applicable links ===== | ||
- | ===== Further applicable links ===== | ||
\\ | \\ | ||
- | [[en: | + | [[:en: |