Table of Contents

Set up NFS and tftp on Ubuntu 14.04

Before you can boot from network using an Ubuntu 14.04 server you have to set up both NFS and tftp on the host machine.

Install tftp

First you have to install xinetd tftp (sudo apt-get install xinetd tftpd tftp), then create the file /etc/xinetd.d/tftp and add the following lines of code to it:

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

Then create a tftp folder and restart xinetd.

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

Lastly copy devicetree and kernelimage to /tftpboot and rename the kernelimage to “zImage”

Install NFS

The package we use is called 'nfs-kernel-server'.

After installation create an NFS share in file /etc/exports and add the rootpath to /etc/exports. In this example we used the BSP for TQMa6x:

/home/embedded/workspace/TQMa6x-BSP-REV.0109/platform-MBa6x/root       *(rw,async,no_subtree_check,no_root_squash)

After editing the file /etc/exports the NFS Server needs to be restarted.