MDIO on Linux (mpc8323e-rdb)

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

MDIO on Linux (mpc8323e-rdb)

Jump to solution
8,558 Views
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 Kudos
1 Solution
2,694 Views
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:

View solution in original post

0 Kudos
4 Replies
2,694 Views
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 Kudos
2,695 Views
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 Kudos
2,694 Views
admin
Specialist II

Sorry I attached empty file :smileyhappy:

Here working one...

0 Kudos
2,694 Views
arunkr
Contributor III

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