1. #apt-get install tftp-hpa tftpd-hpa
#apt-get install xinetd
#apt-get install inetutils-inetd
#apt-get install tftp tftpd
2. cd /
#mkdir /tftpboot
#chmod 777 /tftpboot
3. #in.tftpd -l /tftpboot
4.在/etc/xinetd.d/目录新建文件tftp内容如下:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
per_source = 11
cps = 100 2
}
重新启动服务:
#/etc/init.d/xinetd restart
#in.tftpd -l /tftpboot
5. 修改/etc/inetd.conf
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
重新加载inetd进程
#/etc/init.d/openbsd-inetd reload
tftp配置完成,你可以用U-boot的tftp命令下载内核到开发板了。