UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Visitor zswzsr
Visitor

ax7021:PetaLinux 2017.4 pl网口用不了

我是参照petalinux2015.4的教程修改的system-user.dtsi文件:

/include/ "system-conf.dtsi"
/ {
};

&ethernet_axi_ethernet_0 {
local-mac-address = [00 0a 35 00 01 22];
phy-handle = <&phy0>;
xlnx,has-mdio = <0x1>;
phy-mode = "rgmii-id";
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@1 {
compatible = "micrel,ksz9031";
device_type = "ethernet-phy";
reg = <1>;
};
};
};
&ethernet_axi_ethernet_0_dma {
compatible = "";
};

下图中eth1是我上面配置的pl端的网口,在我ifconfig eth1 up 时,提示of_phy_connect() failed,使用时也是ping不通的,不知道应该怎样修改配置

 

Screenshot from 2018-10-30 09-37-10.png
0 项奖励
2 条回复
Xilinx Employee
Xilinx Employee

回复: ax7021:PetaLinux 2017.4 pl网口用不了

hi,

 

PL中用的哪个IP以及如何连接的?PHY的型号以及接口?

可以先参考下这个看看,

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842485/Linux+AXI+Ethernet+driver

 

0 项奖励
Visitor zswzsr
Visitor

回复: ax7021:PetaLinux 2017.4 pl网口用不了

 

PHY:KSZ9031 接口RGMII

Screenshot from 2018-10-30 11-08-57.png
Screenshot from 2018-10-30 11-41-14.png
0 项奖励