出现这种情况,要么是你的xgmiitorgmii地址设置有问题,要么是你外部phy的地址设置有问题。
设置设备树的路径为:
your_petalinux_dir/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
/include/ "system-conf.dtsi"
/ {
#address-cells = <1>;
#size-cells = <1>;
memory {
device_type = "memory";
reg = <0x0 0x30000000>;
};
};
&gem0 {
gmii2rgmii-phy-handle = <&gmii_to_rgmii_0>;
phy-mode = "rgmii-id";
status = "okay";
xlnx,ptp-enet-clock = <0x69f6bcb>;
ps7_ethernet_0_mdio: mdio {
#address-cells = <1>;
#size-cells = <0>;
gmii_to_rgmii_0: phy@14 {
compatible = "xlnx,gmii-to-rgmii-1.0";
device_type = "ethernet-phy";
reg = <14>;
phy-handle = <&Marvell88e1111>;
};
Marvell88e1111:phy@9{
reg = <9>;
device_type = "ethernet-phy";
};
};
};