uboot 能 ping 通但是tftp连不上的问题解决

发布时间 2023-05-23 09:50:41作者: FBshark

我的uboot可以ping通,但是使用 tftp 传输的时候就会出现下面的情况

 

1.尝试重启tftp服务器

此时有可能是在配置主机的网段信息等以后没有重启tftp服务器。
可以使用service tftpd-hpa restart 命令进行重启尝试。

这部分问题解决摘录自:https://bbs.csdn.net/topics/399174291

 

 

2. 解决重启命令出现错误问题

但是使用service tftpd-hpa restart 之后仍然出现了错误:

root@whost:~# service tftpd-hpa start 
Job for tftpd-hpa.service failed because the control process exited with error code. See "systemctl status tftpd-hpa.service" and "journalctl -xe" for details.

解决办法:将 /etc/default/tftpd-hpa 中服务器ip更新为ifconfig中的ip,

# /etc/default/tftpd-hpa
 
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/images"       #下位机的下载目录
TFTP_ADDRESS="192.168.1.156:69" #服务器地址:端口,修改为ifconfig中的ip
TFTP_OPTIONS="--secure"

再次 service tftpd-hpa restart 成功启动tftp。

这部分问题解决摘录自:https://blog.csdn.net/u013976532/article/details/108147023