<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 12:34 PM, John Crispin <span dir="ltr"><<a href="mailto:blogic@openwrt.org" target="_blank">blogic@openwrt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">lets try to figure out what they changed by comparing the sercomm uboot<br>
sources of the unit with RTSDK original<br>
<span><br></span></blockquote><div><div class="gmail_default" style="font-size:small"> AFAICT the source downloaded from Netgear only contains the uboot binary and not the source code.</div><div class="gmail_default" style="font-size:small">(WNDR3700v5_boot_v113.bin)</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>
<br>
On 28/03/2016 17:58, L. D. Pinney wrote:<br>
> Sercomm hacked bootloader replaced with my own from : <a href="https://github.com/gnubee-git/GnuBee-MT7621-uboot.git" rel="noreferrer" target="_blank">https://github.com/gnubee-git/GnuBee-MT7621-uboot.git</a><br>
><br>
> Relevent files and instructions can be downloaded from : <a href="https://drive.google.com/open?id=0B0CKglNyN0URM2FhVDBpNkVsRlk" rel="noreferrer" target="_blank">https://drive.google.com/open?id=0B0CKglNyN0URM2FhVDBpNkVsRlk</a><br>
><br>
> Some Devices are 'uncooperative' Reset and WPS switches, and LEDs other than power.<br>
><br>
> Radios are still non-functional. (MT7662E and MT7603EN)<br>
><br>
> Device has the single-core MediaTek MT7621S.<br>
><br>
> How should CONFIG_NR_CPUS=2 be set in the kernel config ... most other devices will need CPUS=4 ??<br>
<br>
</span>i think you can override the cpu count via cmdline try maxcpus=2 ?<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">OK I'll try passing that on the cmdline :)</div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div><br>
><br>
> Signed-off-by: L. D. Pinney <<a href="mailto:ldpinney@gmail.com" target="_blank">ldpinney@gmail.com</a>><br>
><br>
> ---<br>
><br>
> target/linux/ramips/base-files/etc/board.d/01_leds | 3 ++<br>
> target/linux/ramips/base-files/etc/board.d/02_network | 1 +<br>
> target/linux/ramips/base-files/etc/diag.sh | 1 +<br>
> target/linux/ramips/base-files/lib/ramips.sh | 3 ++<br>
> target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 +<br>
> target/linux/ramips/dts/WNDR3700V5.dts | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
> target/linux/ramips/image/Makefile | 7 +++-<br>
> target/linux/ramips/mt7621/config-4.4 | 2 +-<br>
> target/linux/ramips/mt7621/profiles/<a href="http://netgear.mk" rel="noreferrer" target="_blank">netgear.mk</a> | 17 ++++++++++<br>
> 9 files changed, 155 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds<br>
> index 5816e60..a396212 100755<br>
> --- a/target/linux/ramips/base-files/etc/board.d/01_leds<br>
> +++ b/target/linux/ramips/base-files/etc/board.d/01_leds<br>
> @@ -264,6 +264,9 @@ whr-600d)<br>
> wnce2001)<br>
> set_wifi_led "$board:green:wlan"<br>
> ;;<br>
> +wndr3700v5)<br>
> + ucidef_set_led_default "power" "POWER" "$board:green:power" "0"<br>
> + ;;<br>
> wt3020)<br>
> ucidef_set_led_default "power" "power" "$board:blue:power" "0"<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 4b65d36..8c804b2 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>
> @@ -81,6 +81,7 @@ ramips_setup_interfaces()<br>
> whr-300hp2|\<br>
> whr-600d|\<br>
> witi|\<br>
> + wndr3700v5|\<br>
> wsr-1166|\<br>
> wsr-600|\<br>
> wt1520|\<br>
> diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh<br>
> index daa7fb1..2f34aff 100644<br>
> --- a/target/linux/ramips/base-files/etc/diag.sh<br>
> +++ b/target/linux/ramips/base-files/etc/diag.sh<br>
> @@ -26,6 +26,7 @@ get_status_led() {<br>
> nbg-419n|\<br>
> pwh2004|\<br>
> wnce2001|\<br>
> + wndr3700v5|\<br>
> x5|\<br>
> x8|\<br>
> xdxrn502j)<br>
> diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh<br>
> index 5f1df7b..e67ac8d 100755<br>
> --- a/target/linux/ramips/base-files/lib/ramips.sh<br>
> +++ b/target/linux/ramips/base-files/lib/ramips.sh<br>
> @@ -454,6 +454,9 @@ ramips_board_detect() {<br>
> *"WNCE2001")<br>
> name="wnce2001"<br>
> ;;<br>
> + *"WNDR3700v5")<br>
> + name="wndr3700v5"<br>
> + ;;<br>
> *"WR512-3GN-like"*)<br>
> name="wr512-3gn"<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 c329dce..db9d7de 100755<br>
> --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
> +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
> @@ -133,6 +133,7 @@ platform_check_image() {<br>
> wli-tx4-ag300n|\<br>
> wmr-300|\<br>
> wnce2001|\<br>
> + wndr3700v5|\<br>
> wr512-3gn|\<br>
> wr6202|\<br>
> wrtnode|\<br>
> diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts<br>
> new file mode 100644<br>
> index 0000000..508ba86<br>
> --- /dev/null<br>
> +++ b/target/linux/ramips/dts/WNDR3700V5.dts<br>
> @@ -0,0 +1,122 @@<br>
> +/dts-v1/;<br>
> +<br>
> +#include "mt7621.dtsi"<br>
> +<br>
> +/ {<br>
> + compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";<br>
> + model = "Netgear WNDR3700v5";<br>
> +<br>
> + memory@0 {<br>
> + device_type = "memory";<br>
> + reg = <0x0 0x8000000>;<br>
> + };<br>
> +<br>
> + chosen {<br>
> + bootargs = "console=ttyS0,57600";<br>
> + };<br>
> +<br>
> + palmbus@1E000000 {<br>
> + spi@b00 {<br>
> + status = "okay";<br>
> +<br>
> + m25p80@0 {<br>
> + #address-cells = <1>;<br>
> + #size-cells = <1>;<br>
> + compatible = "mx25l12805d";<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>
> + };<br>
> +<br>
> + partition@30000 {<br>
> + label = "u-boot-env";<br>
> + reg = <0x30000 0x10000>;<br>
> + read-only;<br>
> + };<br>
> +<br>
> + factory: partition@f30000 {<br>
> + label = "factory";<br>
> + reg = <0xf30000 0x10000>;<br>
> + read-only;<br>
> + };<br>
> +<br>
> + partition@50000 {<br>
> + label = "firmware";<br>
> + reg = <0x50000 0xfb0000>;<br>
> + };<br>
> + };<br>
> + };<br>
> + };<br>
> +<br>
> + pcie@1e140000 {<br>
> + status = "okay";<br>
> +<br>
> + pcie0 {<br>
> + mt76@0,0 {<br>
> + reg = <0x0000 0 0 0 0>;<br>
> + device_type = "pci";<br>
> + mediatek,mtd-eeprom = <&factory 0x0004>;<br>
> + mediatek,5ghz = <0>;<br>
> + };<br>
> + };<br>
> +<br>
> + pcie2 {<br>
> + mt76@2,0 {<br>
> + reg = <0x1000 0 0 0 0>;<br>
> + device_type = "pci";<br>
> + mediatek,mtd-eeprom = <&factory 0x8004>;<br>
> + mediatek,2ghz = <0>;<br>
> + };<br>
> + };<br>
> + };<br>
> +<br>
> + ethernet@1e100000 {<br>
> + mtd-mac-address = <&factory 0x0000000c>;<br>
> + };<br>
> +<br>
> + pinctrl {<br>
> + state_default: pinctrl0 {<br>
> + gpio {<br>
> + ralink,group = "rgmii2", "mdio", "wdt";<br>
> + ralink,function = "gpio";<br>
> + };<br>
> + };<br>
> + };<br>
> +<br>
> + gpio-leds {<br>
> + compatible = "gpio-leds";<br>
> +<br>
> + power {<br>
> + label = "wndr3700v5:green:power";<br>
> + gpios = <&gpio0 18 0>;<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>
> +<br>
> + rfkill {<br>
> + label = "rfkill";<br>
> + gpios = <&gpio0 8 0>;<br>
> + linux,code = <0xf7>;<br>
> + };<br>
> + };<br>
> +<br>
> + gpio_export {<br>
> + compatible = "gpio-export";<br>
> + #size-cells = <0>;<br>
> +<br>
> + usbpower {<br>
> + gpio-export,name = "usbpower";<br>
> + gpio-export,output = <1>;<br>
> + gpios = <&gpio0 10 1>;<br>
> + };<br>
> + };<br>
> +};<br>
> diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile<br>
> index 0cfb8fb..a25f025 100644<br>
> --- a/target/linux/ramips/image/Makefile<br>
> +++ b/target/linux/ramips/image/Makefile<br>
> @@ -1058,7 +1058,7 @@ endif<br>
> #<br>
><br>
> ifeq ($(SUBTARGET),mt7621)<br>
> - TARGET_DEVICES += mt7621 wsr-600 wsr-1166 dir-860l-b1 firewrt pbr-m1 re6500 sap-g3200u3 ubnt-erx witi wf-2881 zbt-wg2626<br>
> + TARGET_DEVICES += mt7621 wsr-600 wsr-1166 dir-860l-b1 firewrt pbr-m1 re6500 sap-g3200u3 ubnt-erx witi wf-2881 wndr3700v5 zbt-wg2626<br>
> endif<br>
><br>
> define Device/mt7621<br>
> @@ -1115,6 +1115,11 @@ define Device/witi<br>
> IMAGE_SIZE := $(ralink_default_fw_size_16M)<br>
> endef<br>
><br>
> +define Device/wndr3700v5<br>
> + DTS := WNDR3700V5<br>
> + IMAGE_SIZE := $(ralink_default_fw_size_16M)<br>
> +endef<br>
> +<br>
> define Device/zbt-wg2626<br>
> DTS := ZBT-WG2626<br>
> IMAGE_SIZE := $(ralink_default_fw_size_16M)<br>
> diff --git a/target/linux/ramips/mt7621/config-4.4 b/target/linux/ramips/mt7621/config-4.4<br>
> index 862c8e9..6d93c1d 100644<br>
> --- a/target/linux/ramips/mt7621/config-4.4<br>
> +++ b/target/linux/ramips/mt7621/config-4.4<br>
> @@ -179,7 +179,7 @@ CONFIG_NET_MEDIATEK_SOC=y<br>
> CONFIG_NET_VENDOR_MEDIATEK=y<br>
> CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y<br>
> # CONFIG_NO_IOPORT_MAP is not set<br>
> -CONFIG_NR_CPUS=4<br>
> +CONFIG_NR_CPUS=2<br>
> CONFIG_OF=y<br>
> CONFIG_OF_ADDRESS=y<br>
> CONFIG_OF_ADDRESS_PCI=y<br>
> diff --git a/target/linux/ramips/mt7621/profiles/<a href="http://netgear.mk" rel="noreferrer" target="_blank">netgear.mk</a> b/target/linux/ramips/mt7621/profiles/<a href="http://netgear.mk" rel="noreferrer" target="_blank">netgear.mk</a><br>
> new file mode 100644<br>
> index 0000000..05802a2<br>
> --- /dev/null<br>
> +++ b/target/linux/ramips/mt7621/profiles/<a href="http://netgear.mk" rel="noreferrer" target="_blank">netgear.mk</a><br>
> @@ -0,0 +1,17 @@<br>
> +#<br>
> +# Copyright (C) 2015 OpenWrt.org<br>
> +#<br>
> +# This is free software, licensed under the GNU General Public License v2.<br>
> +# See /LICENSE for more information.<br>
> +#<br>
> +<br>
> +define Profile/WNDR3700V5<br>
> + NAME:=Netgear WNDR3700v5<br>
> + PACKAGES:=\<br>
> + kmod-usb-core kmod-usb3<br>
> +endef<br>
> +<br>
> +define Profile/WNDR3700V5/Description<br>
> + Package set compatible with the Netgear WNDR3700v5.<br>
> +endef<br>
> +$(eval $(call Profile,WNDR3700V5))<br>
</div></div>> _______________________________________________<br>
> openwrt-devel mailing list<br>
> <a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
> <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
><br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div></div>