iMX8MP - Bridge on eth1 not supported

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8MP - Bridge on eth1 not supported

2,790 Views
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 Kudos
13 Replies

2,755 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 Kudos

2,753 Views
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 Kudos

2,746 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Are you using android BSP?

0 Kudos

2,744 Views
anhira
Contributor I

No, is yocto BSP

0 Kudos

2,739 Views
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 Kudos

2,694 Views
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 Kudos

2,649 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 Kudos

2,643 Views
davida
Contributor II

Yes, thanks. It will serve.

0 Kudos

2,641 Views
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

2,202 Views
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 Kudos

2,742 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,191 Views
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 Kudos

1,077 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Dear Jaiveer,

 I email to you, please have a look.

0 Kudos