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


文章来源于: 电子工程世界 原文链接

本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。