针对U-Boot tftp功能 安装并配置Ubuntu 11.04


宿主机  VMware-7.1   Ubuntu11.04
host机 OK6410
现状     飞凌-uboot1.1.6的dm9000aep可以使用。tftp功能也没有问题。若要使用uboot的tftp功能,还需上位机安装并配置tftp。
文中已解决问题为主,如有Linux常用功能不明白,还请google,本文不再赘述。

U-Boot源代码下载地址

本文字体及颜色说明:[紫色]代表是命令行执行

[棕红色]代表命令行显示内容

[蓝色]文本文档或者源代码中的内容

[绿色]代表文件名

---步骤1---

安装tftp功能所需软件


启动VMware中的Ubuntu 11.04,打开终端,获取root权限。
运行命令:

apt-get install tftpd
apt-get install netkit-inetd


如果第二条命令执行后显示:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package netkit-inetd is a virtual package provided by:
  inetutils-inetd 2:1.8-3
  openbsd-inetd 0.20080125-6ubuntu1
You should explicitly select one to install.

E: Package 'netkit-inetd' has no installation candidate


可以将第二条命令改为:
apt-get install openbsd-inetd

---第二步---

配置tftp

修改修改 /etc/inetd.conf文件,将下面内容添加到inetd.conf中:
tftp        dgram    udp    wait    nobody    /usr/sbin/tcpd    /usr/sbin/in.tftpd /srv/tftp
上面这些要将/srv/tftp修改为自己的ftp目录。

---第三步---

重新启动tftp服务

执行如下命令即可重启:
/etc/init.d/openbsd-inetd restart

重启后会显示:
 * Restarting internet superserver inetd                                                                               [ OK ]

这样就完成了Ubunu中配置tftpd的方法。

相关内容