Inversion of eth0 and eth1 after linux kernel upgrade

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

Inversion of eth0 and eth1 after linux kernel upgrade

跳至解决方案
684 次查看
jeff06
Contributor II

Hello,
on an industrial board equipped with an i.MX6ULL processor, I have an inversion of eth0 and eth1 when I switch from version 4.14 to version 6.1 of Linux. The DTS file is the same in both cases.

for v4.14:
fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
fec 2188000.ethernet eth0: registered PHC device 0
fec 20b4000.ethernet: 20b4000.ethernet supply phy not found, using dummy regulator
fec 20b4000.ethernet: Invalid MAC address: 00:00:00:00:00:00
fec 20b4000.ethernet: Using random MAC address: ea:19:01:69:6c:57
fec 20b4000.ethernet eth1: registered PHC device 1

for v6.1:
fec 20b4000.ethernet: Invalid MAC address: 00:00:00:00:00:00
fec 20b4000.ethernet: Using random MAC address: e6:ee:86:02:bc:af
fec 20b4000.ethernet eth0: registered PHC device 0
fec 2188000.ethernet eth1: registered PHC device 1

I don't understand why there's an inversion and as I'm only using eth0, the ethernet interface doesn't work.

thank you for your help
sincerely

0 项奖励
回复
1 解答
644 次查看
jeff06
Contributor II

Hello,

Thanks for your reply, but I've found the origin of this inversion.
In version 4.14 of the Linux kernel, an inversion of the fec1 and fec2 declarations in the "imx6ul.dtsi" file had been made without my knowledge. So this inversion has to be redone for kernel 6.1 in order to remain compatible with the hardware. I know it's not elegant but I don't know how else to do it.
Thanks again for your support.
Sincerely

在原帖中查看解决方案

0 项奖励
回复
2 回复数
671 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

You only use ENET1 and not ENET2?

Why don't you disable ENET2 status?

Did your ENET u-boot enumeration also changed?

What about your ethprime and ethact?

Could we confirm that your porting files did not change in u-boot nor linux?

Regards

0 项奖励
回复
645 次查看
jeff06
Contributor II

Hello,

Thanks for your reply, but I've found the origin of this inversion.
In version 4.14 of the Linux kernel, an inversion of the fec1 and fec2 declarations in the "imx6ul.dtsi" file had been made without my knowledge. So this inversion has to be redone for kernel 6.1 in order to remain compatible with the hardware. I know it's not elegant but I don't know how else to do it.
Thanks again for your support.
Sincerely

0 项奖励
回复