Hi,
I am having LS1021AIOT board, (LS1021A Rev 1.0, IOT boar Rev X2).
The Realtek RTL8365MB 4+1 port Gigabit ethernet Switch in connected in eth2 (eTSEC3).
SDK is Yocto (QorIQ-SDK-V1.8).
I cannot communicate through the switch on this reference board with this code. ie, LS1021AIOT eTSEC3 - RTL8365 ethernet switch not working.
The RCW for eth3 is set for RGMII (000). In the Dts file in kernel, eth2 was set as rgmii-id, and in gianfar.c it was checking only rgmii. I have changed it.
Now on booting, it is verified that code runs through "Configuring RGMII mode" in gianfar.c. If I up/down eth2, it gets configured as RGMII (code runs, not sure whether PHY actually configured).
I can ping from on device connected to this switch to another device connected in the same switch. But I cannot communicate with other network.
brctl showstp br-lan command shows:
root@OpenWrt:~# brctl showstp br-lan
br-lan
bridge id 7fff.001f7b6301aa
designated root 7fff.001f7b6301aa
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 2.00 bridge forward delay 2.00
ageing time 300.00
hello timer 0.64 tcn timer 0.00
topology change timer 0.00 gc timer 117.76
flags
eth0
port id 8001 state disabled
designated root 7fff.001f7b6301aa path cost 4
designated bridge 7fff.001f7b6301aa message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth1
port id 8002 state disabled
designated root 7fff.001f7b6301aa path cost 100
designated bridge 7fff.001f7b6301aa message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
The default br-lan bridge interface is up by default, and both eth0 and eth1 is added as shown above. I cannot ping from eth0 or eth1 to this eth2 How this can be resolved ?