imx6q: Ethernet not working with Yocto Kirkstone

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

imx6q: Ethernet not working with Yocto Kirkstone

2,360件の閲覧回数
tl
Contributor I

Hi,

I'm upgrading our project from Yocto Hardknott to Yocto Kirkstone (5.15.32-2.0.0) and I can't get Ethernet working. It seems that this patch from linux-imx 5.10 wasn't merged to linux-imx 5.15.

https://source.codeaurora.org/external/imx/linux-imx/commit/?h=lf-5.10.y&id=f1e6bf2272087168817f0b5a...

If I apply that patch (with adaptions to later patches), Ethernet starts working. Just to let you know for the next Kirkstone release.

BR,

TL

ラベル(2)
0 件の賞賛
返信
4 返答(返信)

2,326件の閲覧回数
tl
Contributor I

Hi again,

Sorry for my late response, been busy busy.

I disabled the patch and tested again. Then I get a random MAC address

<log time> <hostname> kernel: fec 2188000.ethernet: Invalid MAC address: 00:00:00:00:00:00
<log time> <hostname> kernel: fec 2188000.ethernet: Using random MAC address: 82:93:32:58:9a:cb

I get link up

<log time> <hostname> kernel: Marvell 88q5050 2188000.ethernet-1:07: attached PHY driver (mii_bus:phy_addr=2188000.ethernet-1:07, irq=POLL)
<log time> <hostname> kernel: fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

I'm able to receive packets, but nothing goes out. And I get a periodic TX ring buffer dump.

fec 2188000.ethernet eth0: TX ring dump
Nr SC addr len SKB

<removed ring buffer elements>

 

My suspision is that this call in the patch fixes my TX issues

imx6q_enet_clk_sel();

and this call fixes the MAC address issue:

imx6_enet_mac_init("fsl,imx6q-fec", "fsl,imx6q-ocotp");

 

The imx6_enet_mac_init is called for other IMX6 SOC's but not imx6q

it/arch/arm/mach-imx$ git grep imx6_enet_mac_init
common.c:void __init imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat)
common.h:void imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat);
mach-imx6sl.c: imx6_enet_mac_init("fsl,imx6sl-fec", "fsl,imx6sl-ocotp");
mach-imx6sx.c: imx6_enet_mac_init("fsl,imx6sx-fec", "fsl,imx6sx-ocotp");
mach-imx6ul.c: imx6_enet_mac_init("fsl,imx6ul-fec", "fsl,imx6ul-ocotp");
mach-imx7d.c: imx6_enet_mac_init("fsl,imx7d-fec", "fsl,imx7d-ocotp");

 

No, I haven't tried the demo images.

 

Thanks

0 件の賞賛
返信

2,280件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport
since you didn't use demo images, did you use your own image with you customized board, I got reply the bsp should support this as default, this is not bug that the current bsp removes this patch, so could you reproduce this issue on nxp imx6q board with demo images?
0 件の賞賛
返信

2,344件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

I got information this patch shouldn't affect the 5.15 bsp, so could you give me more detailed information about this ethernet issue? did you test demo images? we should test these function before the test team released them

0 件の賞賛
返信

2,348件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

yes, it seems that this patch removed in the 5.15, let me double confirmed this and tell you the result

0 件の賞賛
返信