I am trying to add a new board based on mediatek MT76x8 chipset. I copied a working config from mediatek smart-link-it 7688 removed the serial-alias in the copied dts-file, changed the wifi-led config and tried to add a switch config for the embedded rt305x switch. So far my problem is that I dont understand the actual ucidef config for the switch (board.d/network). I tried a lot of things but everything seems to be wrong. Here are a few information regarding board/switch:

There seem to be 7 ports - 6 is connected to cpu/eth0
                                         - 5 seems to be not connected(?!)
                                         - ports 1 to 4 should be lan/vlan 2 (eth0.2 ?) or 1 (eth0.1)
                                         - port 0 should be wan/vlan1 (eth0.1 ?) or 2 (eth0.2)

I tried the following: ucidef_add_switch "switch0" "0:wan 1:lan 2:lan 3:lan 4:lan 6t@eth0" (added new board rm08)


                               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                               ucidef_add_switch "switch0" "1" "1"
                               ucidef_add_vlan "1" "1 2 3 4 6t"
                               ucidef_add_vlan "2" "0 6t"


                               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                               ucidef_add_switch "switch0" "0:wan 1:lan 2:lan 3:lan 4:lan 6t@eth0"

Would be nice if someone could give me a few hints regarding this problem.

Thanks a lot for your efforts!