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.
Tags: embedded linux tftp