Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:general_information:tftp [2022/10/31 15:15] – added nano weinholdo | 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 binaries (u-boot, device tree blob and Linux kernel) 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 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. firmware updates on the Starterkit must be stored here .\\ | + | 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** |
< | < | ||
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 | ||
+ | |||
</ | </ | ||
- | + | Now a new xinetd tftp serivce has to be configured by creating the file **/ | |
- | Now a new xinetd tftp serivce has to be configured by creating the file **/ | + | |
< | < | ||
sudo nano / | sudo nano / | ||
+ | |||
</ | </ | ||
Add the following lines of code: | Add the following lines of code: | ||
+ | |||
< | < | ||
service tftp | service tftp | ||
Line 42: | Line 42: | ||
disable | disable | ||
} | } | ||
+ | |||
</ | </ | ||
- | After setting up everything properly, the xinetd service must be restarted by the following command: | + | After setting up everything properly, the xinetd service must be restarted by the following command: |
< | < | ||
sudo service xinetd restart | sudo service xinetd restart | ||
+ | |||
</ | </ | ||
+ | ===== Further applicable links ===== | ||
- | ===== Further applicable links ===== | ||
\\ | \\ | ||
- | [[en: | + | [[:en: |
- | + | ||
- | + | ||
- | + | ||