I’m encountering an intermittent issue on some devices using the Colibri iMX8QXP module running Torizon OS 5.7. Occasionally, when the system is restarted via software (e.g., using sudo reboot), the Ethernet interface fails to initialize during boot. The system seems unable to detect the “PHY” device in these cases (Micrel KSZ8041).
Interestingly, a hardware reset resolves the issue, and the Ethernet interface initializes correctly.
Currently, we suspect the issue could be related to one of the following:
Residual states in the PHY after a software restart.
A misconfiguration in the bootloader or device tree.
However, this issue is not consistently reproducible across all devices, making it more challenging to diagnose.
I would greatly appreciate any guidance or suggestions.
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
Thank you for reaching out with your question about the Ethernet PHY initialization issue on the Colibri iMX8QXP module running Torizon OS 5.7. Let’s explore some potential solutions to address this intermittent problem.
Device Tree Configuration:
Double-check the device tree settings for the Ethernet PHY. Ensure that the phy-mode is set to “rmii” and that the phy-handle correctly references the PHY node. Also, verify that the reg property matches the actual address of the PHY on the MDIO bus.
Review the pinctrl settings to ensure they are correctly configured for both active and sleep states, as incorrect configurations can lead to initialization issues.
Residual States in PHY:
Consider implementing a reset sequence for the PHY during the boot process. This can be achieved by adding a GPIO-controlled reset line in the device tree, if not already present, to ensure the PHY is reset during boot.
Check for any known issues or errata related to the Micrel KSZ8041 PHY that might affect its behavior after a software reset.
Bootloader Configuration:
Examine the bootloader environment settings to ensure they are not interfering with Ethernet initialization. Sometimes, bootloader settings can override device tree configurations.
If feasible, test with different bootloader versions or configurations to determine if the issue persists.
Testing and Isolation:
Since the issue is intermittent, try to isolate it by testing under various conditions, such as different power supply levels or environmental factors, to see if these affect the frequency of the issue.
By following these steps, you should be able to narrow down the cause of the Ethernet PHY initialization issue. If the problem continues, further investigation into the hardware and software interactions may be necessary.
I hope this helps! If you have any more questions, feel free to ask.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
Can you send us what specific Colibri IMX8QXP you are using, there should be a product ID number on the module. Also, what carrier board are you using? Does this issue persist with our development boards?
It’s the Colibri iMX8QXP 2GB IT V1.0D With the ID: 7269726.
We’re not using a carrier board of yours, the device it’s integrated on a board developed by us.
We can provide you with the schematic section where the RJ45 connector connections integrate with the PHY below: