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命令下载内核到开发板了。
本文详细介绍如何在Ubuntu 8.10上安装并配置TFTP服务,通过使用VMware 6.0进行嵌入式环境搭建。主要内容包括安装必要的TFTP软件包、设置TFTP根目录、配置xinetd及inetd服务,并最终实现开发板通过U-boot tftp命令下载内核。

被折叠的 条评论
为什么被折叠?



