iMX93 Network Interface

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX93 Network Interface

Jump to solution
462 Views
pilotnite
Contributor I

Hello,

I believe this issue can be easily resolved from userspace. Currently, when booting up the iMX93 EVK using "NXP i.MX Release Distro 6.1-mickledore imx93evk," the left Ethernet port is labeled (ENET2) and the right Ethernet port is labeled (ENET1) on the board. However, upon booting into Linux, eth0 is assigned to ENET2 and eth1 to ENET1.

[275870.178004] fec 42890000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[275870.185699] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[275895.075584] imx-dwmac 428a0000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[275895.083801] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

What would be the best approach to ensure that upon Linux boot, ENET1 is eth0 and ENET2 is eth1? Should we consider changing the order in which drivers load, renaming the interface using systemd, or implementing a simple bash script?

Any help will be highly appreciated. 

Cheers,
Nitesh

 

0 Kudos
1 Solution
447 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pilotnite!

Thank you for contacting NXP Support!

 

I think that can be solved in the device tree.

 

By default is defined in the following way:

 

ethernet0 = &fec;

ethernet1 = &eqos;

 

You have to change that with:

 

ethernet0 = &eqos;

ethernet1 = &fec;

 

Please try it and share your results.

 

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93.dtsi#L33

 

Best Regards!

Chavira

View solution in original post

4 Replies
448 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @pilotnite!

Thank you for contacting NXP Support!

 

I think that can be solved in the device tree.

 

By default is defined in the following way:

 

ethernet0 = &fec;

ethernet1 = &eqos;

 

You have to change that with:

 

ethernet0 = &eqos;

ethernet1 = &fec;

 

Please try it and share your results.

 

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93.dtsi#L33

 

Best Regards!

Chavira

428 Views
pilotnite
Contributor I
Much appreciated for the solution.
0 Kudos
443 Views
pilotnite
Contributor I

@Chavira 

Never mind... I see what you mean and I just noticed device tree "imx93-11x11-evk.dts" includes "#include "imx93.dtsi"". 

Let me edit "imx93.dtsi" and test. 

Cheers, 
Nitesh

0 Kudos
445 Views
pilotnite
Contributor I

Hello @Chavira 

Thank you for your prompt response. 

For my prototype I'm using https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts... device tree. 

How can I modify the above dts?

Cheers, 
Nitesh

0 Kudos