ramips: add support for Wavlink WL-WN533A8
[openwrt/staging/chunkeey.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index 3e934899bb4f2437cf73d060d309ce73b39a9140..688c39940d6e5f8e46984d1f7ea3b9c8b75dca34 100644 (file)
@@ -17,6 +17,7 @@ ramips_setup_interfaces()
        tplink,re350-v1|\
        tplink,re500-v1|\
        tplink,re650-v1|\
+       tplink,re650-v2|\
        ubnt,unifi-6-lite|\
        ubnt,unifi-nanohd)
                ucidef_set_interface_lan "lan"
@@ -38,17 +39,27 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
        asiarf,ap7621-nv1|\
+       beeline,smartbox-flash|\
        glinet,gl-mt1300|\
        iptime,a3002mesh|\
        jcg,q20|\
        lenovo,newifi-d1|\
        mikrotik,routerboard-m33g|\
+       oraybox,x3a|\
+       renkforce,ws-wn530hp3-a|\
        xiaomi,mi-router-3g|\
        xiaomi,mi-router-3g-v2|\
        xiaomi,mi-router-4|\
        xiaomi,mi-router-4a-gigabit)
                ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
                ;;
+       bolt,arion)
+               ucidef_set_interfaces_lan_wan "lan" "wan"
+               ucidef_set_interface "eth_data" device "modem.103" protocol "static" ipaddr "10.22.127.222" netmask "255.255.255.255"
+               ucidef_set_interface "eth_om" device "modem.4094" protocol "static" ipaddr "169.254.0.2" netmask "255.255.255.252"
+               uci add_list firewall.@zone[1].network='eth_data'
+               uci add_list firewall.@zone[1].network='eth_om'
+               ;;
        gnubee,gb-pc1|\
        gnubee,gb-pc2)
                ucidef_set_interface_lan "lan1 lan2"
@@ -79,6 +90,7 @@ ramips_setup_interfaces()
        ubnt,usw-flex)
                ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5"
                ;;
+       yuncore,ax820|\
        zyxel,nr7101)
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
@@ -114,6 +126,11 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
                label_mac=$(mtd_get_mac_binary factory 0x4)
                ;;
+       beeline,smartbox-flash)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env eth2macaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env eth3macaddr)
+               label_mac=$lan_mac
+               ;;
        buffalo,wsr-1166dhp)
                local index="$(find_mtd_index "board_data")"
                wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"
@@ -149,6 +166,7 @@ ramips_setup_macs()
                ;;
        jcg,y2|\
        wavlink,wl-wn531a6|\
+       wavlink,wl-wn533a8|\
        winstars,ws-wn583a6|\
        zbtlink,zbt-we1326|\
        zbtlink,zbt-wg3526-16m|\
@@ -179,6 +197,9 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii Config protest_wan_mac)
                label_mac=$lan_mac
                ;;
+       yuncore,ax820)
+               label_mac=$(mtd_get_mac_binary Factory 0x4)
+               ;;
        esac
 
        [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac