1. 下载官方内核和文件系统后,电脑windows和板子互相ping不通,错误如下
~ # ifconfig eth0 192.168.1.21
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
~ # hi_gmac_v200 10050000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
~ # ping 192.168.1.112
PING 192.168.1.112 (192.168.1.112): 56 data bytes
卡死在这里,解决方案:
这是因为官方库默认网络是rgmii模式,而自己的模组是rmii模式,因此需要修改内核。这里直接修改内核文件
将Kernel的下边路径arch/arm/boot/dts/hisi-hi3519v101-hmp-demb.dts的这部分代码
&higmac {
phy-handle = <ðphy>;
phy-mode = "rgmii";
};
改成
&higmac {
compatible = "hisilicon,higmac-v3", "hisilicon,higmac";
phy-handle = <ðphy>;