LS1088ARDB - Ethernet Link Status

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

LS1088ARDB - Ethernet Link Status

2,857 Views
mloder
Contributor I

Hi NXP Support,

I am struggling with the LS1088ARDB development board. Using the default configuration for the yocto build for the board I can get networking operational. However, ETHTOOL Reports the link status as yes always regardless if an ethernet cable is plugged in or not.

- Boot Up

- Run `ethtool eth0`, link detected reports yes with no ethernet port plugged in.

Settings for eth0:
        Supported ports: [  ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: off
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        MDI-X: Unknown
        Link detected: yes

 

We need a way to know what ports have physical cables plugged in, as well as udev rules that trigger when cables are plugged in and removed. udev is not reporting any driver state changes on cables being plugged in.

Regards

Mike

0 Kudos
Reply
4 Replies

2,740 Views
LFGP
NXP TechSupport
NXP TechSupport

you can check it at MAC level, please use the next command:

restool dpmac info dpmac.<mac number>

To determine what macs you have execute:

ls-listni

please let me know the results 

0 Kudos
Reply

1,469 Views
ZuzuBiek
Contributor I
I have same issue, and here is my results:

root@OpenWrt:~# restool dpmac info dpmac.3
dpmac version: 4.10
dpmac object id/portal id: 3
plugged state: plugged
endpoint state: 1
endpoint: dpni.2, link is up
DPMAC link type: DPMAC_LINK_TYPE_FIXED
DPMAC ethernet interface: DPMAC_ETH_IF_QSGMII
MAC address: 00:04:9f:06:12:05
maximum supported rate 1000 Mbps
Counters:
rx all frames: 0
rx frames ok: 0
rx frame errors: 0
rx frame discards: 0
rx u-cast: 0
rx b-cast: 0
rx m-cast: 0
rx 64 bytes: 0
rx 65-127 bytes: 0
rx 128-255 bytes: 0
rx 256-511 bytes: 0
rx 512-1023 bytes: 0
rx 1024-1518 bytes: 0
rx 1519-max bytes: 0
rx frags: 0
rx jabber: 0
rx align errors: 0
rx oversized: 0
rx pause: 0
rx bytes: 0
tx frames ok: 65
tx u-cast: 0
tx m-cast: 65
tx b-cast: 0
tx frame errors: 0
tx undersized: 0
tx b-pause: 0
tx bytes: 11742
root@OpenWrt:~#
root@OpenWrt:~# ls-listni
dprc.1/dpni.8 (interface: eth8, end point: dpmac.9)
dprc.1/dpni.7 (interface: eth7, end point: dpmac.8)
dprc.1/dpni.6 (interface: eth6, end point: dpmac.7)
dprc.1/dpni.5 (interface: eth5, end point: dpmac.6)
dprc.1/dpni.4 (interface: eth4, end point: dpmac.5)
dprc.1/dpni.3 (interface: eth3, end point: dpmac.4)
dprc.1/dpni.2 (interface: eth2, end point: dpmac.3)
dprc.1/dpni.1 (interface: eth1, end point: dpmac.2)
dprc.1/dpni.0 (interface: eth0, end point: dpmac.1)


@LFGP  or @mloder , could you help me resolve this one?

Thanks a lot
0 Kudos
Reply

2,824 Views
LFGP
NXP TechSupport
NXP TechSupport

try to use the command

$ ip monitor all

 it is used to get real time link state.

please check the info in the next link, it could help with your objetive

https://github.com/offlinehacker/NCD 

0 Kudos
Reply

2,781 Views
mloder
Contributor I

Hi LFGP,

Thank you for the help, however, I tried the command, it only works with DPMAC2 this is also the only port ethtool works on. DPMAC3-10 does not report at all with that command there is no output.

Regards

Mike

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1889728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1088ARDB%20-%20Ethernet%20Link%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1889728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20NXP%20Support%2C%3C%2FP%3E%3CP%3EI%20am%20struggling%20with%20the%20LS1088ARDB%20development%20board.%20Using%20the%20default%20configuration%20for%20the%20yocto%20build%20for%20the%20board%20I%20can%20get%20networking%20operational.%20However%2C%20ETHTOOL%20Reports%20the%20link%20status%20as%20yes%20always%20regardless%20if%20an%20ethernet%20cable%20is%20plugged%20in%20or%20not.%3C%2FP%3E%3CP%3E-%20Boot%20Up%3C%2FP%3E%3CP%3E-%20Run%20%60ethtool%20eth0%60%2C%20link%20detected%20reports%20yes%20with%20no%20ethernet%20port%20plugged%20in.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ESettings%20for%20eth0%3A%0A%20%20%20%20%20%20%20%20Supported%20ports%3A%20%5B%20%20%5D%0A%20%20%20%20%20%20%20%20Supported%20link%20modes%3A%20%20%20Not%20reported%0A%20%20%20%20%20%20%20%20Supported%20pause%20frame%20use%3A%20No%0A%20%20%20%20%20%20%20%20Supports%20auto-negotiation%3A%20No%0A%20%20%20%20%20%20%20%20Supported%20FEC%20modes%3A%20Not%20reported%0A%20%20%20%20%20%20%20%20Advertised%20link%20modes%3A%20%20Not%20reported%0A%20%20%20%20%20%20%20%20Advertised%20pause%20frame%20use%3A%20No%0A%20%20%20%20%20%20%20%20Advertised%20auto-negotiation%3A%20No%0A%20%20%20%20%20%20%20%20Advertised%20FEC%20modes%3A%20Not%20reported%0A%20%20%20%20%20%20%20%20Speed%3A%201000Mb%2Fs%0A%20%20%20%20%20%20%20%20Duplex%3A%20Full%0A%20%20%20%20%20%20%20%20Auto-negotiation%3A%20off%0A%20%20%20%20%20%20%20%20Port%3A%20Twisted%20Pair%0A%20%20%20%20%20%20%20%20PHYAD%3A%200%0A%20%20%20%20%20%20%20%20Transceiver%3A%20internal%0A%20%20%20%20%20%20%20%20MDI-X%3A%20Unknown%0A%20%20%20%20%20%20%20%20Link%20detected%3A%20yes%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EWe%20need%20a%20way%20to%20know%20what%20ports%20have%20physical%20cables%20plugged%20in%2C%20as%20well%20as%20udev%20rules%20that%20trigger%20when%20cables%20are%20plugged%20in%20and%20removed.%20udev%20is%20not%20reporting%20any%20driver%20state%20changes%20on%20cables%20being%20plugged%20in.%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EMike%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2180439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1088ARDB%20-%20Ethernet%20Link%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2180439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20have%20same%20issue%2C%20and%20here%20is%20my%20results%3A%3CBR%20%2F%3E%3CBR%20%2F%3Eroot%40OpenWrt%3A~%23%20restool%20dpmac%20info%20dpmac.3%3CBR%20%2F%3Edpmac%20version%3A%204.10%3CBR%20%2F%3Edpmac%20object%20id%2Fportal%20id%3A%203%3CBR%20%2F%3Eplugged%20state%3A%20plugged%3CBR%20%2F%3Eendpoint%20state%3A%201%3CBR%20%2F%3Eendpoint%3A%20dpni.2%2C%20link%20is%20up%3CBR%20%2F%3EDPMAC%20link%20type%3A%20DPMAC_LINK_TYPE_FIXED%3CBR%20%2F%3EDPMAC%20ethernet%20interface%3A%20DPMAC_ETH_IF_QSGMII%3CBR%20%2F%3EMAC%20address%3A%2000%3A04%3A9f%3A06%3A12%3A05%3CBR%20%2F%3Emaximum%20supported%20rate%201000%20Mbps%3CBR%20%2F%3ECounters%3A%3CBR%20%2F%3Erx%20all%20frames%3A%200%3CBR%20%2F%3Erx%20frames%20ok%3A%200%3CBR%20%2F%3Erx%20frame%20errors%3A%200%3CBR%20%2F%3Erx%20frame%20discards%3A%200%3CBR%20%2F%3Erx%20u-cast%3A%200%3CBR%20%2F%3Erx%20b-cast%3A%200%3CBR%20%2F%3Erx%20m-cast%3A%200%3CBR%20%2F%3Erx%2064%20bytes%3A%200%3CBR%20%2F%3Erx%2065-127%20bytes%3A%200%3CBR%20%2F%3Erx%20128-255%20bytes%3A%200%3CBR%20%2F%3Erx%20256-511%20bytes%3A%200%3CBR%20%2F%3Erx%20512-1023%20bytes%3A%200%3CBR%20%2F%3Erx%201024-1518%20bytes%3A%200%3CBR%20%2F%3Erx%201519-max%20bytes%3A%200%3CBR%20%2F%3Erx%20frags%3A%200%3CBR%20%2F%3Erx%20jabber%3A%200%3CBR%20%2F%3Erx%20align%20errors%3A%200%3CBR%20%2F%3Erx%20oversized%3A%200%3CBR%20%2F%3Erx%20pause%3A%200%3CBR%20%2F%3Erx%20bytes%3A%200%3CBR%20%2F%3Etx%20frames%20ok%3A%2065%3CBR%20%2F%3Etx%20u-cast%3A%200%3CBR%20%2F%3Etx%20m-cast%3A%2065%3CBR%20%2F%3Etx%20b-cast%3A%200%3CBR%20%2F%3Etx%20frame%20errors%3A%200%3CBR%20%2F%3Etx%20undersized%3A%200%3CBR%20%2F%3Etx%20b-pause%3A%200%3CBR%20%2F%3Etx%20bytes%3A%2011742%3CBR%20%2F%3Eroot%40OpenWrt%3A~%23%3CBR%20%2F%3Eroot%40OpenWrt%3A~%23%20ls-listni%3CBR%20%2F%3Edprc.1%2Fdpni.8%20(interface%3A%20eth8%2C%20end%20point%3A%20dpmac.9)%3CBR%20%2F%3Edprc.1%2Fdpni.7%20(interface%3A%20eth7%2C%20end%20point%3A%20dpmac.8)%3CBR%20%2F%3Edprc.1%2Fdpni.6%20(interface%3A%20eth6%2C%20end%20point%3A%20dpmac.7)%3CBR%20%2F%3Edprc.1%2Fdpni.5%20(interface%3A%20eth5%2C%20end%20point%3A%20dpmac.6)%3CBR%20%2F%3Edprc.1%2Fdpni.4%20(interface%3A%20eth4%2C%20end%20point%3A%20dpmac.5)%3CBR%20%2F%3Edprc.1%2Fdpni.3%20(interface%3A%20eth3%2C%20end%20point%3A%20dpmac.4)%3CBR%20%2F%3Edprc.1%2Fdpni.2%20(interface%3A%20eth2%2C%20end%20point%3A%20dpmac.3)%3CBR%20%2F%3Edprc.1%2Fdpni.1%20(interface%3A%20eth1%2C%20end%20point%3A%20dpmac.2)%3CBR%20%2F%3Edprc.1%2Fdpni.0%20(interface%3A%20eth0%2C%20end%20point%3A%20dpmac.1)%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F203371%22%20target%3D%22_blank%22%3E%40LFGP%3C%2FA%3E%26nbsp%3B%20or%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235126%22%20target%3D%22_blank%22%3E%40mloder%3C%2FA%3E%26nbsp%3B%2C%20could%20you%20help%20me%20resolve%20this%20one%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20a%20lot%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1897728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1088ARDB%20-%20Ethernet%20Link%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1897728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eyou%20can%20check%20it%20at%20MAC%20level%2C%20please%20use%20the%20next%20command%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Erestool%20dpmac%20info%20dpmac.%3CMAC%20number%3D%22%22%3E%3C%2FMAC%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20determine%20what%20macs%20you%20have%20execute%3A%3CBR%20%2F%3E%3CBR%20%2F%3Els-listni%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eplease%20let%20me%20know%20the%20results%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1894423%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1088ARDB%20-%20Ethernet%20Link%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1894423%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20LFGP%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20help%2C%20however%2C%20I%20tried%20the%20command%2C%20it%20only%20works%20with%20DPMAC2%20this%20is%20also%20the%20only%20port%20ethtool%20works%20on.%20DPMAC3-10%20does%20not%20report%20at%20all%20with%20that%20command%20there%20is%20no%20output.%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EMike%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1891582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LS1088ARDB%20-%20Ethernet%20Link%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1891582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Etry%20to%20use%20the%20command%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22language-text%22%3E%24%20ip%20monitor%20all%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3Bit%20is%20used%20to%26nbsp%3B%3CSPAN%3Eget%20real%20time%20link%20state.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eplease%20check%20the%20info%20in%20the%20next%20link%2C%20it%20could%20help%20with%20your%20objetive%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fofflinehacker%2FNCD%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fofflinehacker%2FNCD%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E