<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18702"><BASE target=_blank>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.18702"><BASE 
target=_blank></HEAD>
<BODY 
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV><FONT size=2 face=Verdana>
<DIV><FONT size=2 face=Verdana>
<DIV>From: Tom Deng <2579131212@qq.com> </DIV>
<DIV> </DIV>
<DIV>Adding support for OYE-0001 Wireless Router. </DIV>
<DIV>OYE-0001 is a wireless router made by oyewifi.com. Below is the details: </DIV>
<DIV>MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN. </DIV>
<DIV>Signed-off-by: Tom Deng <2579131212@qq.com> </DIV>
<DIV>--- </DIV>
<DIV>Index: target/linux/ramips/base-files/etc/diag.sh </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/etc/diag.sh    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/base-files/etc/diag.sh    (working copy) </DIV>
<DIV>@@ -185,6 +185,9 @@ </DIV>
<DIV>     f7c027) </DIV>
<DIV>         status_led="belkin:orange:status" </DIV>
<DIV>         ;; </DIV>
<DIV>+    oye-0001) </DIV>
<DIV>+        status_led="oye:green:wifi" </DIV>
<DIV>+        ;; </DIV>
<DIV>     na930) </DIV>
<DIV>         status_led="na930:blue:power" </DIV>
<DIV>         ;; </DIV>
<DIV>Index: target/linux/ramips/base-files/etc/uci-defaults/01_leds </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/etc/uci-defaults/01_leds    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/base-files/etc/uci-defaults/01_leds    (working copy) </DIV>
<DIV>@@ -198,6 +198,10 @@ </DIV>
<DIV>         set_wifi_led "zbtlink:blue:air" </DIV>
<DIV>         set_usb_led "zbtlink:blue:usb" </DIV>
<DIV>         ;; </DIV>
<DIV>+    oye-0001) </DIV>
<DIV>+        ucidef_set_led_default "power" "power" "oye:green:power" "1" </DIV>
<DIV>+        set_wifi_led "oye:green:wifi" </DIV>
<DIV>+        ;; </DIV>
<DIV>     wr8305rt) </DIV>
<DIV>         ucidef_set_led_default "power" "power" "wr8305rt:sys" "1" </DIV>
<DIV>         set_usb_led "wr8305rt:usb" </DIV>
<DIV>Index: target/linux/ramips/base-files/etc/uci-defaults/02_network </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/etc/uci-defaults/02_network    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/base-files/etc/uci-defaults/02_network    (working copy) </DIV>
<DIV>@@ -103,6 +103,7 @@ </DIV>
<DIV>     dir-615-h1 | \ </DIV>
<DIV>     hlk-rm04 | \ </DIV>
<DIV>     mzk-w300nh2 | \ </DIV>
<DIV>+    oye-0001 | \ </DIV>
<DIV>     mzk-750dhp) </DIV>
<DIV>         ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" </DIV>
<DIV>         ucidef_add_switch "switch0" "1" "1" </DIV>
<DIV>@@ -220,6 +221,11 @@ </DIV>
<DIV>         wan_mac=$(mtd_get_mac_binary devdata 7) </DIV>
<DIV>         ;; </DIV>
<DIV>  </DIV>
<DIV>+    oye-0001) </DIV>
<DIV>+        lan_mac=$(mtd_get_mac_binary factory 40) </DIV>
<DIV>+        wan_mac=$(mtd_get_mac_binary factory 46) </DIV>
<DIV>+        ;; </DIV>
<DIV>+ </DIV>
<DIV>     w306r-v20) </DIV>
<DIV>         lan_mac=$(cat /sys/class/net/eth0/address) </DIV>
<DIV>         wan_mac=$(macaddr_add "$lan_mac" 5) </DIV>
<DIV>Index: target/linux/ramips/base-files/lib/preinit/06_set_iface_mac </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac    (revision 0) </DIV>
<DIV>+++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac    (revision 0) </DIV>
<DIV>@@ -0,0 +1,113 @@ </DIV>
<DIV>+# </DIV>
<DIV>+# Copyright (C) 2011 OpenWrt.org </DIV>
<DIV>+# </DIV>
<DIV>+ </DIV>
<DIV>+preinit_set_mac_address() { </DIV>
<DIV>+    local mac </DIV>
<DIV>+ </DIV>
<DIV>+    . /lib/functions.sh </DIV>
<DIV>+    . /lib/ramips.sh </DIV>
<DIV>+ </DIV>
<DIV>+    case $(ramips_board_name) in </DIV>
<DIV>+    3g-6200n |\ </DIV>
<DIV>+    3g-6200nl |\ </DIV>
<DIV>+    3g300m | \ </DIV>
<DIV>+    dir-620-d1 |\ </DIV>
<DIV>+    dir-300-b7 | \ </DIV>
<DIV>+    w150m | \ </DIV>
<DIV>+    mzk-w300nh2 |\ </DIV>
<DIV>+    wl-330n |\ </DIV>
<DIV>+    wl-330n3g |\ </DIV>
<DIV>+    wr8305rt) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary factory 4) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    bc2 |\ </DIV>
<DIV>+    broadway |\ </DIV>
<DIV>+    d105 |\ </DIV>
<DIV>+    dir-620-a1 |\ </DIV>
<DIV>+    esr-9753 |\ </DIV>
<DIV>+    freestation5 |\ </DIV>
<DIV>+    hlk-rm04 | \ </DIV>
<DIV>+    mpr-a1 | \ </DIV>
<DIV>+    mpr-a2 | \ </DIV>
<DIV>+    dir-300-b7 | \ </DIV>
<DIV>+    dir-320-b1 | \ </DIV>
<DIV>+    psr-680w |\ </DIV>
<DIV>+    rt-n56u |\ </DIV>
<DIV>+    sl-r7205) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary factory 4) </DIV>
<DIV>+        mac=$(macaddr_setbit_la "$mac") </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    br-6475nd) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary devdata 13) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    asl26555 |\ </DIV>
<DIV>+    dir-300-b1 |\ </DIV>
<DIV>+    dir-300-b2 |\ </DIV>
<DIV>+    dir-600-b1 |\ </DIV>
<DIV>+    dir-610-a1) </DIV>
<DIV>+                mac=$(mtd_get_mac_binary devdata 16388) </DIV>
<DIV>+                ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+                ;; </DIV>
<DIV>+    cy-swr1100 |\ </DIV>
<DIV>+    dir-645) </DIV>
<DIV>+        mac=$(mtd_get_mac_ascii nvram lanmac) </DIV>
<DIV>+        mac=$(macaddr_setbit_la "$mac") </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    dap-1350) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary devdata 46) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+                ;; </DIV>
<DIV>+    all0239-3g |\ </DIV>
<DIV>+    all0256n |\ </DIV>
<DIV>+    all5002 |\ </DIV>
<DIV>+    all5003 |\ </DIV>
<DIV>+    awm002-evb |\ </DIV>
<DIV>+    carambola |\ </DIV>
<DIV>+    dir-615-h1 |\ </DIV>
<DIV>+    fonera20n |\ </DIV>
<DIV>+    ip2202 |\ </DIV>
<DIV>+    rt-n13u |\ </DIV>
<DIV>+    hw550-3g |\ </DIV>
<DIV>+    nbg-419n |\ </DIV>
<DIV>+    omni-emb |\ </DIV>
<DIV>+    omni-emb-hpm |\ </DIV>
<DIV>+    px4885 |\ </DIV>
<DIV>+    tew-691gr |\ </DIV>
<DIV>+    tew-692gr |\ </DIV>
<DIV>+    w306r-v20 |\ </DIV>
<DIV>+    w502u    |\ </DIV>
<DIV>+    wr6202 |\ </DIV>
<DIV>+    wnce2001 |\ </DIV>
<DIV>+    xdxrn502j) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary factory 40) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    m3 |\ </DIV>
<DIV>+    m4 |\ </DIV>
<DIV>+    x5 |\ </DIV>
<DIV>+    x8) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary factory 4) </DIV>
<DIV>+        mac=$(macaddr_add "$mac" -1) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    oye-0001) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary factory 40) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    wl341v3) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary board-nvram 65440) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    rt-n10-plus) </DIV>
<DIV>+        mac=$(mtd_get_mac_binary devconf 4) </DIV>
<DIV>+        ifconfig eth0 hw ether $mac 2>/dev/null </DIV>
<DIV>+        ;; </DIV>
<DIV>+    esac </DIV>
<DIV>+} </DIV>
<DIV>+ </DIV>
<DIV>+boot_hook_add preinit_main preinit_set_mac_address </DIV>
<DIV>Index: target/linux/ramips/base-files/lib/ramips.sh </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/lib/ramips.sh    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/base-files/lib/ramips.sh    (working copy) </DIV>
<DIV>@@ -322,6 +322,9 @@ </DIV>
<DIV>     *"Zbtlink ZBT-WA05") </DIV>
<DIV>         name="zbt-wa05" </DIV>
<DIV>         ;; </DIV>
<DIV>+    *"OYE-0001") </DIV>
<DIV>+        name="oye-0001" </DIV>
<DIV>+        ;; </DIV>
<DIV>     *"ZBT WR8305RT") </DIV>
<DIV>         name="wr8305rt" </DIV>
<DIV>         ;; </DIV>
<DIV>Index: target/linux/ramips/base-files/lib/upgrade/platform.sh </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/base-files/lib/upgrade/platform.sh    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/base-files/lib/upgrade/platform.sh    (working copy) </DIV>
<DIV>@@ -95,6 +95,7 @@ </DIV>
<DIV>     wmr300 |\ </DIV>
<DIV>     wr8305rt |\ </DIV>
<DIV>     wrtnode |\ </DIV>
<DIV>+    oye-0001 |\ </DIV>
<DIV>     x5 |\ </DIV>
<DIV>     x8 |\ </DIV>
<DIV>     zbt-wa05 |\ </DIV>
<DIV>Index: target/linux/ramips/dts/OYE-0001.dts </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/dts/OYE-0001.dts    (revision 0) </DIV>
<DIV>+++ target/linux/ramips/dts/OYE-0001.dts    (revision 0) </DIV>
<DIV>@@ -0,0 +1,123 @@ </DIV>
<DIV>+/dts-v1/; </DIV>
<DIV>+ </DIV>
<DIV>+/include/ "mt7620a.dtsi" </DIV>
<DIV>+ </DIV>
<DIV>+/ { </DIV>
<DIV>+    compatible = "ralink,mt7620a-soc"; </DIV>
<DIV>+    model = "OYE-0001"; </DIV>
<DIV>+ </DIV>
<DIV>+        chosen { </DIV>
<DIV>+                bootargs = "console=ttyS0,115200"; </DIV>
<DIV>+        }; </DIV>
<DIV>+ </DIV>
<DIV>+    palmbus@10000000 { </DIV>
<DIV>+        gpio2: gpio@660 { </DIV>
<DIV>+            status = "okay"; </DIV>
<DIV>+        }; </DIV>
<DIV>+ </DIV>
<DIV>+        gpio3: gpio@688 { </DIV>
<DIV>+            status = "okay"; </DIV>
<DIV>+        }; </DIV>
<DIV>+ </DIV>
<DIV>+        spi@b00 { </DIV>
<DIV>+            status = "okay"; </DIV>
<DIV>+ </DIV>
<DIV>+            m25p80@0 { </DIV>
<DIV>+                #address-cells = <1>; </DIV>
<DIV>+                #size-cells = <1>; </DIV>
<DIV>+                compatible = "w25q128"; </DIV>
<DIV>+                reg = <0 0>; </DIV>
<DIV>+                linux,modalias = "m25p80", "w25q128"; </DIV>
<DIV>+                spi-max-frequency = <10000000>; </DIV>
<DIV>+ </DIV>
<DIV>+                partition@0 { </DIV>
<DIV>+                    label = "u-boot"; </DIV>
<DIV>+                    reg = <0x0 0x30000>; </DIV>
<DIV>+                    read-only; </DIV>
<DIV>+                }; </DIV>
<DIV>+ </DIV>
<DIV>+                partition@30000 { </DIV>
<DIV>+                    label = "u-boot-env"; </DIV>
<DIV>+                    reg = <0x30000 0x10000>; </DIV>
<DIV>+                    read-only; </DIV>
<DIV>+                }; </DIV>
<DIV>+ </DIV>
<DIV>+                factory: partition@40000 { </DIV>
<DIV>+                    label = "factory"; </DIV>
<DIV>+                    reg = <0x40000 0x10000>; </DIV>
<DIV>+                    read-only; </DIV>
<DIV>+                }; </DIV>
<DIV>+ </DIV>
<DIV>+                partition@50000 { </DIV>
<DIV>+                    label = "firmware"; </DIV>
<DIV>+                    reg = <0x50000 0xfb0000>; </DIV>
<DIV>+                }; </DIV>
<DIV>+ </DIV>
<DIV>+            }; </DIV>
<DIV>+        }; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    pinctrl { </DIV>
<DIV>+        state_default: pinctrl0 { </DIV>
<DIV>+            gpio { </DIV>
<DIV>+                ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; </DIV>
<DIV>+                ralink,function = "gpio"; </DIV>
<DIV>+            }; </DIV>
<DIV>+        }; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    ethernet@10100000 { </DIV>
<DIV>+        pinctrl-names = "default"; </DIV>
<DIV>+        pinctrl-0 = <&ephy_pins>; </DIV>
<DIV>+ </DIV>
<DIV>+        ralink,port-map = "llllw"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    gsw@10110000 { </DIV>
<DIV>+        ralink,port4 = "ephy"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    wmac@10180000 { </DIV>
<DIV>+        ralink,mtd-eeprom = <&factory 0>; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    gpio-leds { </DIV>
<DIV>+        compatible = "gpio-leds"; </DIV>
<DIV>+        powerled { </DIV>
<DIV>+            label = "oye:green:power"; </DIV>
<DIV>+            gpios = <&gpio0 9 1>; </DIV>
<DIV>+        }; </DIV>
<DIV>+        wifiled { </DIV>
<DIV>+            label = "oye:green:wifi"; </DIV>
<DIV>+            gpios = <&gpio3 0 1>; </DIV>
<DIV>+        }; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    sdhci@10130000 { </DIV>
<DIV>+        status = "okay"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    ehci@101c0000 { </DIV>
<DIV>+        status = "okay"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    ohci@101c1000 { </DIV>
<DIV>+        status = "okay"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    pcie@10140000 { </DIV>
<DIV>+        status = "okay"; </DIV>
<DIV>+    }; </DIV>
<DIV>+ </DIV>
<DIV>+    gpio-keys-polled { </DIV>
<DIV>+        compatible = "gpio-keys-polled"; </DIV>
<DIV>+        #address-cells = <1>; </DIV>
<DIV>+        #size-cells = <0>; </DIV>
<DIV>+        poll-interval = <20>; </DIV>
<DIV>+        s1 { </DIV>
<DIV>+            label = "reset"; </DIV>
<DIV>+            gpios = <&gpio0 1 1>; </DIV>
<DIV>+            linux,code = <0x198>; </DIV>
<DIV>+        }; </DIV>
<DIV>+    }; </DIV>
<DIV>+}; </DIV>
<DIV>Index: target/linux/ramips/image/Makefile </DIV>
<DIV>=================================================================== </DIV>
<DIV>--- target/linux/ramips/image/Makefile    (revision 43797) </DIV>
<DIV>+++ target/linux/ramips/image/Makefile    (working copy) </DIV>
<DIV>@@ -724,6 +724,7 @@ </DIV>
<DIV> na930_mtd_size=20971520 </DIV>
<DIV> Image/Build/Profile/NA930=$(call BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size)) </DIV>
<DIV> Image/Build/Profile/MZK-750DHP=$(call BuildFirmware/Default8M/$(1),$(1),mzk-750dhp,MZK-750DHP) </DIV>
<DIV>+Image/Build/Profile/OYE-0001=$(call BuildFirmware/Default16M/$(1),$(1),oye-0001,OYE-0001) </DIV>
<DIV> Image/Build/Profile/Y1=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1,Y1) </DIV>
<DIV> Image/Build/Profile/Y1S=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1s,Y1S) </DIV>
<DIV>  </DIV>
<DIV>@@ -740,6 +741,7 @@ </DIV>
<DIV>     $(call Image/Build/Profile/WHR1166D,$(1)) </DIV>
<DIV>     $(call Image/Build/Profile/MZK-750DHP,$(1)) </DIV>
<DIV>     $(call Image/Build/Profile/NA930,$(1)) </DIV>
<DIV>+    $(call Image/Build/Profile/OYE-0001,$(1)) </DIV>
<DIV>     $(call Image/Build/Profile/Y1,$(1)) </DIV>
<DIV>     $(call Image/Build/Profile/Y1S,$(1)) </DIV>
<DIV> endef </DIV></FONT></DIV></FONT></DIV></BODY></HTML>