SGMII Configuration for LX2160A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SGMII Configuration for LX2160A

2,397 Views
Elango0103
Contributor I

Hi,
I am using LX2160A in my custom hardware. i need to configure serdes 1 first 2 lines as SGMII(lane 0 and lane 1). I have added the below snippet in my "fsl-lx2160a-rdb.dts" file.

&dpmac3 {
status = "okay";
phy-connection-type = "sgmii";
managed = "in-band-status";
};
&dpmac4 {
status = "okay";
phy-connection-type = "sgmii";
managed = "in-band-status";
};

 

I can see link is UP and RUNNING, but still i can't able to ping the other end. LX2160A is directly connected to Ethernet Switch without any external phy. While performing ping test TX packets increases where RX remains 0.

root@TinyLinux:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.2 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::20a:35ff:fe00:2203 prefixlen 64 scopeid 0x20<link>
ether 00:0a:35:00:22:03 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 726 (726.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.5 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::20a:35ff:fe00:2201 prefixlen 64 scopeid 0x20<link>
ether 00:0a:35:00:22:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 726 (726.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Can someone help on this.

 

0 Kudos
Reply
5 Replies

2,134 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please kindly follow AN13329 to do the debug.

Network subsystem troubleshooting on DPAA2 devices (illustrated with LX2160)

Thanks

0 Kudos
Reply

2,196 Views
June_Lu
NXP TechSupport
NXP TechSupport

Confirm with the internal team:

Suggest to use fixed-link instead of 'managed = "in-band-status".

Thanks

0 Kudos
Reply

2,169 Views
Elango0103
Contributor I

We have tried with fixed link configuration also, observed same result.

where Tx increases, Rx remains 0 (Link is UP).

&dpmac3 {
status = "okay";
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

&dpmac4 {
status = "okay";
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

 

how to confirm LX side is proper by performing loopback test?

0 Kudos
Reply

2,288 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please kindly share the SW version, thanks

0 Kudos
Reply

2,261 Views
Elango0103
Contributor I

We are using LSDK 21.08

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2258630%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258630%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EI%20am%20using%20LX2160A%20in%20my%20custom%20hardware.%20i%20need%20to%20configure%20serdes%201%20first%202%20lines%20as%20SGMII(lane%200%20and%20lane%201).%20I%20have%20added%20the%20below%20snippet%20in%20my%20%22fsl-lx2160a-rdb.dts%22%20file.%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%26amp%3Bdpmac3%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Estatus%20%3D%20%22okay%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Ephy-connection-type%20%3D%20%22sgmii%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Emanaged%20%3D%20%22in-band-status%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%26amp%3Bdpmac4%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Estatus%20%3D%20%22okay%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Ephy-connection-type%20%3D%20%22sgmii%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Emanaged%20%3D%20%22in-band-status%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%3EI%20can%20see%20link%20is%20UP%20and%20RUNNING%2C%20but%20still%20i%20can't%20able%20to%20ping%20the%20other%20end.%20LX2160A%20is%20directly%20connected%20to%20Ethernet%20Switch%20without%20any%20external%20phy.%20While%20performing%20ping%20test%20TX%20packets%20increases%20where%20RX%20remains%200.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Eroot%40TinyLinux%3A~%23%20ifconfig%3CBR%20%2F%3Eeth0%3A%20flags%3D4163%3CUP%3E%20mtu%201500%20metric%201%3CBR%20%2F%3Einet%20192.168.1.2%20netmask%20255.255.255.0%20broadcast%200.0.0.0%3CBR%20%2F%3Einet6%20fe80%3A%3A20a%3A35ff%3Afe00%3A2203%20prefixlen%2064%20scopeid%200x20%3CLINK%20%2F%3E%3CBR%20%2F%3Eether%2000%3A0a%3A35%3A00%3A22%3A03%20txqueuelen%201000%20(Ethernet)%3CBR%20%2F%3ERX%20packets%200%20bytes%200%20(0.0%20B)%3CBR%20%2F%3ERX%20errors%200%20dropped%200%20overruns%200%20frame%200%3CBR%20%2F%3ETX%20packets%209%20bytes%20726%20(726.0%20B)%3CBR%20%2F%3ETX%20errors%200%20dropped%200%20overruns%200%20carrier%200%20collisions%200%3CBR%20%2F%3E%3CBR%20%2F%3Eeth1%3A%20flags%3D4163%3CUP%3E%20mtu%201500%20metric%201%3CBR%20%2F%3Einet%20192.168.1.5%20netmask%20255.255.255.0%20broadcast%200.0.0.0%3CBR%20%2F%3Einet6%20fe80%3A%3A20a%3A35ff%3Afe00%3A2201%20prefixlen%2064%20scopeid%200x20%3CLINK%20%2F%3E%3CBR%20%2F%3Eether%2000%3A0a%3A35%3A00%3A22%3A01%20txqueuelen%201000%20(Ethernet)%3CBR%20%2F%3ERX%20packets%200%20bytes%200%20(0.0%20B)%3CBR%20%2F%3ERX%20errors%200%20dropped%200%20overruns%200%20frame%200%3CBR%20%2F%3ETX%20packets%209%20bytes%20726%20(726.0%20B)%3CBR%20%2F%3ETX%20errors%200%20dropped%200%20overruns%200%20carrier%200%20collisions%200%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FUP%3E%3C%2FUP%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3ECan%20someone%20help%20on%20this.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20are%20using%20LSDK%2021.08%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20kindly%20share%20the%20SW%20version%2C%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EConfirm%20with%20the%20internal%20team%3A%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3ESuggest%20to%20use%20fixed-link%20instead%20of%20'managed%20%3D%20%22in-band-status%22.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2264736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264736%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20have%20tried%20with%20fixed%20link%20configuration%20also%2C%20observed%20same%20result.%3C%2FP%3E%3CP%3Ewhere%20Tx%20increases%2C%20Rx%20remains%200%20(Link%20is%20UP).%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%26amp%3Bdpmac3%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Estatus%20%3D%20%22okay%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Ephy-connection-type%20%3D%20%22sgmii%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Efixed-link%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Espeed%20%3D%20%26lt%3B1000%26gt%3B%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Efull-duplex%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%26amp%3Bdpmac4%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Estatus%20%3D%20%22okay%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Ephy-connection-type%20%3D%20%22sgmii%22%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Efixed-link%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Espeed%20%3D%20%26lt%3B1000%26gt%3B%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3Efull-duplex%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22batang%2Capple%20gothic%22%3E%7D%3B%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ehow%20to%20confirm%20LX%20side%20is%20proper%20by%20performing%20loopback%20test%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2265793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SGMII%20Configuration%20for%20LX2160A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2265793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%3EPlease%20kindly%20%3C%2FSPAN%3E%3CSPAN%3Efollow%20AN13329%3C%2FSPAN%3E%3CSPAN%3E%20to%20do%20the%20debug.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13329.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENetwork%20subsystem%20troubleshooting%20on%20DPAA2%20devices%20(illustrated%20with%20LX2160)%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E