Archer D7 support

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.

Hi @suppenkasper0815, i am very interested about switching archer d7 to c7 v2.
Can uboot update be done from telnet without opening the case ?
I am very nervous to crack open the case, it seems very easy for you to do it.

I would've thought that LEDs, buttons and USB ports also stop working if you cross flash the D2??

Hi.

I think @blinkstar88 explained well how you have to work on the u-boot with switching the address 0x1FC00 with your MAC address in hex editor.

If your device is already running Openwrt, then you can maybe read u-boot from there and edit it. But I unfortunately guess you need to open the case and use UART / Seriell to update the u-boot by stopping boot process by typing "tpl" as fast as possible when the message comes to pause booting.

There is also a possibility on the device page of D7 on Openwrt wiki how to get seriell without opening the case. You need to cut some plastic from the bottom and solder the pins to get the access.

Thanks alot @suppenkasper0815 for your explanation.

In case I need to switch back to the tplink firmware or the D7 openwrt firmware,
do I need to flash back the original uboot ? How to back up the original uboot ?

I am very newbie for this matter...

You should use the image with the name initramfs in it and start your device from RAM after stopping the boot process. Then you can backup all partitions via SSH or web interface.

You can find informations here

Openwrt Wiki

Or I usually backup all mtd partitions and descriptions via

cat /proc/partitions

cat /proc/mtd

cat /dev/mtdx > /tmp/mtdx.bin

Replace x with mtd partition number 

Hi, do you know if the instructions to turn d7 into c7v2 work also for for d7b? Thanks

Could anyone post their u-boot.bin from the D7v1 EU please?

Thx

Hi,

here is a link to all my partitons from Archer D7v1 including the file "uboot-c7-v2.bin" which has to be modified with your mac-address at the hex-address 0x1FC00. You can use both of my bootloader (d7 and c7), but keep in mind to change it into your MAC-Address!

Backup Archer d7v1

1 Like

Hi,

sorry, I haven't had the chance to test it, but here is my layout of d7v1

root@OpenWrt:/# cat /proc/partitions 
major minor  #blocks  name

  31        0        128 mtdblock0
  31        1      15936 mtdblock1
  31        2       1043 mtdblock2
  31        3      14784 mtdblock3
  31        4       8768 mtdblock4
  31        5         64 mtdblock5
  31        6         64 mtdblock6
  31        7         64 mtdblock7
  31        8         64 mtdblock8
  31        9         64 mtdblock9

Maybe you can test it, all my mtdblocks are avaliable here:

mtd Archer D7v1

The partitions of my router are a bit different. There're only 4 instead of 5 64kb partitions at the end.
I have no idea what i should do... Any instructions? thanks


root@_:~# cat /proc/partitions
major minor  #blocks  name

  31        0        128 mtdblock0
  31        1      16000 mtdblock1
  31        2       1762 mtdblock2
  31        3      14237 mtdblock3
  31        4      10944 mtdblock4
  31        5         64 mtdblock5
  31        6         64 mtdblock6
  31        7         64 mtdblock7
  31        8         64 mtdblock8