This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVM OMAPL137 EMAC MDIO interface access from user space in Linux

Hi,

I am currently working on EVM OMAPL137 board.

The EVM OMAPL137 board have MICREL KSZ8893MQL Ethernet switch.

We want to configure this MICREL Ethernet switch from the user space in linux using the OMAPL137 EMAC MDIO interface.

Can anybody provide me the procedure of how to change the Ethernet switch configuration.

 

Thanks & Regards

Jitendra

  • Not quite sure what you are asking. I haven't seen a pre-built user app to configure the switch. But then I haven't had to and haven't looked too deeply.

    If you trying to write an user application to use the MDIO interface to access PHY registers then the usual Linux way is to access it through socket ioctl. Search around for SIOCGMIIPHY , SIOCGMIIREG, SIOCSMIIREG. I believe ethhtool and mii-tool use this interface.