Archer D7 support

hi all,

i have Archer D7 from indonesia that is actually Archer D7b.
the firmware from official site is for Archer D7b but written Archer D7.
https://www.tp-link.com/id/support/download/archer-d7/#Firmware.

before knowing that, i tried to update to newer version that i find newer firmware from Australia official site
https://www.tp-link.com/au/support/download/archer-d7/#Firmware.
from that australian site in "Archer D7(AU)_V1_170511" description there is a link that convert EU to AU version.

after i use it, it convert my "Archer D7b" to Archer D7 and can update all the Archer D7 firmware.
the problem is now my wireless bot 2.4 and 5 ghz signal is very low, only can be detected 1 cm from the router and my ART backup is after the the convertion.
please, can anyone send me the archer d7b ART backup? so i can restore it.

thank you very much

Hello, I am considering switching a bunch of D7 routers to OpenWRT (DSL is not needed). Now I have a few questions:

  1. Is there a chance that the patch gets accepted soon? Is there a location where the latest version of the firmware can be downloaded or do I best complile myself?
  2. As far as I understand things, the firmware is running smoothly, right?
  3. For many other devices, I need the factory image for the migration from stock firmware. You have many sysupgrade images. Am I getting this wrong?
  4. As far as I understand things, I need UART access to stop the bootloader. Then I can make the bootloader fetch the image via TFTP. Am I correct?
  5. Have I understood things correctly that some of you managed to install to the flash so it starts permanently into OpenWRT?
  6. Is there any location with a (good :wink: ) documentation on this device?

Thank you very much
Christian

Hi Christian,

I would love if you give a feedback/howto after you hopefully succeed with that instruction Instructions .

I tried the initramfs image and it worked quite well, beside that's unfortunately not possible to use as AP+STA at the same time. In original Firmware I am able to connect via WDS function in OEM to my FritzBox and use the device at the same time on 5 (AC wifi).

Performance also much lower of course with OpenWRT.

i update the u-boot from archer c7 v2, and install official openwrt from c7 v2. Everything worked great. I can use AP+STA, AP+AP at the same time without problem.

1 Like

@blinkstar88 Would you explain a bit more in detail with hex adresses, commands and so on how you did it? Is it then the same like an more expensive Archer C7 and have you messured power consumption?

1 Like

download u-boot from archer c7v2 u-boot archer c7v2 and edit the mac with hex editor with your mac. Mac address start at offset 0x1FC00.

update u-boot via console throught tftp. to stop u-boot from autobooting type "tp" and use following command:

  • tftpboot 0x81000000 u-boot-c7v2.bin

  • erase 0x9f000000 +20000

  • cp.b 0x81000000 0x9f000000 0x20000

  • reset
    after u-boot was updated, boot with openwrt archer c7v2 image from memory with following command:

  • tftpboot 0x81000000 openwrt-19.07.2-ath79-generic-tplink_archer-c7-v2-initramfs-kernel.bin

  • bootm 0x81000000

from here, you can flash with sysupgrade image from official openwrt.

to make wan port working, edit file 02_network at /etc/board.d/ and find board archer c7v2 definition and change to with:

ucidef_add_switch "switch0"
"0@eth1" "3:lan" "4:lan" "5:lan" "2:wan" "6@eth0"

and delete file "board.json" at /etc directory and do reboot.

1 Like

updating will not erase ART partition. I live in indonesia, and i never get archer D7b version here. Have you try to restore to original firmware?

1 Like

@blinkstar88 : Thank you very much! I can confirm if you do it like it's described it will work. Unfortunately I still have problems with WAN-Port. I did it like you also described but my switch-configuration seems diffrent. I installed the snapshot of Archer C7 V2 and had a bit of a hustle to configure a secondary virtual interface on br-lan to get access to the internet and to download luci for some screenshots. - Maybe i did something in the configuration files wrong. I would love if you can still go a bit more into deails. I just see that there is no (eth0 and eth1) in the switch configuration picture.

Here is the text of my /etc/board.d/02_network

        tplink,archer-c7-v2)                                                   
                ucidef_add_swtich "switch0" \                                  
                        "0@eth1" "3:lan" "4:lan" "5:lan" "2:wan" "6@eth0"      
                ;;                                                             

delete /etc/board.json and do reboot, It will update the switch configuration after restart. If this not resolve your issue, try to disable adsl cpu (broadcom).

Hi, I did delete it, but it doesn't work as LAN4/WAN für Uplink. Also it also doesn't work as Client to my major network and AP at the same time on 5G. So unfortunately I just see problems.

I messured with my S7 a performance von Wifi-5G-WAN with OEM around 500 Mbps up/down and with openwrt and soft- or hardware nat just around 250 Mbps up/down. So either Hardware-NAT doesn't work or especially between Wifi and WAN is a problem.

LAN-WAN is a bit lower around 200 Mbps up/down and before with OEM it was around 600 Mbps.

Any other expirences with C7 for example or ideas how to improve the performances and vlan-configuration to a working setup?

This is the result after deleting /etc/board.json . I have my Laptop connected at LAN1 with 1GbE and I don't know why Port2 is half dulplex 100G and I don't see the cpu with tagged parameter. Maybe Port1 is CPU actually otherwise I think it couldn't work at all....

I am using ath10k firmware ver 10.2.4-1.0-00043 and OpenWrt 19.07.2, i can use client and ap at the same time. Did you cut off the power to dsl cpu?

@numero53

Congrats, just been merged into master. :+1:

2 Likes

Hi. No, I didn't cut of the power to the DSL part. I tried the different versions of ath10k packages, also CT and ct-htt with fitting kmod-ath10k and so on, but it did not work out to use 5GHz wifi as sta+ap at the same time.

By the way, with OEM it was possible to use it in wds mode and ap at the same time.

  • if I try to set a fitting channel for client for example ch52 it doesn't work as client or ap. If I set it to auto it does work on ch52 as client but ap mode doesn't work. To use different channels for ap and client-mode isn't possible at all and logical because there is just one chip...

So how did you configure your /etc/config/wireless oder luci page?

@blinkstar88 Do you have any ideas how to proceed? I have an Archer D7 (without b) and I did everything you said. I also tried the setting from the first post:

ucidef_set_interfaces_lan_wan "eth1.1" "eth0.2"
ucidef_add_switch "switch0" \
	"0@eth1" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "6@eth0" "1:wan"

But it is the same like your suggestion:

    tplink,archer-c7-v2)                                                   
            ucidef_add_swtich "switch0" \                                  
                    "0@eth1" "3:lan" "4:lan" "5:lan" "2:wan" "6@eth0"      
            ;;                                                             

I also deleted the /etc/board.json and did the reboot. - There is always this strange outlook of my switch configuration

And the new information in the switch luci-tab:

Switch switch0 has an unknown topology - the VLAN settings might not be accurate.

I think I modified my uboot correctly with the MAC-Address from my device. Otherwise I think I wouldn't be able at all to connect the wifi. Also I think my actual bigger problem is the switch (vlan) configuration and this is independent of my wifi in my opinion.

Would love to get suggestions or comments.

it's a community achievement! :slight_smile:
Thank you all for testing and supporting! :slight_smile:


@suppenkasper0815 Sorry, I always forgot to test it. Unfortunately I don't have the archer D7 with me and I go out and can't take it back (because of the COVID-19 here in Italy :pensive:).

@numero53 I understand that. We hope and pray that this COVID-19 pandemic will be over soon and all people especially in italy will survive and beat the virus.

Hey, I just wanna say I also ordered a bunch of D7b and hope it will also work out with turning it into a C7v2. There are good sfe-images from @gwlim at his github.com and they work pretty well on my D7. I'm able to achieve around 600 Mbit/s WAN <-> LAN and Wifi <-> WAN around 400 Mbit/s messured with Iperf3 with 4 parallel streams to a Gigabit server.

Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  4] local 192.168.1.193 port 55448 connected to 192.168.178.193 port 5201
[  6] local 192.168.1.193 port 55449 connected to 192.168.178.193 port 5201
[  8] local 192.168.1.193 port 55450 connected to 192.168.178.193 port 5201
[ 10] local 192.168.1.193 port 55451 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  6.27 MBytes  52.6 Mbits/sec                  
[  6]   0.00-1.00   sec  11.3 MBytes  95.0 Mbits/sec                  
[  8]   0.00-1.00   sec  9.22 MBytes  77.3 Mbits/sec                  
[ 10]   0.00-1.00   sec  7.06 MBytes  59.2 Mbits/sec                  
[SUM]   0.00-1.00   sec  33.9 MBytes   284 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec  7.46 MBytes  62.5 Mbits/sec                  
[  6]   1.00-2.00   sec  21.7 MBytes   182 Mbits/sec                  
[  8]   1.00-2.00   sec  10.9 MBytes  91.6 Mbits/sec                  
[ 10]   1.00-2.00   sec  8.92 MBytes  74.8 Mbits/sec                  
[SUM]   1.00-2.00   sec  49.0 MBytes   411 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  6.13 MBytes  51.5 Mbits/sec                  
[  6]   2.00-3.00   sec  25.2 MBytes   212 Mbits/sec                  
[  8]   2.00-3.00   sec  8.59 MBytes  72.1 Mbits/sec                  
[ 10]   2.00-3.00   sec  10.7 MBytes  90.0 Mbits/sec                  
[SUM]   2.00-3.00   sec  50.7 MBytes   425 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec  7.93 MBytes  66.5 Mbits/sec                  
[  6]   3.00-4.00   sec  24.5 MBytes   205 Mbits/sec                  
[  8]   3.00-4.00   sec  10.3 MBytes  86.5 Mbits/sec                  
[ 10]   3.00-4.00   sec  11.8 MBytes  98.8 Mbits/sec                  
[SUM]   3.00-4.00   sec  54.5 MBytes   457 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec  8.18 MBytes  68.6 Mbits/sec                  
[  6]   4.00-5.00   sec  21.3 MBytes   179 Mbits/sec                  
[  8]   4.00-5.00   sec  10.0 MBytes  84.1 Mbits/sec                  
[ 10]   4.00-5.00   sec  11.4 MBytes  96.0 Mbits/sec                  
[SUM]   4.00-5.00   sec  51.0 MBytes   428 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  9.41 MBytes  79.0 Mbits/sec                  
[  6]   5.00-6.00   sec  21.1 MBytes   177 Mbits/sec                  
[  8]   5.00-6.00   sec  11.3 MBytes  95.0 Mbits/sec                  
[ 10]   5.00-6.00   sec  12.2 MBytes   103 Mbits/sec                  
[SUM]   5.00-6.00   sec  54.1 MBytes   454 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec  8.86 MBytes  74.2 Mbits/sec                  
[  6]   6.00-7.00   sec  17.8 MBytes   149 Mbits/sec                  
[  8]   6.00-7.00   sec  10.4 MBytes  87.2 Mbits/sec                  
[ 10]   6.00-7.00   sec  11.1 MBytes  93.2 Mbits/sec                  
[SUM]   6.00-7.00   sec  48.2 MBytes   404 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec  10.5 MBytes  88.3 Mbits/sec                  
[  6]   7.00-8.00   sec  18.8 MBytes   158 Mbits/sec                  
[  8]   7.00-8.00   sec  11.8 MBytes  99.6 Mbits/sec                  
[ 10]   7.00-8.00   sec  12.6 MBytes   106 Mbits/sec                  
[SUM]   7.00-8.00   sec  53.7 MBytes   452 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec  10.5 MBytes  88.4 Mbits/sec                  
[  6]   8.00-9.00   sec  17.5 MBytes   146 Mbits/sec                  
[  8]   8.00-9.00   sec  11.8 MBytes  99.2 Mbits/sec                  
[ 10]   8.00-9.00   sec  12.3 MBytes   103 Mbits/sec                  
[SUM]   8.00-9.00   sec  52.2 MBytes   437 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  11.4 MBytes  95.4 Mbits/sec                  
[  6]   9.00-10.00  sec  17.8 MBytes   150 Mbits/sec                  
[  8]   9.00-10.00  sec  12.3 MBytes   103 Mbits/sec                  
[ 10]   9.00-10.00  sec  13.0 MBytes   109 Mbits/sec                  
[SUM]   9.00-10.00  sec  54.4 MBytes   457 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  87.5 MBytes  73.4 Mbits/sec  163             sender
[  4]   0.00-10.00  sec  86.9 MBytes  72.9 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   199 MBytes   167 Mbits/sec  564             sender
[  6]   0.00-10.00  sec   197 MBytes   166 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   108 MBytes  90.6 Mbits/sec  258             sender
[  8]   0.00-10.00  sec   107 MBytes  89.8 Mbits/sec                  receiver
[ 10]   0.00-10.00  sec   112 MBytes  94.1 Mbits/sec  187             sender
[ 10]   0.00-10.00  sec   112 MBytes  93.6 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec   506 MBytes   425 Mbits/sec  1172             sender
[SUM]   0.00-10.00  sec   503 MBytes   422 Mbits/sec                  receiver

iperf Done.


Messured with my Samsung S7. Compared to a FritzBox 7490 (which shot use the same qca9880 chipset of Atheros/Qualcomm) is lower. With 7490 I get around 520 Mbit/s with newest labor firmware.

I hope we can still achieve the same performance. The CPU of D7 should habe faster clock than FritzBox 7490.

My result with other images with active nf-offload with D7 were unfortunately only maximum 300 Mbit/s. It's more at 200 Mbit/s in real life.

I hope we can create a new topic together to develop a mesh network with these quite cheap and performance devices. I wanna achieve to realize wireless roaming to run around the house and get seemless video calls and streaming when I need to change access points.

I think I need 3 to 4 devices and I'm able to connect them via gigabit cat5e.

Unfortunately another topic is to configure the devicea correctly then for IPTV-DE (MangentaTV) with Igmpv3 snooping and correct igmpv3 signaling...

To be honest I think this problem and wish to solve it have a lot of people who don't wanna just spend a lot of money to AVM products.

I mean I can't tell exactly the power consumption which could be also a big issue compared to Fritz Repeater 2400.

But I hope we can solve these issues as a community! One big step will be the power cut of dsl part. @blinkstar88 would you please refer or explain how to shut down these parts or is it already possible via software?

Hey guys,

i just wanna mention my delivery just came and I was able to read /etc/board.d/02_network from fresh device bootet by initramfs.

The switch configuration seems to be correct and here is the entry of Archer D1V1

	tplink,archer-d7b-v1)
		ucidef_add_switch "switch0" \
			"0@eth1" "3:lan:3" "4:lan:2" "5:lan:1" "6@eth0" "2:wan:4" "1:wan"

Here was no entry for Archer C7v2, but I'll also try to switch this device with the bootloader of @blinkstar88.

Iperf3 test WAN to LAN:

iperf3 -c 192.168.178.193 -i 2 -P4 -t 10 -R
Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  4] local 192.168.1.100 port 45450 connected to 192.168.178.193 port 5201
[  6] local 192.168.1.100 port 45452 connected to 192.168.178.193 port 5201
[  8] local 192.168.1.100 port 45454 connected to 192.168.178.193 port 5201
[ 10] local 192.168.1.100 port 45456 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-2.00   sec  37.4 MBytes   157 Mbits/sec                  
[  6]   0.00-2.00   sec  30.9 MBytes   130 Mbits/sec                  
[  8]   0.00-2.00   sec  27.7 MBytes   116 Mbits/sec                  
[ 10]   0.00-2.00   sec  24.2 MBytes   101 Mbits/sec                  
[SUM]   0.00-2.00   sec   120 MBytes   504 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-4.00   sec  38.1 MBytes   160 Mbits/sec                  
[  6]   2.00-4.00   sec  21.6 MBytes  90.7 Mbits/sec                  
[  8]   2.00-4.00   sec  30.6 MBytes   129 Mbits/sec                  
[ 10]   2.00-4.00   sec  29.3 MBytes   123 Mbits/sec                  
[SUM]   2.00-4.00   sec   120 MBytes   502 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-6.00   sec  32.4 MBytes   136 Mbits/sec                  
[  6]   4.00-6.00   sec  29.3 MBytes   123 Mbits/sec                  
[  8]   4.00-6.00   sec  28.7 MBytes   121 Mbits/sec                  
[ 10]   4.00-6.00   sec  27.5 MBytes   115 Mbits/sec                  
[SUM]   4.00-6.00   sec   118 MBytes   495 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-8.00   sec  32.8 MBytes   137 Mbits/sec                  
[  6]   6.00-8.00   sec  29.1 MBytes   122 Mbits/sec                  
[  8]   6.00-8.00   sec  25.3 MBytes   106 Mbits/sec                  
[ 10]   6.00-8.00   sec  33.2 MBytes   139 Mbits/sec                  
[SUM]   6.00-8.00   sec   120 MBytes   505 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-10.00  sec  31.0 MBytes   130 Mbits/sec                  
[  6]   8.00-10.00  sec  38.2 MBytes   160 Mbits/sec                  
[  8]   8.00-10.00  sec  24.6 MBytes   103 Mbits/sec                  
[ 10]   8.00-10.00  sec  27.0 MBytes   113 Mbits/sec                  
[SUM]   8.00-10.00  sec   121 MBytes   507 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   172 MBytes   145 Mbits/sec  275             sender
[  4]   0.00-10.00  sec   172 MBytes   144 Mbits/sec                  receiver
[  6]   0.00-10.00  sec   150 MBytes   126 Mbits/sec  319             sender
[  6]   0.00-10.00  sec   149 MBytes   125 Mbits/sec                  receiver
[  8]   0.00-10.00  sec   137 MBytes   115 Mbits/sec  275             sender
[  8]   0.00-10.00  sec   137 MBytes   115 Mbits/sec                  receiver
[ 10]   0.00-10.00  sec   141 MBytes   119 Mbits/sec  304             sender
[ 10]   0.00-10.00  sec   141 MBytes   118 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec   601 MBytes   504 Mbits/sec  1173             sender
[SUM]   0.00-10.00  sec   599 MBytes   503 Mbits/sec                  receiver

iperf Done.

So it seems that the initramfs has better performance than the permanent installed openwrt image.

Can someone please also tell again which fuse we need to take off to shut down modem part and get maximum energy saving mode for these device?

  • Also there is an Archer D50v1 here now. So I'll also take a look to this later (which is already offically supported)
1 Like

Can d7b version be switched to c7 v2 with the same instructions? the partitions are a bit different. Thanks.

Hi, I downloaded the newest source files and flashed it. But i got this error massage when i tried to add a network.

thank your for replying.
the ID site firmware is indeed for archer d7b, because if u execute command:

strings Archer_D7v1_0.9.1_1.1_up_boot\(150824\)_2015-08-24_11.34.20.bin | grep bootargs

the result is:

bootargs
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1152k(kernel),14848k(rootfs),64k(config),64k(romfs),64k(reserve),64k(radio)

notice the kernel size is 1152k, which by @numero53 post (Archer D7 support) is for archer d7b.

the update from AU site , convert the archer d7b to archer d7 which then can be updated with the AU site firmware:

strings Archer_D7v1_1.9.0_0.9.1_up_boot\(180705\)_2018-07-05_14.32.55.bin | grep bootargs

result:

bootargs
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1280k(kernel),14656k(rootfs),64k(radioDECT),64k(config),64k(romfs),64k(rom),64k(radio)

the convertion process does not delete art partition but it add some 00 value at the end of art partition backup.