Setup a TFTP server

I need setup a tftp server to upgrade the file system from Emdebian to debian on my board.
Since I have been using linux mint, it’s quite easy to setup ,

1. Download tftp
$ sudo apt-get install xinetd tftpd tftp

2. Configuration
sudo gedit /etc/xinetd.conf, add the following,

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

3. Make /tftpboot directory
$ sudo mkdir /tftpboot
$ sudo chmod -R 777 /tftpboot
$ sudo chown -R nobody /tftpboot

4. Start tftpd through xinetd
$ sudo /etc/init.d/xinetd restart

5. Test tftp
cd
touch /tftpboot/testfile
tftp 127.0.0.1
tftp > get testfile

Note: tftp server is also need for U-boot to update the linux kernel of the board.

Advertisement

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.