uboot网络移植出现的一些问题,提示ARP错误
项目场景:
开发板为正点原子阿尔法开发板,开发板通过网线直连电脑中的虚拟机Ubuntu,虚拟机网络使用桥接主机网络,主机网络连接家用WiFi(注:这段时间家里的WiFi总是不稳定!!)
问题描述
ping Ubuntu主机时提示如下错误
Using FEC1 device
ARP Retry count exceeded; starting again
或者
FEC1 Waiting for PHY auto negotiation to complete.... done
Using FEC1 device
ARP Retry count exceeded; starting again
原因分析:
①、Ubuntu无网络,不知道为什么,最近Ubuntu关机重启之后总是会自动删除nameserver,所以需要手动设置nameserver
②、未开启SMSC宏定义
③、硬件连接问题
解决方案:
①、设置nameserver,使用以下命令sudo vi /etc/resolv.conf,输入下面代码
nameserver 8.8.8.8
nameserver 8.8.4.4
②、未将#define CONFIG_PHY_MICREL
改成#define CONFIG_PHY_SMSC
③、检查网线连接是否松动,关闭防火墙