forked from smolt/RaspberryPi-FreeRTOS
-
Notifications
You must be signed in to change notification settings - Fork 0
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.
- Select Settings/Network/Adapter 2
- Enable network adapter attached to Bridged Adapter
- Select Name as Ethernet
- 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
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)
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot
$ sudo /etc/init.d/xinetd restart
$ 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!