ramips: add support for MikroTik hEX v3 (RB750Gr3)
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index c8b57ca64ed3d61e349ee1c144a13692fe506f17..ece48c08e0cf733de614374a20cc5bcc073711bf 100755 (executable)
@@ -24,8 +24,7 @@ ramips_setup_rt3x5x_vlans()
                        lanports="$port:lan $lanports"
                fi
        done
-       ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
-       ucidef_add_switch "rt305x" $lanports $wanports "6@eth0"
+       ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
 }
 
 ramips_setup_interfaces()
@@ -59,7 +58,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
-       3g-6200nl|\
        mlw221|\
        mr-102n)
                ucidef_set_interface_lan "eth0.2"
@@ -84,8 +82,10 @@ ramips_setup_interfaces()
        oy-0001|\
        pbr-m1|\
        psg1208|\
+       psg1218|\
        sap-g3200u3|\
        sk-wb8|\
+       vr500|\
        wf-2881|\
        whr-300hp2|\
        whr-600d|\
@@ -134,6 +134,7 @@ ramips_setup_interfaces()
        jhr-n825r|\
        jhr-n926r|\
        mzk-wdpr|\
+       rb750gr3|\
        rt-n14u|\
        ubnt-erx|\
        ur-326n4g|\
@@ -355,6 +356,10 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR)
                wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR)
                ;;
+       vr500)
+               lan_mac=$(mtd_get_mac_binary factory 57344)
+               wan_mac=$(mtd_get_mac_binary factory 57350)
+               ;;
        w306r-v20)
                lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 5)