Commit 5e6e224e authored by chrissi^'s avatar chrissi^

ar71xx-generic: Add support fpr TL-Link 841 with 8MB and 16MB flash

This patch adds support for some HW version of the TP-Link TL-WR841 with
an upgrade to 8MB or 16MB flash.

This patch was adapted from the Freifunk Hannover site:
https://github.com/freifunkh/site/blob/master/patches/0003-added-TP-Link-TL-WR841ND-N-Devices-for-8M-and-16M-Va.patch
from revision 8fdc73456f3b47418dab613cff7c70347b6b8c40.

Since FFH's patch is intended for gluon master this patch is adapted to
gluon-v2018.2.x's build system.
Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent 670b37bf
From 2734fb40ac15f8db6eadbbd9e3438b7077876424 Mon Sep 17 00:00:00 2001
From: Dark4MD <github.web@manu.li>
Date: Fri, 22 Feb 2019 22:45:24 +0100
Subject: [PATCH] added TP-Link TL-WR841ND/N Devices for 8M and 16M Variants
---
target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 +++
target/linux/ar71xx/image/generic-tp-link.mk | 74 ++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
mode change 100644 => 100755 target/linux/ar71xx/image/generic-tp-link.mk
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index ccbd4e77c3..9c81ed75d0 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -255,6 +255,12 @@ tplink_board_detect() {
[ "$hwid" = '08410002' -a "$mid" = '00000002' ] && hwver=' v1.5'
;;
+ "084108"*)
+ model="TP-Link TL-WR841N/ND Mod (8M)"
+ ;;
+ "084116"*)
+ model="TP-Link TL-WR841N/ND Mod (16M)"
+ ;;
"084200"*)
model="TP-Link TL-WR842N/ND"
;;
diff --git a/target/linux/ar71xx/image/generic-tp-link.mk b/target/linux/ar71xx/image/generic-tp-link.mk
old mode 100644
new mode 100755
index 338b2db2d6..4e5df2c742
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -529,3 +529,77 @@ define Device/tl-wr942n-v1
SUPPORTED_DEVICES := tl-wr942n-v1
endef
TARGET_DEVICES += tl-wr942n-v1
+
+define Device/tl-wr841-v8-8m
+ $(Device/tplink-8mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (8M) v8
+ BOARDNAME := TL-WR841N-v8
+ DEVICE_PROFILE := TLWR8418M
+ TPLINK_HWID := 0x08410808
+endef
+TARGET_DEVICES += tl-wr841-v8-8m
+
+define Device/tl-wr841-v9-8m
+ $(Device/tplink-8mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (8M) v9
+ BOARDNAME := TL-WR841N-v9
+ DEVICE_PROFILE := TLWR8418M
+ TPLINK_HWID := 0x08410809
+endef
+TARGET_DEVICES += tl-wr841-v9-8m
+
+define Device/tl-wr841-v10-8m
+ $(Device/tl-wr841-v9-8m)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (8M) v10
+ TPLINK_HWID := 0x08410810
+endef
+TARGET_DEVICES += tl-wr841-v10-8m
+
+define Device/tl-wr841-v11-8m
+ $(Device/tplink-8mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (8M) v11
+ BOARDNAME := TL-WR841N-v11
+ DEVICE_PROFILE := TLWR8418M
+ TPLINK_HWID := 0x08410811
+ IMAGES += factory-us.bin factory-eu.bin
+ IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
+ IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
+endef
+TARGET_DEVICES += tl-wr841-v11-8m
+
+define Device/tl-wr841-v8-16m
+ $(Device/tplink-16mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (16M) v8
+ BOARDNAME := TL-WR841N-v8
+ DEVICE_PROFILE := TLWR84116M
+ TPLINK_HWID := 0x08411608
+endef
+TARGET_DEVICES += tl-wr841-v8-16m
+
+define Device/tl-wr841-v9-16m
+ $(Device/tplink-16mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (16M v9
+ BOARDNAME := TL-WR841N-v9
+ DEVICE_PROFILE := TLWR84116M
+ TPLINK_HWID := 0x08411609
+endef
+TARGET_DEVICES += tl-wr841-v9-16m
+
+define Device/tl-wr841-v10-16m
+ $(Device/tl-wr841-v9-16m)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (16M) v10
+ TPLINK_HWID := 0x08411610
+endef
+TARGET_DEVICES += tl-wr841-v10-16m
+
+define Device/tl-wr841-v11-16m
+ $(Device/tplink-16mlzma)
+ DEVICE_TITLE := TP-LINK TL-WR841N/ND Mod (16M) v11
+ BOARDNAME := TL-WR841N-v11
+ DEVICE_PROFILE := TLWR84116M
+ TPLINK_HWID := 0x08411611
+ IMAGES += factory-us.bin factory-eu.bin
+ IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
+ IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
+endef
+TARGET_DEVICES += tl-wr841-v11-16m
......@@ -254,6 +254,15 @@ fi
device tp-link-re450 re450-v1
packages $ATH10K_PACKAGES
device tp-link-tl-wr841n-nd-mod-8m-v9 tl-wr841-v9-8m
device tp-link-tl-wr841n-nd-mod-8m-v10 tl-wr841-v10-8m
device tp-link-tl-wr841n-nd-mod-8m-v11 tl-wr841-v11-8m
factory -squashfs-factory${GLUON_REGION:+-${GLUON_REGION}} .bin
device tp-link-tl-wr841n-nd-mod-16m-v9 tl-wr841-v9-16m
device tp-link-tl-wr841n-nd-mod-16m-v10 tl-wr841-v10-16m
device tp-link-tl-wr841n-nd-mod-16m-v11 tl-wr841-v11-16m
factory -squashfs-factory${GLUON_REGION:+-${GLUON_REGION}} .bin
# Ubiquiti
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment