工具/软件:Linux
我遇到的问题是 DP83867E 通过定制板上的 MDIO 进行配置、但不发送或接收数据。 我可以在内部 ping 该接口、但没有外部数据包离开或进入 Linux。
我有 Zynq-7100 SoC 和 Linux 4.9.0。 我已启用 TI DP83867驱动程序并确认 MDIO_BUS 正在使用该驱动程序。
驱动程序信息:
# ls -lart :/sys/bus/mdio_bus/devices/e000b000.etherne:0c
总计0
-rw-r--r-- 1根根4096 JAN 1 1970 uevent
drwxr-xr-x 4根根,0年1月1日,1970年。
drwxr-xr-x 3根根,0年1月1日,1970年。
lrwxrwxrwx 1 root root 用户0 Mar 20 21:31 subsystem ->../../../../../../../../bus/mdio_bus
drwxr-xr-x 2 root 用户0 Mar 2021:31 power-
-r--r--r-- 1根根4096 Mar 20 21:31 phy_interface
r--r--r-- 1根根4096 Mar 20 21:31 phy_id
-r--r--r-- 1根根4096 Mar 20 21:31 phy_ha_fixups
lrwxrwxrwx 1 root root 用户0 Mar 20 21:31 of _node ->../../../../../../../../firmware/devicetree/base/amba/ethernet@e000b000/ethernet-phy@c
lrwxrwxrwx 1 root root 用户0 Mar 20 21:31 driver ->../../../../../../../../bus/mdio_bus/drivers/TI DP83867
DTSI 更改:
&gem0{
PHY-Handle =<&Ethernet_phy>;
/delete-node/ethernet-phy@7;
ethernet_phy:ethernet-phy@c{
DEVICE_TYPE ="以太网 phy";
reg =<0xc>;
};
};
KCONFIG (配置):
CONFIG_DP83867_PHY=y
感谢您的任何帮助...