[LS1046A] mdio-tools on ubuntu OS

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

[LS1046A] mdio-tools on ubuntu OS

1,682件の閲覧回数
charleshuang
Senior Contributor II

Hi NXP Team,

I can't use https://github.com/wkz/mdio-tools  in LSDK20.04 on LS1046A。

I have tried versions 1.1 to 1.3, and the result is the same.

Can you help me confirm this issue?

 

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

1,653件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

mdio-tools cannot used on DPAA Ethernet ports.

We use mdio_proxy_module in LSDK 21.08. 

mdio_proxy_module:

    url:  https://github.com/nxp-qoriq/mdio-proxy-module.git

    tag:  LSDK-21.08

However you need to port the source code to make it suitable for your version Linux Kernel.

To find out mdio bus name, you need to do the following.
find /sys | grep -i class|grep -i mdio
Please refer to my following log.
root@localhost:~# find /sys | grep -i class|grep -i mdio /sys/class/mdio_bus
/sys/class/mdio_bus/0x0000000001afc000
/sys/class/mdio_bus/0x0000000001aeb000
/sys/class/mdio_bus/0x0000000001af3000
/sys/class/mdio_bus/0x0000000001ae5000
/sys/class/mdio_bus/0x0000000001ae7000
/sys/class/mdio_bus/0x0000000001ae1000
/sys/class/mdio_bus/fixed-0
/sys/class/mdio_bus/0x0000000001afd000
/sys/class/mdio_bus/0x0000000001af1000
/sys/class/mdio_bus/0x0000000001ae9000
/sys/class/mdio_bus/0x0000000001ae3000
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 0
Got back data: 0x1040
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 1
Got back data: 0x7989
root@localhost:~# ./mdio-app 0x0000000001afc000 0 c22 2
Got back data: 0x001c
root@localhost:~#

 

0 件の賞賛
返信

1,650件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

For PHY registers read and write, you could clone phytool and build it from: https://github.com/wkz/phytool.git

Then copy phytool to the target board to use it.

In the default Linux Kernel driver, phytool write is not supported, you need to apply the attached patches.

0 件の賞賛
返信