in my device I must switch on the Ethernet LED's of the network phy from user space.
In other devices I use the SIOCGMIIREG and SIOCSMIIREG to write to the mdio registers direct.
But the SIOCGMIIREG and SIOCSMIIREG is not supported any more:
root@myimg-64b:/proc/net# mii-tool eth5
SIOCGMIIPHY on 'eth5' failed: Invalid argument
So I tried to use ethtool:
root@myimg-64b:/proc/net# ethtool -p eth5 2
Cannot identify NIC: Operation not supported
The problem is that set_phys_id is not implemented in driveres/net/ethernet/freescale/dpa/dpaa_ethtool.c
I am using the Freescale Linux SDK 1.8
Hope someone has a idea.