[LS1046] How to check optic 10G SFP+ link status(up/down)

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

[LS1046] How to check optic 10G SFP+ link status(up/down)

919件の閲覧回数
changjake
Contributor II

Hi, I have a LS1046A-RDB_revB and I want to check link status of SFP+ port.

I checked in console linux shell;

--------------------------------
# cat /sys/class/net/eth2/operstate
up
---------------------------------

It's alway '1', regardless real link status changed.

But, it's changed in eth1 (10G Base-T ethernet).

 

Is there any implementation or function in kernel device driver to update link status of SFP+ port?

Which register can I check for the link status changed?

 

Regards,

Jake.

タグ(2)
0 件の賞賛
返信
1 返信

905件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

In dts file, 10G SFP+ port is defined as the following

ethernet@f2000 {
fixed-link = <0 1 1000 0 0>;
phy-connection-type = "xgmii";
};

So the result of /sys/class/net/eth2/operstate is always up.

0 件の賞賛
返信