宿主機 VMware-7.1 Ubuntu11.04
開發板 OK6410
現狀 飛凌-u-boot1.1.6的dm9000aep可以使用。tftp功能也沒有問題。若要使用uboot的tftp功能,還需上位機安裝並配置tftp。
文中已解決問題為主,如有linux常用功能不明白,還請查看www.linuxidc.com的相關文章,本文不再贅述。
本文字體及顏色說明:[紫色]代表是命令行執行
[棕紅色]代表命令行顯示內容
[藍色]文本文檔或者源代碼中的內容
[綠色]代表文件名
---步驟1---
安裝tftp功能所需軟件
啟動VMware中的Ubuntu11.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的方法。