Hi everyone!

The hardware-ID is different for TL-WDR4300v1 devices sold in Israel.

For unknown reasons, instead of having proper settings in the WiFi EEPROM, the
importer decided to have a rootfs-mod of TP-LINKs original firmware -- still
with US regdomain in the EEPROM, but limiting the choices in the web-gui to
values which are compliant with regulations in Israel.
The firmware on devices sold in Israel expects a different hardware-id to
prevent users from flashing the upstream firmware and therefore bypassing the
limitations.

Though this approach seems formally wrong to me (they should have rather just
put the right settings in the art / eeprom), it's already out there.

To allow users to use OpenWrt on these devices and (similar to the original
firmware) also make sure that they do not violate the local regulations, I
suggest this patch (sorry for the attachment, but in that way it doesn't get
mangled by gmail).



Cheers


Daniel
>From 70816138ee35a08aaf129f750979496a5443586a Mon Sep 17 00:00:00 2001
From: Daniel Golle <dgo...@allnet.de>
Date: Fri, 8 Mar 2013 03:42:56 +0200
Subject: [PATCH] [ar71xx] build image for TL-WDR4300v1 (IL)

---
 target/linux/ar71xx/image/Makefile    | 1 +
 tools/firmware-utils/src/mktplinkfw.c | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 20caff8..879e768 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -935,6 +935,7 @@ $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWR2543,tl-wr2543-v1,TL-WR
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR3500V1,tl-wdr3500-v1,TL-WDR3500,ttyS0,115200,0x35000001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR3600V1,tl-wdr3600-v1,TL-WDR4300,ttyS0,115200,0x36000001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR4300V1,tl-wdr4300-v1,TL-WDR4300,ttyS0,115200,0x43000001,1,8Mlzma))
+$(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR4300V1,tl-wdr4300-v1-il,TL-WDR4300,ttyS0,115200,0x43008001,1,8Mlzma))
 $(eval $(call SingleProfile,TPLINK-LZMA,$(fs_64kraw),TLWDR4310V1,tl-wdr4310-v1,TL-WDR4300,ttyS0,115200,0x43100001,1,8Mlzma))
 
 $(eval $(call SingleProfile,UAPPRO,$(fs_64k),UAPPRO,ubnt-uap-pro,UAP-PRO,ttyS0,115200,BZ,BZ,ar934x))
diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c
index 9483640..27e5281 100644
--- a/tools/firmware-utils/src/mktplinkfw.c
+++ b/tools/firmware-utils/src/mktplinkfw.c
@@ -41,6 +41,7 @@
 #define HWID_TL_WA830RE_V2	0x08300002
 #define HWID_TL_WA901ND_V1	0x09010001
 #define HWID_TL_WA901ND_V2	0x09010002
+#define HWID_TL_WDR4300_V1_IL	0x43008001
 #define HWID_TL_WDR4900_V1	0x49000001
 #define HWID_TL_WR703N_V1	0x07030101
 #define HWID_TL_WR741ND_V1	0x07410001
@@ -246,6 +247,11 @@ static struct board_info boards[] = {
 		.hw_rev         = 1,
 		.layout_id	= "4M",
 	}, {
+		.id             = "TL-WDR4300v1",
+		.hw_id          = HWID_TL_WDR4300_V1_IL,
+		.hw_rev         = 1,
+		.layout_id	= "8Mlzma",
+	}, {
 		.id             = "TL-WDR4900v1",
 		.hw_id          = HWID_TL_WDR4900_V1,
 		.hw_rev         = 1,
-- 
1.8.1.4

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to