Skip to content

Commit

Permalink
add wr841-mod16/64 support
Browse files Browse the repository at this point in the history
wr841-mod16/64 dts file

added wr841-mod16/64

fixed typo
  • Loading branch information
misanthropos committed Jun 30, 2024
1 parent ec72498 commit 04fb37b
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patches/openwrt/0001-add-wr841-16rom64ram.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From: Richard Fröhning <misanthropos@gmx.de>
Date: Tue, 23 Apr 2024 16:58:34 +0200
Subject: add wr841-16rom64ram

diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk
index fed572c884c75bd21081c7c22dd4652ecefdd993..11d20c877cd865bf08890f27ee77e67fed65c761 100644
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -778,6 +778,15 @@ define Device/tplink_tl-wr810n-v2
endef
TARGET_DEVICES += tplink_tl-wr810n-v2

+define Device/tplink_tl-wr841-rom16ram64-v10
+ $(Device/tplink-16mlzma)
+ SOC := qca9533
+ DEVICE_MODEL := TL-WR841N/ND MOD16/64
+ DEVICE_VARIANT := v10
+ TPLINK_HWID := 0x08411610
+endef
+TARGET_DEVICES += tplink_tl-wr841-rom16ram64-v10
+
define Device/tplink_tl-wr841hp-v2
$(Device/tplink-8mlzma)
SOC := ar9344
24 changes: 24 additions & 0 deletions patches/openwrt/0007-adjust-to-16-64MB-for-841v10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From: Richard Fröhning <misanthropos@gmx.de>
Date: Sat, 10 Sep 2022 11:21:13 +0200
Subject: adjust to 16/64MB for 841v10

diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
index c9c109ee392bfb00dd4b4373c7ae8a4d30982aeb..cefaf99bc6cc0dc79138bb0a75c395a6122a672b 100644
--- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
+++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
@@ -91,12 +91,12 @@
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
- reg = <0x020000 0x3d0000>;
+ reg = <0x020000 0xfd0000>;
};

- art: partition@3f0000 {
+ art: partition@ff0000 {
label = "art";
- reg = <0x3f0000 0x010000>;
+ reg = <0xff0000 0x010000>;
read-only;
};
};
25 changes: 25 additions & 0 deletions patches/openwrt/0010-dts-file-for-wr841-mod16-64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From: Richard Fröhning <misanthropos@gmx.de>
Date: Tue, 23 Apr 2024 19:56:10 +0200
Subject: dts file for wr841-mod16/64

diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841-rom16ram64-v10.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-rom16ram64-v10.dts
new file mode 100644
index 0000000000000000000000000000000000000000..80b828abd6015b4ef060c186bb5496028fce155f
--- /dev/null
+++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841-rom16ram64-v10.dts
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qca9533_tplink_tl-wr841.dtsi"
+
+/ {
+ compatible = "tplink,tl-wr841-rom16ram64-v10", "qca,qca9533";
+ model = "TP-Link TL-WR841N/ND MOD16/64 v10";
+
+ aliases {
+ led-boot = &led_qss;
+ led-failsafe = &led_qss;
+ led-running = &led_qss;
+ led-upgrade = &led_qss;
+ };
+};
2 changes: 2 additions & 0 deletions targets/ath79-generic
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ device('tp-link-tl-wdr4300-v1', 'tplink_tl-wdr4300-v1')

device('tp-link-tl-wr810n-v1', 'tplink_tl-wr810n-v1')

device('tp-link-tl-wr841-rom16ram64-v10', 'tplink_tl-wr841-rom16ram64-v10')

device('tp-link-tl-wr842n-v3', 'tplink_tl-wr842n-v3', {
manifest_aliases = {
'tp-link-tl-wr842n-nd-v3', -- upgrade from OpenWrt 19.07
Expand Down

0 comments on commit 04fb37b

Please sign in to comment.