This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:development:setup-tftp-server [2022/07/05 23:45] nick |
products:sbc:common:development:setup-tftp-server [2022/07/08 05:53] (current) frank |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Install TFTP packages: | Install TFTP packages: | ||
| - | ```sh | + | ```shell |
| $ sudo apt-get install openbsd-inetd tftpd tftp | $ sudo apt-get install openbsd-inetd tftpd tftp | ||
| ``` | ``` | ||
| Line 32: | Line 32: | ||
| Create and modify permissions on the TFTP root directory: | Create and modify permissions on the TFTP root directory: | ||
| - | ```bash | + | ```shell |
| $ sudo mkdir /srv/tftp | $ sudo mkdir /srv/tftp | ||
| $ sudo chown -R $(whoami) /srv/tftp | $ sudo chown -R $(whoami) /srv/tftp | ||
| Line 39: | Line 39: | ||
| Restart the TFTP Service: | Restart the TFTP Service: | ||
| - | ```sh | + | ```shell |
| $ sudo / | $ sudo / | ||
| ``` | ``` | ||
| Line 47: | Line 47: | ||
| Install additional TFTP packages: | Install additional TFTP packages: | ||
| - | ```sh | + | ```shell |
| $ sudo apt-get install tftp-hpa tftpd-hpa | $ sudo apt-get install tftp-hpa tftpd-hpa | ||
| ``` | ``` | ||
| Line 55: | Line 55: | ||
| As root, edit ''/ | As root, edit ''/ | ||
| - | ```sh | + | ```shell |
| TFTP_DIRECTORY="/ | TFTP_DIRECTORY="/ | ||
| ``` | ``` | ||
| Line 61: | Line 61: | ||
| Change the dir to ''/ | Change the dir to ''/ | ||
| - | ```bash | + | ```shell |
| TFTP_DIRECTORY="/ | TFTP_DIRECTORY="/ | ||
| ``` | ``` | ||
| Create and modify permissions on the TFTP root directory: | Create and modify permissions on the TFTP root directory: | ||
| - | ```sh | + | ```shell |
| $ sudo mkdir /srv/tftp | $ sudo mkdir /srv/tftp | ||
| $ sudo chown -R $(whoami) /srv/tftp | $ sudo chown -R $(whoami) /srv/tftp | ||
| Line 73: | Line 73: | ||
| Restart the TFTP Service: | Restart the TFTP Service: | ||
| - | ```sh | + | ```shell |
| $ sudo service tftpd-hpa restart | $ sudo service tftpd-hpa restart | ||
| ``` | ``` | ||
| Line 148: | Line 148: | ||
| Make sure you have copied the testing file to the TFTF root path: | Make sure you have copied the testing file to the TFTF root path: | ||
| - | ```sh | + | ```shell |
| $ ls / | $ ls / | ||
| / | / | ||
| Line 174: | Line 174: | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| - | * Check your LAN cable connection, if the terminal print-out looks like: | + | * Check your LAN cable connection, if the terminal print-out looks like: ``` |
| - | ``` | + | |
| kvim3# tftp 1080000 u-boot.bin | kvim3# tftp 1080000 u-boot.bin | ||
| dwmac.ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT ! | dwmac.ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT ! | ||
| Line 182: | Line 181: | ||
| ``` | ``` | ||
| - | * Check your server IP or filename address, if the print-out looks like: | + | * Check your server IP or filename address, if the print-out looks like: ``` |
| - | ``` | + | |
| kvim3#tftp 1080000 u-boot.bin | kvim3#tftp 1080000 u-boot.bin | ||
| Speed: 1000, full duplex | Speed: 1000, full duplex | ||