diff mbox

[OpenWrt-Devel] ar71xx: add support for tp-link wr740n v5.0 (EU)

Message ID 5575B92D.8000806@posteo.net
State Accepted
Headers show

Commit Message

Daniel Petre June 8, 2015, 3:47 p.m. UTC
TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
China) with 4 MB flash and 32 MB memory (confirmed by their local
support). This patch adds support for the v5.0 clone of v4, i just
tested it on my own v5.0 router and it works.

Signed-off-by: Daniel Petre <daniel.petre@posteo.net>

 define Device/tl-wr841n-v8
     $(Device/tplink-4mlzma)

Comments

valent.turkovic@gmail.com June 18, 2015, 3:54 p.m. UTC | #1
Daniel thank you!

Daniel can you please share firmware you have build so I can join in testing.
I still don't see V5 images being build in trunk. Who will add V5 so
it gets build?

Cheers,
Valent.

On 8 June 2015 at 17:47, Daniel Petre <daniel.petre@posteo.net> wrote:
> TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
> China) with 4 MB flash and 32 MB memory (confirmed by their local
> support). This patch adds support for the v5.0 clone of v4, i just
> tested it on my own v5.0 router and it works.
>
> Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
>
> Index: openwrt/target/linux/ar71xx/image/Makefile
> ===================================================================
> --- openwrt/target/linux/ar71xx/image/Makefile  (revision 45921)
> +++ openwrt/target/linux/ar71xx/image/Makefile  (working copy)
> @@ -443,6 +443,14 @@
>      CONSOLE := ttyATH0,115200
>  endef
>
> +define Device/tl-wr740n-v5
> +    $(Device/tplink-4mlzma)
> +    BOARDNAME := TL-WR741ND-v4
> +    DEVICE_PROFILE := TLWR740
> +    TPLINK_HWID := 0x07400005
> +    CONSOLE := ttyATH0,115200
> +endef
> +
>  define Device/tl-wr741nd-v1
>      $(Device/tplink-4m)
>      BOARDNAME := TL-WR741ND
> @@ -472,7 +480,7 @@
>      TPLINK_HWID := 0x07430002
>      CONSOLE := ttyATH0,115200
>  endef
> -TARGET_DEVICES += tl-wr740n-v4 tl-wr741nd-v1 tl-wr741nd-v2
> tl-wr741nd-v4 tl-wr743nd-v2
> +TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2
> tl-wr741nd-v4 tl-wr743nd-v2
>
>  define Device/tl-wr841n-v8
>      $(Device/tplink-4mlzma)
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Daniel Petre June 18, 2015, 5 p.m. UTC | #2
On 06/18/2015 06:54 PM, valent.turkovic@gmail.com wrote:
> Daniel thank you!
>  Who will add V5 so
> it gets build?

OpenWrt developers of course :)
I tested my little patch, it works.

> 
> Cheers,
> Valent.
> 
> On 8 June 2015 at 17:47, Daniel Petre <daniel.petre@posteo.net> wrote:
>> TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
>> China) with 4 MB flash and 32 MB memory (confirmed by their local
>> support). This patch adds support for the v5.0 clone of v4, i just
>> tested it on my own v5.0 router and it works.
>>
>> Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
>>
>> Index: openwrt/target/linux/ar71xx/image/Makefile
>> ===================================================================
>> --- openwrt/target/linux/ar71xx/image/Makefile  (revision 45921)
>> +++ openwrt/target/linux/ar71xx/image/Makefile  (working copy)
>> @@ -443,6 +443,14 @@
>>      CONSOLE := ttyATH0,115200
>>  endef
>>
>> +define Device/tl-wr740n-v5
>> +    $(Device/tplink-4mlzma)
>> +    BOARDNAME := TL-WR741ND-v4
>> +    DEVICE_PROFILE := TLWR740
>> +    TPLINK_HWID := 0x07400005
>> +    CONSOLE := ttyATH0,115200
>> +endef
>> +
>>  define Device/tl-wr741nd-v1
>>      $(Device/tplink-4m)
>>      BOARDNAME := TL-WR741ND
>> @@ -472,7 +480,7 @@
>>      TPLINK_HWID := 0x07430002
>>      CONSOLE := ttyATH0,115200
>>  endef
>> -TARGET_DEVICES += tl-wr740n-v4 tl-wr741nd-v1 tl-wr741nd-v2
>> tl-wr741nd-v4 tl-wr743nd-v2
>> +TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2
>> tl-wr741nd-v4 tl-wr743nd-v2
>>
>>  define Device/tl-wr841n-v8
>>      $(Device/tplink-4mlzma)
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
valent.turkovic@gmail.com June 18, 2015, 8:58 p.m. UTC | #3
Daniel thank you for this patch, we are organising a wifi workshop for
spreading free and open mesh network and without support for these
affordable router we couldn't do it!

So thanks a lot, and thanks a lot to all OpenWrt developers, all of
you guys rock!

On 18 June 2015 at 19:00, Daniel Petre <daniel.petre@posteo.net> wrote:
> On 06/18/2015 06:54 PM, valent.turkovic@gmail.com wrote:
>> Daniel thank you!
>>  Who will add V5 so
>> it gets build?
>
> OpenWrt developers of course :)
> I tested my little patch, it works.
>
>>
>> Cheers,
>> Valent.
>>
>> On 8 June 2015 at 17:47, Daniel Petre <daniel.petre@posteo.net> wrote:
>>> TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
>>> China) with 4 MB flash and 32 MB memory (confirmed by their local
>>> support). This patch adds support for the v5.0 clone of v4, i just
>>> tested it on my own v5.0 router and it works.
>>>
>>> Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
>>>
>>> Index: openwrt/target/linux/ar71xx/image/Makefile
>>> ===================================================================
>>> --- openwrt/target/linux/ar71xx/image/Makefile  (revision 45921)
>>> +++ openwrt/target/linux/ar71xx/image/Makefile  (working copy)
>>> @@ -443,6 +443,14 @@
>>>      CONSOLE := ttyATH0,115200
>>>  endef
>>>
>>> +define Device/tl-wr740n-v5
>>> +    $(Device/tplink-4mlzma)
>>> +    BOARDNAME := TL-WR741ND-v4
>>> +    DEVICE_PROFILE := TLWR740
>>> +    TPLINK_HWID := 0x07400005
>>> +    CONSOLE := ttyATH0,115200
>>> +endef
>>> +
>>>  define Device/tl-wr741nd-v1
>>>      $(Device/tplink-4m)
>>>      BOARDNAME := TL-WR741ND
>>> @@ -472,7 +480,7 @@
>>>      TPLINK_HWID := 0x07430002
>>>      CONSOLE := ttyATH0,115200
>>>  endef
>>> -TARGET_DEVICES += tl-wr740n-v4 tl-wr741nd-v1 tl-wr741nd-v2
>>> tl-wr741nd-v4 tl-wr743nd-v2
>>> +TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2
>>> tl-wr741nd-v4 tl-wr743nd-v2
>>>
>>>  define Device/tl-wr841n-v8
>>>      $(Device/tplink-4mlzma)
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel@lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Matthias Schiffer June 21, 2015, 8:42 p.m. UTC | #4
On 06/08/2015 05:47 PM, Daniel Petre wrote:
> TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
> China) with 4 MB flash and 32 MB memory (confirmed by their local
> support). This patch adds support for the v5.0 clone of v4, i just
> tested it on my own v5.0 router and it works.
> 
> Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
> 

By the way, the same image also works on the WR741ND v5. TP-LINK decided
to use the same HWID 0x07400005 for the 741v5 as well, instead of
0x07410005 one might expect. So regarding the software, there isn't any
difference between 740 and 741 v5.

I think it would make sense to explicitly create images with the name
tl-wr741nd-v5 even though they will be identical to the tl-wr740n-v5, so
the images get built when the TLWR741 profile is selected.

I'll provide a patch to do that (as soon as this one has been applied,
to avoid unnecessary conflicts ;) )

Matthias
valent.turkovic@gmail.com June 21, 2015, 8:58 p.m. UTC | #5
When will these patched be available in trunk? I have few of these
devices ordered so I can test them once they arrive in few days.

Thanks.

On 21 June 2015 at 22:42, Matthias Schiffer
<mschiffer@universe-factory.net> wrote:
> On 06/08/2015 05:47 PM, Daniel Petre wrote:
>> TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
>> China) with 4 MB flash and 32 MB memory (confirmed by their local
>> support). This patch adds support for the v5.0 clone of v4, i just
>> tested it on my own v5.0 router and it works.
>>
>> Signed-off-by: Daniel Petre <daniel.petre@posteo.net>
>>
>
> By the way, the same image also works on the WR741ND v5. TP-LINK decided
> to use the same HWID 0x07400005 for the 741v5 as well, instead of
> 0x07410005 one might expect. So regarding the software, there isn't any
> difference between 740 and 741 v5.
>
> I think it would make sense to explicitly create images with the name
> tl-wr741nd-v5 even though they will be identical to the tl-wr740n-v5, so
> the images get built when the TLWR741 profile is selected.
>
> I'll provide a patch to do that (as soon as this one has been applied,
> to avoid unnecessary conflicts ;) )
>
> Matthias
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
diff mbox

Patch

Index: openwrt/target/linux/ar71xx/image/Makefile
===================================================================
--- openwrt/target/linux/ar71xx/image/Makefile	(revision 45921)
+++ openwrt/target/linux/ar71xx/image/Makefile	(working copy)
@@ -443,6 +443,14 @@ 
     CONSOLE := ttyATH0,115200
 endef

+define Device/tl-wr740n-v5
+    $(Device/tplink-4mlzma)
+    BOARDNAME := TL-WR741ND-v4
+    DEVICE_PROFILE := TLWR740
+    TPLINK_HWID := 0x07400005
+    CONSOLE := ttyATH0,115200
+endef
+
 define Device/tl-wr741nd-v1
     $(Device/tplink-4m)
     BOARDNAME := TL-WR741ND
@@ -472,7 +480,7 @@ 
     TPLINK_HWID := 0x07430002
     CONSOLE := ttyATH0,115200
 endef
-TARGET_DEVICES += tl-wr740n-v4 tl-wr741nd-v1 tl-wr741nd-v2
tl-wr741nd-v4 tl-wr743nd-v2
+TARGET_DEVICES += tl-wr740n-v4 tl-wr740n-v5 tl-wr741nd-v1 tl-wr741nd-v2
tl-wr741nd-v4 tl-wr743nd-v2