Op zo, 10 apr 2016 om 11:35 , schreef Matthias Schiffer <mschiffer@universe-factory.net>:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">On 04/10/2016 11:21 PM, Stijn Segers wrote:
<blockquote> Hi guys,
I'm trying to add support for the TP-Link TL-WR740N v6.
On the OpenWrt forums [1] a modified TL-WR841N v10
image has been confirmed working. I tried adding support
(see patch below) but no matter what I try, the v6 image
does not seem to be generated. Running make with V=s
doesn't show any mention of the v6 images being attempted
to build (or failing to build) altogether. What am I doing
wrong here?
Thanks
Stijn
</blockquote>
Which profile do you have selected in your .config? You have set
DEVICE_PROFILE := TLWR841 in your patch, so the 740v6 image will be built
only if Generic or TL-WR841 is selected, but not for TL-WR740/741.
Regards,
Matthias
</div></blockquote><br>Thanks, it's under TL-WR740 indeed. I've checked other devices in the Makefile, there are a few<div>that have board names that don't align with the profile being used, like:</div><div><br></div><div><div>define Device/tl-wr842n-v1</div><div> $(Device/tplink-8m)</div><div> BOARDNAME := TL-MR3420</div><div> DEVICE_PROFILE := TLWR842</div><div> TPLINK_HWID := 0x08420001</div><div>endef</div><div><br></div><div>I will keep the boardname and change the DEVICE_PROFILE to 'TLWR740', see how that works out. </div><div>To be sure, is there anything else the DEVICE_PROFILE value steers, besides under which profile</div><div>the image would be built?</div><div><br></div><div>Cheers</div><div><br></div><div>Stijn</div><div><br></div><div><br></div><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">
<blockquote>
[1]: <a href="https://forum.openwrt.org/viewtopic.php?id=64002">https://forum.openwrt.org/viewtopic.php?id=64002</a>
---
target/linux/ar71xx/image/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index e4e2fcf..7123941 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -753,6 +753,13 @@ define Device/tl-wr740n-v5
CONSOLE := ttyATH0,115200
endef
+define Device/tl-wr740n-v6
+ $(Device/tplink-4mlzma)
+ BOARDNAME := TL-WR841N-v9
+ DEVICE_PROFILE := TLWR841
+ TPLINK_HWID := 0x07400006
+endef
+
define Device/tl-wr741nd-v1
$(Device/tplink-4m)
BOARDNAME := TL-WR741ND
@@ -797,7 +804,7 @@ define Device/tl-wr743nd-v2
TPLINK_HWID := 0x07430002
CONSOLE := ttyATH0,115200
endef
-TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
+TARGET_DEVICES += tl-wr740n-v1 tl-wr740n-v3 tl-wr740n-v4 tl-wr740n-v5 tl-wr740n-v6 tl-wr741nd-v1 tl-wr741nd-v2 tl-wr741nd-v4 tl-wr741nd-v5 tl-wr743nd-v1 tl-wr743nd-v2
define Device/tl-wr841-v1.5
$(Device/tplink-4m)
</blockquote>
</div></blockquote></div>