iMX8MP - Bridge on eth1 not supported

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

iMX8MP - Bridge on eth1 not supported

4,841件の閲覧回数
anhira
Contributor I

Hello,

I'm trying to bridge eth0 with eth1 in my custom board based on imx8mpevk. I can add eth0 but when I try to add eth1 (connected to my external switch) I give this message in dmesg:

~$ sudo brctl addif br1 eth1

[ 5297.714895] imx-dwmac 30bf0000.ethernet eth1: Adding VLAN in promisc mode not supported
[ 5297.737609] imx-dwmac 30bf0000.ethernet eth1: failed to initialize vlan filtering on this port
[ 5297.746948] imx-dwmac 30bf0000.ethernet eth1: Adding VLAN in promisc mode not supported
[ 5297.769982] imx-dwmac 30bf0000.ethernet eth1: failed to initialize vlan filtering on this port
can't add eth1 to bridge br1: Operation not permitted

The kernel used is:

5.10.35-lts-5.10.y+gef3f2cfc6010

Individually I can change eth1 to promisc mode, but the operation is not permitted again

Can anyone help me or explain why I can't add eth1 to the bridge?

In kernel I have the modules included

CONFIG_BRIDGE=y

CONFIG_BRIDGE_NETFILTER=y

CONFIG_VLAN_8021Q=y

Thank you

 

0 件の賞賛
返信
14 返答(返信)

1,679件の閲覧回数
andynic
Contributor I

Hi @Rita_Wang ,
Can you please email me the patch for use with Yocto 4.0 (kernel 5.15.71 using linux-imx from NXP)? If you need more info, please let me know.

Thank you! -andy

0 件の賞賛
返信

4,806件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Do you want to use both eth0 and eth1 on the i.MX8MP?

0 件の賞賛
返信

4,804件の閲覧回数
anhira
Contributor I

Yes, I have one ethernet (eth0) connected vía layout (PCB) with another module (BPL) and the ethernet (eth1) is the only one that I have access via RJ45 connector, so I want to connect my PC to eth1 and go through eth0 to my BPL device to create a PLC network and replicate with another device the same structure.

The scheme would be something like that:

PC1 -- RJ45-- eth1--iMX8MP_1--eth0--BPL_MODULE--COAX--BPL_MODULE--eth0--iMX8MP_2--eth1--RJ45--PC2

From eth1 to BPL_MODULE_1 is one device, and is connected through COAXIAL to another.

So I want to do ping from PC1 to PC2, and connected all to the same network I have problems with the iMX8MP, I don't know why, but doesn't work well. I think that the solution is via bridge, what do you think about?

Thanks.

0 件の賞賛
返信

4,797件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Are you using android BSP?

0 件の賞賛
返信

4,795件の閲覧回数
anhira
Contributor I

No, is yocto BSP

0 件の賞賛
返信

4,790件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

I have the patch for enable dual ethernet on Android 11. I already email to you, hope can do some help for you.

0 件の賞賛
返信

4,745件の閲覧回数
davida
Contributor II

Hi,

We have exactly the same problem. Adding the 30bf0000.ethernet interface to a bridge fails, triggering the same traces.

Would it be possible to have the patch that fixes the problem, please? We are using Yocto for creating a Linux distro.

 

 

 

0 件の賞賛
返信

4,700件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

We only have the patch for dual eth on the android BSP, do you need them?

0 件の賞賛
返信

4,694件の閲覧回数
davida
Contributor II

Yes, thanks. It will serve.

0 件の賞賛
返信

4,692件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi@davida ,

I email to you, please have a check.

Wish you have a nice day

Best Regards

Rita

4,253件の閲覧回数
magnus3
Contributor I

Hello, we are interested in the same solution. We are getting the following:

```

[60987.948710] imx-dwmac 30bf0000.ethernet eth1: Adding VLAN in promisc mode not supported

[60987.965959] imx-dwmac 30bf0000.ethernet eth1: failed to initialize vlan filtering on this port

```

Can you assist?

** EDIT **

Hello @Rita_Wang,

Could you email the file/files our way also?

Best regards,

Magnus

0 件の賞賛
返信

4,793件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Only support eth0 (one instance of ethernet) in default BSP

0 件の賞賛
返信

3,242件の閲覧回数
Jaiveer
Contributor I

Hi @Rita_Wang ,
Can you please share patch to enable dual ethernet on Android 11.
our eth0 is up and working but eth1 is showing below error.
01-01 00:02:30.537 0 0 E : imx-dwmac 30bf0000.ethernet eth1: no phy at addr -1
01-01 00:02:30.543 0 0 E : imx-dwmac 30bf0000.ethernet eth1: stmmac_open: Cannot attach to PHY (error: -19)

0 件の賞賛
返信

3,128件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear Jaiveer,

 I email to you, please have a look.

0 件の賞賛
返信