<div dir="ltr">Ah.... I forgot to add ' From: <span style="font-size:14px">盛凯 <shengkai81@</span><a href="http://gmail.com/" target="_blank" style="font-size:14px">gmail.com</a><span style="font-size:14px">> ' in the patch.</span><div><span style="font-size:14px">I think I needn't submit this patch again.but please let me know if I have to do this:-D</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-06 8:15 GMT+08:00 éƒä¼ 鈜 <span dir="ltr"><<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">First of all,this patch is not created by me.I just help him to send this patch:-D<br>
<br>
MicroWRT is an wireless router with 2 USB,1 ethernet port. It<br>
has a 16M flash and 64M DDR2 RAM. You can use most interface, such as<br>
i2c, SPI, i2s and PCIe. Besides that there are three expansion borad to<br>
combine with the core board. The detailed information, please refer to<br>
<a href="https://www.microduino.cc/wiki/index.php?title=Main_Page" target="_blank">https://www.microduino.cc/wiki/index.php?title=Main_Page</a><br>
<br>
This patch adds support for it.<br>
Because there is only one port,so disabled VLAN and use eth0 as lan<br>
port. and only a power LED control by power pin.<br>
Signed-off-by: 盛凯 <shengkai81 at <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
---<br>
 .../linux/ramips/base-files/etc/board.d/02_network |  1 +<br>
 target/linux/ramips/base-files/lib/ramips.sh    |  3 +<br>
 .../ramips/base-files/lib/upgrade/platform.sh   |  1 +<br>
 target/linux/ramips/dts/MicroWRT.dts        | 107 +++++++++++++++++++++<br>
 target/linux/ramips/image/Makefile         |  2 +<br>
 target/linux/ramips/mt7620/profiles/<a href="http://microwrt.mk" target="_blank">microwrt.mk</a>  | 12 +++<br>
 6 files changed, 126 insertions(+)<br>
 create mode 100644 target/linux/ramips/dts/MicroWRT.dts<br>
 create mode 100644 target/linux/ramips/mt7620/profiles/<a href="http://microwrt.mk" target="_blank">microwrt.mk</a><br>
<br>
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network<br>
index d4ec19d..2035ab0 100755<br>
--- a/target/linux/ramips/base-files/etc/board.d/02_network<br>
+++ b/target/linux/ramips/base-files/etc/board.d/02_network<br>
@@ -45,6 +45,7 @@ ramips_setup_interfaces()<br>
<br>
    3g150b | \<br>
    3g300m | \<br>
+Â Â Â Â microwrt | \<br>
    w150m | \<br>
    zte-q7 | \<br>
    all0256n | \<br>
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh<br>
index fc6eb37..d115b4f 100755<br>
--- a/target/linux/ramips/base-files/lib/ramips.sh<br>
+++ b/target/linux/ramips/base-files/lib/ramips.sh<br>
@@ -202,6 +202,9 @@ ramips_board_detect() {<br>
    *"Planex MZK-750DHP")<br>
        name="mzk-750dhp"<br>
        ;;<br>
+Â Â Â Â *"MakerModule MicroWRT")<br>
+Â Â Â Â Â Â Â Â name="microwrt"<br>
+Â Â Â Â Â Â Â Â ;;<br>
    *"NBG-419N")<br>
        name="nbg-419n"<br>
        ;;<br>
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
index a5773b5..57a339e 100755<br>
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
@@ -60,6 +60,7 @@ platform_check_image() {<br>
    m2m | \<br>
    m3 | \<br>
    m4 | \<br>
+Â Â Â Â microwrt | \<br>
    mlw221 | \<br>
    mlwg2 | \<br>
    mofi3500-3gn | \<br>
diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts<br>
new file mode 100644<br>
index 0000000..8088ccb<br>
--- /dev/null<br>
+++ b/target/linux/ramips/dts/MicroWRT.dts<br>
@@ -0,0 +1,107 @@<br>
+/dts-v1/;<br>
+<br>
+/include/ "mt7620a.dtsi"<br>
+<br>
+/ {<br>
+Â Â Â Â compatible = "microwrt", "ralink,mt7620a-soc";<br>
+Â Â Â Â model = "MakerModule MicroWRT";<br>
+<br>
+Â Â Â Â chosen {<br>
+Â Â Â Â Â Â Â Â bootargs = "console=ttyS0,115200";<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â palmbus@10000000 {<br>
+Â Â Â Â Â Â Â Â gpio2: gpio@660 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â status = "okay";<br>
+Â Â Â Â Â Â Â Â };<br>
+<br>
+Â Â Â Â Â Â Â Â gpio3: gpio@688 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â status = "okay";<br>
+Â Â Â Â Â Â Â Â };<br>
+<br>
+Â Â Â Â Â Â Â Â spi@b00 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â status = "okay";<br>
+<br>
+Â Â Â Â Â Â Â Â Â Â Â Â m25p80@0 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #address-cells = <1>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #size-cells = <1>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â compatible = "w25q128";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â reg = <0 0>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â linux,modalias = "m25p80", "w25q128";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â spi-max-frequency = <10000000>;<br>
+<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â partition@0 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â label = "u-boot";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â reg = <0x0 0x30000>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â read-only;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â partition@30000 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â label = "u-boot-env";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â reg = <0x30000 0x10000>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â read-only;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â factory: partition@40000 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â label = "factory";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â reg = <0x40000 0x10000>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â read-only;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â partition@50000 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â label = "firmware";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â reg = <0x50000 0xfb0000>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â ehci@101c0000 {<br>
+Â Â Â Â Â Â Â Â status = "okay";<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â ohci@101c1000 {<br>
+Â Â Â Â Â Â Â Â status = "okay";<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â pcie@10140000 {<br>
+Â Â Â Â Â Â Â Â status = "okay";<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â ethernet@10100000 {<br>
+Â Â Â Â Â Â Â Â pinctrl-names = "default";<br>
+Â Â Â Â Â Â Â Â pinctrl-0 = <&ephy_pins>;<br>
+Â Â Â Â Â Â Â Â mtd-mac-address = <&factory 0x4>;<br>
+Â Â Â Â Â Â Â Â ralink,port-map = "llllw";<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â wmac@10180000 {<br>
+Â Â Â Â Â Â Â Â ralink,mtd-eeprom = <&factory 0>;<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â pinctrl {<br>
+Â Â Â Â Â Â Â Â state_default: pinctrl0 {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â default {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ralink,group = "wled", "i2c", "wdt", "uartf";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ralink,function = "gpio";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â };<br>
+<br>
+Â Â Â Â gpio-keys-polled {<br>
+Â Â Â Â Â Â Â Â compatible = "gpio-keys-polled";<br>
+Â Â Â Â Â Â Â Â #address-cells = <1>;<br>
+Â Â Â Â Â Â Â Â #size-cells = <0>;<br>
+Â Â Â Â Â Â Â Â poll-interval = <20>;<br>
+Â Â Â Â Â Â Â Â reset {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â label = "reset";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â gpios = <&gpio0 1 1>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â linux,code = <0x198>;<br>
+Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â Â Â Â Â wps {<br>
+Â Â Â Â Â Â Â Â Â Â Â Â label = "wps";<br>
+Â Â Â Â Â Â Â Â Â Â Â Â gpios = <&gpio0 2 1>;<br>
+Â Â Â Â Â Â Â Â Â Â Â Â linux,code = <0x211>;<br>
+Â Â Â Â Â Â Â Â };<br>
+Â Â Â Â };<br>
+Â Â };<br>
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile<br>
index 743f7b4..30d9743 100644<br>
--- a/target/linux/ramips/image/Makefile<br>
+++ b/target/linux/ramips/image/Makefile<br>
@@ -865,6 +865,7 @@ Image/Build/Profile/XIAOMI-MIWIFI-MINI=$(call BuildFirmware/Default16M/$(1),$(1)<br>
 Image/Build/Profile/ZTE-Q7=$(call BuildFirmware/Default8M/$(1),$(1),zte-q7,ZTE-Q7)<br>
 Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05)<br>
 Image/Build/Profile/ArcherC20i=$(call BuildFirmware/Tplink/$(1),$(1),ArcherC20i,ArcherC20i)<br>
+Image/Build/Profile/MicroWRT=$(call BuildFirmware/Default16M/$(1),$(1),microwrt,MicroWRT)<br>
<br>
<br>
 ifeq ($(SUBTARGET),mt7620)<br>
@@ -895,6 +896,7 @@ define Image/Build/Profile/Default<br>
    $(call Image/Build/Profile/ZTE-Q7,$(1))<br>
    $(call Image/Build/Profile/ZBT-WA05,$(1))<br>
    $(call Image/Build/Profile/ArcherC20i,$(1))<br>
+Â Â Â Â $(call Image/Build/Profile/MicroWRT,$(1))<br>
 endef<br>
 endif<br>
<br>
diff --git a/target/linux/ramips/mt7620/profiles/<a href="http://microwrt.mk" target="_blank">microwrt.mk</a> b/target/linux/ramips/mt7620/profiles/<a href="http://microwrt.mk" target="_blank">microwrt.mk</a><br>
new file mode 100644<br>
index 0000000..e1e944b<br>
--- /dev/null<br>
+++ b/target/linux/ramips/mt7620/profiles/<a href="http://microwrt.mk" target="_blank">microwrt.mk</a><br>
@@ -0,0 +1,11 @@<br>
+Â Â define Profile/MicroWRT<br>
+Â Â Â Â NAME:=MakerModule MicroWRT<br>
+Â Â Â Â PACKAGES:=\<br>
+Â Â Â Â Â Â kmod-usb-core kmod-usb2 kmod-usb-ohci<br>
+Â Â endef<br>
+<br>
+Â Â define Profile/MicroWRT/Description<br>
+Â Â Â Â Support for MicroWRT<br>
+Â Â endef<br>
+Â Â $(eval $(call Profile,MicroWRT))<br>
+<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.0<br>
<br>
</font></span></blockquote></div><br></div>