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 [2015/08/17 15:11] – external edit 127.0.0.1 | en:general_information:tftp [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 |
| + | { | ||
| + | protocol | ||
| + | port = 69 | ||
| + | socket_type | ||
| + | wait = yes | ||
| + | user = nobody | ||
| + | server | ||
| + | server_args | ||
| + | disable | ||
| + | } | ||
| </ | </ | ||
| + | After setting up everything properly, the xinetd service must be restarted by the following command: | ||
| - | To restart | + | < |
| + | sudo service xinetd | ||
| - | <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: | ||
| - | </ | ||