U-Boot移植(15)TFTP installation and setting(tftp-hpa and tftpd-hpa)
Today i installed and set the tftp,because i may use this tool to download your kernel and filesystem image to my target board.
process:
sudo -i
1、Install tftpd and related packages.
# apt-get install xinetd tftpd-hpa tftp-hpa
2、modify etc/default/tftpd-hpa
#Defaults for tftpd-hpa
RUN_DAEMON="yes" //before is no。
OPTIONS="-l -s /var/lib/tftpboot" //this dir is default
3、Start tftpd through xinetd
# /etc/init.d/xinetd restart
4、Start tftpd-hpa
#/etc/init.d/tftpd-hpa start
5、Testing
#vi /var/lib/tftpboot
#touch test
#chmod 777 test
#cd /tmp
#tftp 127.0.0.1 //ifconfig ->we know :Local loopback address
tftp> get test
tftp>quit
#ls
gedit.huanghuang.2620001893 plugtmp test
keyring-WrqFBb pulse-sxRcajPKvfQ2 virtual-huanghuang.wxpaQO
orbit-huanghuang ssh-xgUUTO1602
相关文章