Skip to content

TFTP Server Setup (Work in Progress)

Josh Sherbrooke edited this page May 19, 2016 · 3 revisions

A TFTP server makes maneuvering kernel.img from your computer to RPi easier and serves as a way to get debug files.


Network Configuration

For VirtualBox Users:

  • Select Settings/Network/Adapter 2
  • Enable network adapter attached to Bridged Adapter
  • Select Name as Ethernet

For Ubuntu 14.04 LTS Users

  • Open System Settings
  • Select Network/Wired/Options/IPv4 Settings
  • Select Method as Manual
  • Add new address: 192.168.4.1
  • Netmask as 255.255.255.0, Gateway as 0.0.0.0
  • Save

Get and Configure TFTP

Assumes you are running Ubuntu 14.04 LTS

Open a terminal:

$ sudo apt-get install xinetd
$ sudo apt-get install tftp
$ sudo apt-get install tftpd
$ sudo nano /etc/xinetd.d/tftp

At this point, a new file is made. Enter into it:

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}

Exit (^X), save (Y), and close file (Enter)

Create directory for TFTP to serve up to Pi

$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
$ sudo /etc/init.d/xinetd restart

Test TFTP Server

$ echo >/tftpboot/hi Hello There
$ tftp localhost
tftp> get hi
tftp> quit

Now you're ready to load kernels onto RPi and get debug kernels!