iMX93 Network Interface

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX93 Network Interface

ソリューションへジャンプ
1,106件の閲覧回数
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,091件の閲覧回数
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,092件の閲覧回数
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,072件の閲覧回数
pilotnite
Contributor III
Much appreciated for the solution.
0 件の賞賛
返信
1,087件の閲覧回数
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,089件の閲覧回数
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 件の賞賛
返信