From a606b32b17a84474500520b8f461889d18a29f04 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 15 Oct 2016 19:11:35 +0200 Subject: [PATCH] ar71xx-generic: set region code for TL-WA901ND v4 and remove BROKEN Tested-by: Jannis Pinter --- docs/index.rst | 2 +- ...egion-code-for-TP-Link-TL-WA901ND-v4.patch | 29 +++++++++++++++++++ targets/ar71xx-generic/profiles.mk | 4 +-- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 patches/openwrt/0076-ar71xx-set-EU-region-code-for-TP-Link-TL-WA901ND-v4.patch diff --git a/docs/index.rst b/docs/index.rst index f1f36c29..0ddd1878 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -173,7 +173,7 @@ ar71xx-generic - TL-WA830RE (v1, v2) - TL-WA850RE (v1) - TL-WA860RE (v1) - - TL-WA901N/ND (v1, v2, v3) + - TL-WA901N/ND (v1, v2, v3, v4) - TL-WDR3500 (v1) - TL-WDR3600 (v1) - TL-WDR4300 (v1) diff --git a/patches/openwrt/0076-ar71xx-set-EU-region-code-for-TP-Link-TL-WA901ND-v4.patch b/patches/openwrt/0076-ar71xx-set-EU-region-code-for-TP-Link-TL-WA901ND-v4.patch new file mode 100644 index 00000000..448584cf --- /dev/null +++ b/patches/openwrt/0076-ar71xx-set-EU-region-code-for-TP-Link-TL-WA901ND-v4.patch @@ -0,0 +1,29 @@ +From: Matthias Schiffer +Date: Sat, 15 Oct 2016 19:10:33 +0200 +Subject: ar71xx: set EU region code for TP-Link TL-WA901ND v4 + +There is no US firmware for the TL-WA901ND v4 yet, so we'll just +unconditionally set the EU region for now. + +This makes LEDE flashable on these devices again. The format of the region +string is slightly different from the one used on the Archer C7 that is +generated by mktplinkfw (the second half of the region string is missing), +but it's similar enough to make it work. + +Tested-by: Jannis Pinter +Signed-off-by: Matthias Schiffer + +Backport of LEDE 83f7ec31f8f9641ef842212c45db61b72682debf + +diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile +index cbd8a49..ac21e71 100644 +--- a/target/linux/ar71xx/image/Makefile ++++ b/target/linux/ar71xx/image/Makefile +@@ -736,6 +736,7 @@ define Device/tl-wa901nd-v4 + BOARDNAME := TL-WA901ND-v4 + DEVICE_PROFILE := TLWA901 + TPLINK_HWID := 0x09010004 ++ IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C EU + endef + + TARGET_DEVICES += tl-wa901nd-v3 tl-wa901nd-v4 diff --git a/targets/ar71xx-generic/profiles.mk b/targets/ar71xx-generic/profiles.mk index a8a1740c..416a4ebd 100644 --- a/targets/ar71xx-generic/profiles.mk +++ b/targets/ar71xx-generic/profiles.mk @@ -136,9 +136,7 @@ $(eval $(call GluonProfile,TLWA901)) $(eval $(call GluonModel,TLWA901,tl-wa901nd-v1,tp-link-tl-wa901n-nd-v1)) $(eval $(call GluonModel,TLWA901,tl-wa901nd-v2,tp-link-tl-wa901n-nd-v2)) $(eval $(call GluonModel,TLWA901,tl-wa901nd-v3,tp-link-tl-wa901n-nd-v3)) -ifneq ($(BROKEN),) -$(eval $(call GluonModel,TLWA901,tl-wa901nd-v4,tp-link-tl-wa901n-nd-v4)) # BROKEN: untested -endif +$(eval $(call GluonModel,TLWA901,tl-wa901nd-v4,tp-link-tl-wa901n-nd-v4)) # TL-MR13U v1 $(eval $(call GluonProfile,TLMR13U))