tftpfs – trivial file transfer protocol (TFTP) file system

ip/tftpfs [ –D ] [ –s srvname ] [ –m mtpt ] [ –x net ] [ ipaddr ]

Tftpfs serves files from a TFTP server as a filesystem. TFTP is mostly used by bootloaders to download kernel images for network bootstrap (see dhcpd(8)). As the protocol has no way of distinguishing files from directories, the final path segment needs to contain a dot (.) character to be recognized as a file. To access files that have no dot in the filename, a trailing dot has to be added and will be stripped before it is passed to the server.

The –D option enables 9P debugging messages.

The –s option causes tftpfs to post the 9P service as /srv/srvname and disables the default mount.

The default mountpoint /n/tftp can be changed with the –B mtpt option.

The –x option specifies an alternate network directory (e.g., /net.alt).

The ip address of the server can be passed in as the last program argument, ipaddr,
or in the mount spec (see bind(1)) on a per mount basis.

Boot a kernel from a tftp server (note the final dot in the kernel path).
echo reboot /n/tftp/386/9pc. >/dev/reboot