summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroki Utsunomiya2026-04-03 15:36:28 +0000
committerHauke Mehrtens2026-06-25 19:54:05 +0000
commit82d7ed7fbca23f16e361fc6c0b5088c39bcd8fb5 (patch)
treeb241715b24ac328c5f43dc3e3e19d1881983fe8f
parentac692d051e3d841975193291e7ff8811d45a6bdd (diff)
downloadopenwrt-82d7ed7fbca23f16e361fc6c0b5088c39bcd8fb5.tar.gz
ramips: add support for I-O DATA WN-AX2033GR2
I-O DATA WN-AX2033GR2 is roughly the same as I-O DATA WN-AX2033GR. The difference is the Flash Memory (Macronix MX30LF1G18AC). Specification ============= - SoC: MediaTek MT7621A - RAM: DDR3 128 MiB - Flash Memory: NAND 128 MiB (Macronix MX30LF1G18AC) - Wi-Fi: MediaTek MT7603E - Wi-Fi: MediaTek MT7615 - Ethernet: 5x 10 Mbps / 100 Mbps / 1000 Mbps (1x WAN, 4x LAN) - LED: 2x green LED - Input: 2x tactile switch, 1x slide switch - Power: DC 12V Flash instruction ================= 1. Open the router management page (192.168.0.1). 2. Update router firmware using "initramfs-kernel.bin". 3. After updating, run sysupgrade with "sysupgrade.bin". Signed-off-by: Hiroki Utsunomiya <hu-git-ja@proton.me> Link: https://github.com/openwrt/openwrt/pull/22762 (cherry picked from commit 44f408aa31c62929119b35b5ff451bd9fe5c26bf) Signed-off-by: Hiroki Utsunomiya <hu-git-ja@proton.me> Link: https://github.com/openwrt/openwrt/pull/23387 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/ramips/dts/mt7621_iodata_wn-ax2033gr2.dts36
-rw-r--r--target/linux/ramips/image/mt7621.mk9
-rw-r--r--target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh1
3 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax2033gr2.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax2033gr2.dts
new file mode 100644
index 0000000000..eb657ae87b
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax2033gr2.dts
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "mt7621_iodata_wn-xx-xr.dtsi"
+
+/ {
+ compatible = "iodata,wn-ax2033gr2", "mediatek,mt7621-soc";
+ model = "I-O DATA WN-AX2033GR2";
+};
+
+&partitions {
+ partition@6b00000 {
+ label = "Backup";
+ reg = <0x6b00000 0x1480000>;
+ read-only;
+ };
+};
+
+&pcie0 {
+ wifi@0,0 {
+ compatible = "mediatek,mt76";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
+ ieee80211-freq-limit = <2400000 2483000>;
+ };
+};
+
+&pcie1 {
+ wifi@0,0 {
+ compatible = "mediatek,mt76";
+ reg = <0x0000 0 0 0 0>;
+ nvmem-cells = <&eeprom_factory_8000>;
+ nvmem-cell-names = "eeprom";
+ ieee80211-freq-limit = <5000000 5710000>;
+ };
+};
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 9830112b6e..26262eeb93 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -1753,6 +1753,15 @@ define Device/iodata_wn-ax2033gr
endef
TARGET_DEVICES += iodata_wn-ax2033gr
+define Device/iodata_wn-ax2033gr2
+ $(Device/iodata_nand)
+ DEVICE_MODEL := WN-AX2033GR2
+ KERNEL_INITRAMFS := $(KERNEL_DTB) | loader-kernel | lzma | \
+ uImage lzma -M 0x434f4d42 -n '3.10(XBH.0)b50' | iodata-mstc-header
+ DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615-firmware -uboot-envtools
+endef
+TARGET_DEVICES += iodata_wn-ax2033gr2
+
define Device/iodata_wn-deax1800gr
$(Device/dsa-migration)
DEVICE_VENDOR := I-O DATA
diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
index f81d5102fb..a5ebd3af1d 100644
--- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh
@@ -177,6 +177,7 @@ platform_do_upgrade() {
;;
iodata,wn-ax1167gr2|\
iodata,wn-ax2033gr|\
+ iodata,wn-ax2033gr2|\
iodata,wn-dx1167r|\
iodata,wn-dx2033gr)
iodata_mstc_set_flag "debugflag" "factory" "0xfe75" "0,1" "1"