mdio read write in Linux

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

mdio read write in Linux

4,361件の閲覧回数
rashmikj
Contributor III

I am using phytool "https://github.com/wkz/phytool" to read / write MDIO bus in Linux on LS1046ARDB Kit.

The read works fine but when i try to write , it gives following error

"error: phy_write (-22)".

Is it related to some permissions. Kindly help.

 

0 件の賞賛
返信
2 返答(返信)

4,353件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

It seems that there is problem with this application. You could use "mdio write" command in u-boot, please refer to the following example.

=> mdio write FM1@DTSEC3 0xd 0x7
=> mdio write FM1@DTSEC3 0xe 0x3c
=> mdio write FM1@DTSEC3 0xd 0x4007
=> mdio read FM1@DTSEC3 0xe
Reading from bus FSL_MDIO0
PHY at address 1:
14 - 0x6
=> mdio write FM1@DTSEC3 0xe 0x0
=> mdio read FM1@DTSEC3 0xe
Reading from bus FSL_MDIO0
PHY at address 1:
14 - 0x0
=>

0 件の賞賛
返信

4,350件の閲覧回数
rashmikj
Contributor III

at uboot , it is working.  I want to access phy registers in Linux. Kindly help.

0 件の賞賛
返信