Tool/software:
Hi,
I have now dual emac mode using cpsw on the CPU:
root@PM5680-T-2ETH:~# ifconfig
eth0 Link encap:Ethernet HWaddr 70:FF:76:1F:44:4B
inet addr:192.168.0.10 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:266 errors:0 dropped:0 overruns:0 frame:0
TX packets:251 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19744 (19.2 KiB) TX bytes:18094 (17.6 KiB)
eth1 Link encap:Ethernet HWaddr 70:FF:76:1F:44:4C
inet addr:192.168.1.10 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
That works properly.
As next I try to activate switch mode to use both ports (for daisy chain).
Following commands entered:
devlink dev param set platform/8000000.ethernet name switch_mode value 1 cmode runtime
ip link add name br0 type bridge
ip link set dev br0 type bridge ageing_time 1000
ip link set dev eth0 up
ip link set dev eth1 up
ip link set dev eth0 master br0
ip link set dev eth1 master br0
ip link set dev br0 type bridge vlan_filtering 1
bridge vlan add dev br0 vid 1 self
bridge vlan add dev br0 vid 1 pvid untagged self
ip addr add 192.168.0.11/24 dev br0
ip link set dev br0 up
I expect that br0 can be pinged in the network, but no reply.
Is something missing ?
Best regards
Walter