iMX93 Network Interface

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iMX93 Network Interface

跳至解决方案
1,116 次查看
pilotnite
Contributor III

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 项奖励
回复
1 解答
1,101 次查看
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

在原帖中查看解决方案

4 回复数
1,102 次查看
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

1,082 次查看
pilotnite
Contributor III
Much appreciated for the solution.
0 项奖励
回复
1,097 次查看
pilotnite
Contributor III

@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 项奖励
回复
1,099 次查看
pilotnite
Contributor III

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 项奖励
回复