Colibri iMX8QXP Second Ethernet port (fec2)

Colibri iMX8QXP 2GB WB IT
Colibri Evaluation Board Rev 3.2
Torizon Core 5.7.2+build.17

I am attempting to enable the second Ethernet port (fec2) on the Torizon image using the following method:

  1. I defined the interface fec2 in the file /tcbworkdir/device-trees/dts-arm64/imx8x-colibri.dtsi, using fec1 as an example.

  2. I defined the pin control in the same file.

  3. I disabled Ethernet interface 1 (fec1) and enabled interface 2 (fec2) in the file /tcbworkdir/device-trees/dts-arm64/imx8x-colibri-eval-v3.dtsi.

  4. I generated the Torizon Image with the changes and tested it on the test bench.

However, the console displays an error while attempting to read the MAC Address from the interface.

Additional information,
I am using the LAN8720A chip for the ethernet Phy.

Any ideas what could be going wrong?

Hello @jalvarado,

It seems that your configuration is almost correct since it’s initializing the PHY. I would like to ask you to do some tests in order to try to find the solution.

Verifying the imx8x-mek.dtsi from NXP, they are also configuring the nvmem-cells and the nvmem-cell-names parameters, can you please try to configure these and check if the issue is solved?

Also, can you please try to configure the parameter local-mac-address as exposed on this NXP question?

Please let me know if any of the above tests solve your issue. If you have any doubts please let me know.

Best regards,
Daniel Morais