To increase the uboot bootdelay with stock firmware version 01.01.02.139,
assign to your PC a static ipv4 like 10.0.0.55/24, and reach the router at 10.0.0.2:
python3 exploit.py -t 10.0.0.2 -c "fw_setenv bootdelay 3; fw_saveenv"
The other IPv4 addresses assigned by the router can be viewed in the logs via serial.
Then continue the installation following git-commit.
The device has a MediaTek MT7615E as radio chip which is DBDC, Dual Band Dual Concurrent (see rsdb_dbdc).
Here is an example script to put i.e. in /etc/rc.local to be sure that the device enables DBDC and uses both the 2.4GHz and the 5GHz frquencies with it's radio, otherwise only the 5GHz will be available.
wifi down
sleep 3
echo 0 > /sys/kernel/debug/ieee80211/phy0/mt76/dbdc
echo 1 > /sys/kernel/debug/ieee80211/phy0/mt76/dbdc
sleep 3
wifi up
Optionally enable the use of gmac1 to achieve better performances as described in the commit ramips: mt7621-dts: mux phy0/4 to gmac1 https://git.openwrt.org/openwrt/openwrt/commit/?id=f1c9afd801380a05a91d979b475c76cc0a67caae
Beware that doing this will make unusable the following functionalities:
The following patch - works as is with openwrt snapshot r36406-c618c6a353 - could be applied to modify the dts whether you're building with Buildroot or ImageBuilder
The following patch - works as is with openwrt snapshot r36406-c618c6a353 - could be applied to modify the dts whether you're building with Buildroot or ImageBuilder
diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
index 5cc287f6cc..b6523de6b1 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-127acn.dts
@@ -43,14 +43,16 @@
};
};
-&ports {
- port@2 {
- status = "okay";
- label = "lan2";
- };
+&switch0 {
+ ports {
+ port@2 {
+ status = "okay";
+ label = "lan2";
+ };
- port@3 {
- status = "okay";
- label = "lan1";
+ port@3 {
+ status = "okay";
+ label = "lan1";
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
index dd33e37de2..af58a80fd5 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-130acn.dts
@@ -64,24 +64,26 @@
};
};
-&ports {
- port@0 {
- status = "okay";
- label = "lan1";
- };
+&switch0 {
+ ports {
+ port@0 {
+ status = "okay";
+ label = "lan1";
+ };
- port@1 {
- status = "okay";
- label = "lan2";
- };
+ port@1 {
+ status = "okay";
+ label = "lan2";
+ };
- port@2 {
- status = "okay";
- label = "lan3";
- };
+ port@2 {
+ status = "okay";
+ label = "lan3";
+ };
- port@3 {
- status = "okay";
- label = "lan4";
+ port@3 {
+ status = "okay";
+ label = "lan4";
+ };
};
};
diff --git a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
index e6b7f8c204..0fe2ef28f9 100644
--- a/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
+++ b/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
@@ -136,15 +136,24 @@
};
};
-ðernet {
- pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+&gmac0 {
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
-&gmac0 {
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy4>;
+
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
+ðphy4 {
+ /delete-property/ interrupts;
+};
+
&nand {
status = "okay";
@@ -247,18 +256,7 @@
&state_default {
gpio {
- groups = "rgmii2", "uart3";
+ groups = "uart3";
function = "gpio";
};
};
-
-&switch0 {
- ports: ports {
- port@4 {
- status = "okay";
- label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
- nvmem-cell-names = "mac-address";
- };
- };
-};