MDIO on Linux (mpc8323e-rdb)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MDIO on Linux (mpc8323e-rdb)

跳至解决方案
11,414 次查看
admin
Specialist II

There is IP175C switch on this board. How can I access to MDIO interface in Linux?

I want to change VLAN settings on this switch. Suggest please any way to do this...

0 项奖励
回复
1 解答
5,550 次查看
admin
Specialist II

Finaly I've rewritten UCC GETH driver to support mii-tool ioctls! After a week of seeking appropriate patch I decide to write it myself and it works :smileyhappy:

Noone helped me, even Freescale support!

Here you are: uccgeth driver with ethtool/mii-tool support. Unpack files in "rpm/build/.../drivers/net" directory, recompile LTIB and enjoy :smileywink:

在原帖中查看解决方案

0 项奖励
回复
4 回复数
5,550 次查看
admin
Specialist II

With normal ethernet drivers I should use IOCTL with
SIOCGMIIREG/SIOCSMIIREG. But this operation
is not supported by UCC GETH driver in this BSP. This driver has no
support for ethtool/mii-tool...
when I try:
~ # ethtool eth0
Settings for eth0:
No data available
`# mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: Operation not supported

I aplied patch from "ucc_geth: add ethtool support" from
http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg19434.html
and ethtool seems to work now. But with ETHTOOL API impossible to
read/write from/to PHY devices. I need mii-tool support for this driver.
What to do? How make IOCTL with SIOCGMIIREG/SIOCSMIIREG?

0 项奖励
回复
5,551 次查看
admin
Specialist II

Finaly I've rewritten UCC GETH driver to support mii-tool ioctls! After a week of seeking appropriate patch I decide to write it myself and it works :smileyhappy:

Noone helped me, even Freescale support!

Here you are: uccgeth driver with ethtool/mii-tool support. Unpack files in "rpm/build/.../drivers/net" directory, recompile LTIB and enjoy :smileywink:

0 项奖励
回复
5,550 次查看
admin
Specialist II

Sorry I attached empty file :smileyhappy:

Here working one...

0 项奖励
回复
5,550 次查看
arunkr
Contributor III

Hi,
First of all, I congratulates you for the effort taken. But where is the attachment ?MDIO on Linux (mpc8323e-rdb)