I have an embedded VxWorks target that needs to boot its kernel from my Ubuntu computer. How do I install and run a TFTP server?
3 Answers
TFTP Server Install and Setup
Install the following packages.
sudo apt-get install xinetd tftpd tftpCreate
/etc/xinetd.d/tftpand put this entry:service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no }Create a folder
/tftpbootthis should match whatever you gave inserver_args. mostly it will be tftpboot.sudo mkdir /tftpboot sudo chmod -R 777 /tftpboot sudo chown -R nobody /tftpbootRestart the
xinetdservice.newer systems:
sudo service xinetd restartolder systems:
sudo /etc/init.d/xinetd restart
Now our TFTP server is up and running.
Testing our TFTP server
Create a file named test with some content in
/tftpbootpath of the TFTP serverObtain the IP address of the TFTP server using
ifconfigcommandNow in some other system follow the following steps.
tftp 192.168.1.2 tftp> get test Sent 159 bytes in 0.0 secondstftp> quit
cat test
Source: https://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/
- 205
- 2,193
- 4
- 16
- 15
You can install atftpd and it will create a directory called /tftpboot in which you may place your files. Put especially the pxelinux.0 file there. Any future configuration will be addressed if it is necessary.
When you install the package with
sudo apt-get install atftpd
it will use Debconf to prompt you for some choices. You can set many choices(server timeout may be useful), especially the basepath. You can also adjust the multicast range.
- 20,906