Hello Everyone,
We are using DP83822I in our product and we want to run Eherenet Loopback test.
Can someone please shed a light how can this be achieved in Linux for DP83822I?.
Thanks,
Asma
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.
Hello Everyone,
We are using DP83822I in our product and we want to run Eherenet Loopback test.
Can someone please shed a light how can this be achieved in Linux for DP83822I?.
Thanks,
Asma
Hi Asma,
Are you able to read and write register using USB2MDIO GUI? We normally recommend customer using USB2MDIO GUI. Please follow the datasheet 8.4.8 for the loopback test.
--
Regards,
Hillman Lin
Hi Hillman,
Because it's an automated test, that runs with other tests, I do not want to use GUI.
Is there any way to run the test from Linux with ethtool or any other application?
Thanks,
Asma
Hi Asma,
You can read and write register through the ethtool comment and you can follow the datasheet 8.4.8 for the loopback test. Could you double check on the ethtool for the comments on how to read and write registers?
--
Regards,
Hillman Lin
Hi Hillman,
what do you mean by ethtool comment, I didn't get it? I am running this from userspace not uboot
I tried running an external loopback test through ethtool, but it is giving this output : Operation not supported by endpoint
I can read and write register through phytool now.
In the datasheet 8.4.8 section, its not given how to perform an external loopback test
This is 8.4.8, I don't see any instruction or register given to perform the external test.
Can you please provide a bit of explanation of how can I do an external test, which bits to enable?
Thanks,
Asma
Hi Asma,
External test need to short the wires physically. You need to short the pin1 to pin3 and pin2 to pin 6 in the RJ45. May I ask why did you want to use loopback test? you can also perform an digital, PCS, and Analog loopbacks. Those can be configure through Register 0x0016 in the datasheet.
--
Regards,
Hillman Lin
Hi Hillman,
Thanks for the reply. This is for emission testing of our device.
So I have shorted the pin in RJ45. How can I send /receive packets and validate them?
Do I have to write my own application for it, or does DP83822 do it internally and provide its status?
Thanks,
Asma
Hi Asma,
There are two ways you can check the send / receive packets
--
Regards,
Hillman lin