Re: [OpenWrt-Devel] [PATCH] ramips:Add support for MakerModule MicroWRT
Hi, comments inline On 06/04/2015 02:15, 郭传鈜 wrote: First of all,this patch is not created by me.I just help him to send this patch:-D MicroWRT is an wireless router with 2 USB,1 ethernet port. It has a 16M flash and 64M DDR2 RAM. You can use most interface, such as i2c, SPI, i2s and PCIe. Besides that there are three expansion borad to combine with the core board. The detailed information, please refer to https://www.microduino.cc/wiki/index.php?title=Main_Page This patch adds support for it. Because there is only one port,so disabled VLAN and use eth0 as lan port. and only a power LED control by power pin. Signed-off-by: 盛凯 shengkai81 at gmail.com --- .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/MicroWRT.dts | 107 + target/linux/ramips/image/Makefile | 2 + target/linux/ramips/mt7620/profiles/microwrt.mk| 12 +++ 6 files changed, 126 insertions(+) create mode 100644 target/linux/ramips/dts/MicroWRT.dts create mode 100644 target/linux/ramips/mt7620/profiles/microwrt.mk diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index d4ec19d..2035ab0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -45,6 +45,7 @@ ramips_setup_interfaces() 3g150b | \ 3g300m | \ + microwrt | \ there is a space here w150m | \ zte-q7 | \ all0256n | \ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index fc6eb37..d115b4f 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -202,6 +202,9 @@ ramips_board_detect() { *Planex MZK-750DHP) name=mzk-750dhp ;; +*MakerModule MicroWRT) +name=microwrt +;; spaces here aswell, use tabs please *NBG-419N) name=nbg-419n ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a5773b5..57a339e 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -60,6 +60,7 @@ platform_check_image() { m2m | \ m3 | \ m4 | \ +microwrt | \ spaces here aswell, use tabs please the rest looks good. John mlw221 | \ mlwg2 | \ mofi3500-3gn | \ diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts new file mode 100644 index 000..8088ccb --- /dev/null +++ b/target/linux/ramips/dts/MicroWRT.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +/include/ mt7620a.dtsi + +/ { + compatible = microwrt, ralink,mt7620a-soc; + model = MakerModule MicroWRT; + + chosen { + bootargs = console=ttyS0,115200; + }; + + palmbus@1000 { + gpio2: gpio@660 { + status = okay; + }; + + gpio3: gpio@688 { + status = okay; + }; + + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q128; + reg = 0 0; + linux,modalias = m25p80, w25q128; + spi-max-frequency = 1000; + + partition@0 { + label = u-boot; + reg = 0x0 0x3; + read-only; + }; + + partition@3 { + label = u-boot-env; + reg = 0x3 0x1; + read-only; + }; + + factory: partition@4 { + label = factory; + reg = 0x4 0x1; + read-only; + }; + + partition@5 { + label = firmware; + reg = 0x5 0xfb; + }; + }; + }; + }; + + ehci@101c { + status = okay; + }; + + ohci@101c1000 {
Re: [OpenWrt-Devel] [PATCH] ramips:Add support for MakerModule MicroWRT
Sorry please don't accept the v2 patch because Sheng Kai told me that the flash layout in his patch is totally wrong :-( 2015-04-06 14:53 GMT+08:00 John Crispin blo...@openwrt.org: Hi, comments inline On 06/04/2015 02:15, 郭传鈜 wrote: First of all,this patch is not created by me.I just help him to send this patch:-D MicroWRT is an wireless router with 2 USB,1 ethernet port. It has a 16M flash and 64M DDR2 RAM. You can use most interface, such as i2c, SPI, i2s and PCIe. Besides that there are three expansion borad to combine with the core board. The detailed information, please refer to https://www.microduino.cc/wiki/index.php?title=Main_Page This patch adds support for it. Because there is only one port,so disabled VLAN and use eth0 as lan port. and only a power LED control by power pin. Signed-off-by: 盛凯 shengkai81 at gmail.com --- .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/MicroWRT.dts | 107 + target/linux/ramips/image/Makefile | 2 + target/linux/ramips/mt7620/profiles/microwrt.mk| 12 +++ 6 files changed, 126 insertions(+) create mode 100644 target/linux/ramips/dts/MicroWRT.dts create mode 100644 target/linux/ramips/mt7620/profiles/microwrt.mk diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index d4ec19d..2035ab0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -45,6 +45,7 @@ ramips_setup_interfaces() 3g150b | \ 3g300m | \ + microwrt | \ there is a space here w150m | \ zte-q7 | \ all0256n | \ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index fc6eb37..d115b4f 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -202,6 +202,9 @@ ramips_board_detect() { *Planex MZK-750DHP) name=mzk-750dhp ;; +*MakerModule MicroWRT) +name=microwrt +;; spaces here aswell, use tabs please *NBG-419N) name=nbg-419n ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a5773b5..57a339e 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -60,6 +60,7 @@ platform_check_image() { m2m | \ m3 | \ m4 | \ +microwrt | \ spaces here aswell, use tabs please the rest looks good. John mlw221 | \ mlwg2 | \ mofi3500-3gn | \ diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts new file mode 100644 index 000..8088ccb --- /dev/null +++ b/target/linux/ramips/dts/MicroWRT.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +/include/ mt7620a.dtsi + +/ { + compatible = microwrt, ralink,mt7620a-soc; + model = MakerModule MicroWRT; + + chosen { + bootargs = console=ttyS0,115200; + }; + + palmbus@1000 { + gpio2: gpio@660 { + status = okay; + }; + + gpio3: gpio@688 { + status = okay; + }; + + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q128; + reg = 0 0; + linux,modalias = m25p80, w25q128; + spi-max-frequency = 1000; + + partition@0 { + label = u-boot; + reg = 0x0 0x3; + read-only; + }; + + partition@3 { + label = u-boot-env; + reg = 0x3 0x1; + read-only; + }; + + factory: partition@4 { + label = factory; + reg = 0x4 0x1; + read-only; + }; + + partition@5 { +
Re: [OpenWrt-Devel] [PATCH] ramips:Add support for MakerModule MicroWRT
Ah I forgot to add ' From: 盛凯 shengka...@gmail.com ' in the patch. I think I needn't submit this patch again.but please let me know if I have to do this:-D 2015-04-06 8:15 GMT+08:00 郭传鈜 gch981...@gmail.com: First of all,this patch is not created by me.I just help him to send this patch:-D MicroWRT is an wireless router with 2 USB,1 ethernet port. It has a 16M flash and 64M DDR2 RAM. You can use most interface, such as i2c, SPI, i2s and PCIe. Besides that there are three expansion borad to combine with the core board. The detailed information, please refer to https://www.microduino.cc/wiki/index.php?title=Main_Page This patch adds support for it. Because there is only one port,so disabled VLAN and use eth0 as lan port. and only a power LED control by power pin. Signed-off-by: 盛凯 shengkai81 at gmail.com --- .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/MicroWRT.dts | 107 + target/linux/ramips/image/Makefile | 2 + target/linux/ramips/mt7620/profiles/microwrt.mk| 12 +++ 6 files changed, 126 insertions(+) create mode 100644 target/linux/ramips/dts/MicroWRT.dts create mode 100644 target/linux/ramips/mt7620/profiles/microwrt.mk diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index d4ec19d..2035ab0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -45,6 +45,7 @@ ramips_setup_interfaces() 3g150b | \ 3g300m | \ + microwrt | \ w150m | \ zte-q7 | \ all0256n | \ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index fc6eb37..d115b4f 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -202,6 +202,9 @@ ramips_board_detect() { *Planex MZK-750DHP) name=mzk-750dhp ;; +*MakerModule MicroWRT) +name=microwrt +;; *NBG-419N) name=nbg-419n ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a5773b5..57a339e 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -60,6 +60,7 @@ platform_check_image() { m2m | \ m3 | \ m4 | \ +microwrt | \ mlw221 | \ mlwg2 | \ mofi3500-3gn | \ diff --git a/target/linux/ramips/dts/MicroWRT.dts b/target/linux/ramips/dts/MicroWRT.dts new file mode 100644 index 000..8088ccb --- /dev/null +++ b/target/linux/ramips/dts/MicroWRT.dts @@ -0,0 +1,107 @@ +/dts-v1/; + +/include/ mt7620a.dtsi + +/ { + compatible = microwrt, ralink,mt7620a-soc; + model = MakerModule MicroWRT; + + chosen { + bootargs = console=ttyS0,115200; + }; + + palmbus@1000 { + gpio2: gpio@660 { + status = okay; + }; + + gpio3: gpio@688 { + status = okay; + }; + + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q128; + reg = 0 0; + linux,modalias = m25p80, w25q128; + spi-max-frequency = 1000; + + partition@0 { + label = u-boot; + reg = 0x0 0x3; + read-only; + }; + + partition@3 { + label = u-boot-env; + reg = 0x3 0x1; + read-only; + }; + + factory: partition@4 { + label = factory; + reg = 0x4 0x1; + read-only; + }; + + partition@5 { + label = firmware; + reg = 0x5 0xfb; + }; + }; + }; + };