1820436_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

1820436_en-US

1820436_en-US

T1024, modify the device tree to support MAC(SGMII) to MAC(SGMII), but not work

Hi, 

In our board, T1024 connect to one port of Marvell switch chip by mac to mac. I change uboot code to adapt this, and ping works well in uboot.  I changed the DTS and sdk_dpaa code in kernel. but it dose not work. Now I don't know how to do next step. Could you give me some advices? 

the DTS changes:  The bold lines are my changes

ethernet@e2000 {
/*phy-handle = <0x0>;*/
phy-connection-type = "sgmii";   
#status = "enable";
phy_mode = "internal";
fixed-link = <0x0 0x1 1000 0 0>;
rcpm-wakeup = <0x9 0x40000000>;
cell-index = <0x1>;
compatible = "fsl,fman-memac";
reg = <0xe2000 0x1000>;
fsl,port-handles = <0xe 0xf>;
ptimer-handle = <0xd>;
linux,phandle = <0x21>;
phandle = <0x21>;
};


Re: T1024, modify the device tree to support MAC(SGMII) to MAC(SGMII), but not work

Hi,
We ran into the same problem and solved it by modifying the FMAN driver (memac) in the kernel. Even with a fixed-link set in the DTS, you still need to clear the autonegotiation bit when initializing the SerDes lanes, and avoid restarting them afterward.
Take a look at SetupSgmiiInternalPhy(). This issue shows up in a MAC-to-MAC setup with no external PHY. In that case, both ends (CPU and L2 switch) must be configured as direct links with no negotiation. Just force the link parameters.

https://community.nxp.com/t5/QorIQ/Mac-to-Mac-communication-over-SGMII/m-p/993299

Regards,

Bogdan

回复: T1024, modify the device tree to support MAC(SGMII) to MAC(SGMII), but not workplease refer to: https://blog.csdn.net/weixin_41289976/article/details/136476979?spm=1011.2124.3001.6209回复: T1024, modify the device tree to support MAC(SGMII) to MAC(SGMII), but not workCan you post the solution for your issue? What changes were needed in your DTS file?回复: T1024, modify the device tree to support MAC(SGMII) to MAC(SGMII), but not work

please ignore this issue. it has been fixed.

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 06:37 PM
更新者: