uboot使用这个来下载kernel, 对ubuntu用户来讲,配置这个不是很友好。
安装程序
sudo apt-get install tftp tftpd
前者是客户端,后者是服务程序。
只这样是不行的,因为tftp是要inetd来控制的,而ubuntu或debian类的系统,默认是没有安装inetd的,安装一下:(也 可以apt-get install xinetd)
sudo apt-get install netkit-inetd
在/目录下建一个tftpboot, 把属性改成777。
cd /
sudo mkdir tftpboot
sudo chmod 777 tftpboot
修改/etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
重新加载inetd进程
sudo /etc/init.d/inetd reload
测试一下,在/tftpboot文件夹下新建立一个文件
touch aaa
进入另外一个文件夹
tftp 10.0.0.1
tftp> get aaa

