This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM335X:当使用 PROCESSOR-SDK-LINUX-08.02.00.24时、AM335x RGMII 可##39;t 在1000M 模式下运行

Guru**** 2482225 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1449246/processor-sdk-am335x-am335x-rgmii-can-t-work-with-1000-m-mode-when-using-processor-sdk-linux-08-02-00-24

器件型号:PROCESSOR-SDK-AM335X

工具与软件:

您好、TI 专家:

  我们使用 SDK PROCESSOR-SDK-LINUX-03.01.00 ,但必须迁移到新的 SDK 内核。  在 SDK 03.01中、它运行良好。

 一个问题是  KSZ9031无法在1000M 模式下运行。   可以使用100米。  它看起来可以用1000M 发送数据包,但无法接收。

[ 20.412241] Micrel KSZ9031千兆位 PHY 4a101000.MDIO:00:连接的 PHY 驱动程序[Micrel KSZ9031千兆位 PHY](MII_BUS:phy_addr=4a101000.MDIO:00、IRQ=POLL)
[20.412271] cpsw 4a100000.ethernet: phy found : id is : 0x221622.
[20.412283] phy_start:1126-------
[20.412283]
[20.412293] phy_modify:633 -------------------------------------------------------
[20.412293]
[ 20.414688] phy-gmii-sel 44e1065.phy-gmii-sel:phy_gmii_sel_mode id:1 mode:11 rgmi_id:1 rmi_clk_ext:1

Mac (&M){
pinctrl-names ="默认值";
pinctrl-0 =<&IXB_rgmii0_PINS_DEFAULT>、<&IXB_rmii2_PINS_DEFAULT>;
DUAL_EMAC =<1>;
状态="正常";
};


&Davinci_MDIO{
pinctrl-names ="默认值";
pinctrl-0 =<&IXB_mdio0_PINS_DEFAULT>;
状态="正常";
};

cpsw_emac0{
phy_id =<&Davinci_MDIO>、<0>;
PHY-MODE ="RGMII-txid";
dual_emac_res_vlan =<1>;
};

cpsw_emac1{
phy_id =<&Davinci_MDIO>、<2>;
/* phy_id =<1>;*/
PHY-MODE ="RMII";//RMII-txid

/*
- A:模拟 PHY ID ,选择任何,但唯一的所有指定
固定链接、从0到31
- b:双工配置:0表示半双工、1表示全双工
- C:以兆位/秒为单位的链接速度,接受的值为: 10,100和1000
- D:暂停配置: 0表示不暂停, 1表示暂停
- E:非对称暂停配置: 0表示无非对称暂停, 1表示
非对称暂停
*/
fixed-link =<1 1 100 0 0>;

dual_emac_res_vlan =<2>;
};

&phy_gmii_sel{
RMII 时钟外部;
};

有什么建议吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    # ethtool -S eth0
    NIC 统计信息:
    良好的 Rx 帧:0
    广播 Rx 帧:0
    多播 Rx 帧:0
    暂停 Rx 帧:0
    Rx CRC 错误:0
    Rx 对齐/代码错误:362

    它具有 " Rx 对齐/代码错误"。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    它可以通过求解  

    添加 内部延迟  

    cpsw_emac0{
    phy_id =<&Davinci_MDIO>、<0>;
    PHY 模式="RGMII-id";
    dual_emac_res_vlan =<1>;
    };