Archer D50 Support

Hi guys,

I just wanna start a new topic for this device and hope we can support this nice device maybe with a wwan interface or bridge mode to extend 5GHz wifi range with a fast cheap Atheros device.

This device is really cheap under 15€ atm on eBay.

So this device should be a very interesting device for wifi extensions, bridges and wireguard server functions.

That would be in my focus.
Continuing the discussion from Archer D7 support:

@numero53

I would love to get also support for D7b in the future!

Thank you very much for your effort!

Here are first pictures how the open case looks like

Can you provide the device specs?

A WikiDevi page perhaps?

https://wikidevi.com/wiki/TP-LINK_Archer_D50_v1.x

1 Like

I installed the newest snapshot-image via stopping autoboot and then TFTP as @numero53 described.

Unfortunately there is no luci in this image and I had a little hustle to configure everything via serial console.

But luckily I got it to manage and to save all my partitions. The partition looks like:

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10199-04b45d3
 -----------------------------------------------------
Backing up mtd0 (u-boot)
256+0 records in
256+0 records out
Backing up mtd1 (firmware)
15616+0 records in
15616+0 records out
Backing up mtd2 (kernel)
2468+1 records in
2468+1 records out
Backing up mtd3 (rootfs)
13056+0 records in
13056+0 records out
Backing up mtd4 (rootfs_data)
512+0 records in
512+0 records out
Backing up mtd5 (config)
128+0 records in
128+0 records out
Backing up mtd6 (romfile)
128+0 records in
128+0 records out
Backing up mtd7 (rom)
128+0 records in
128+0 records out
Backing up mtd8 (art)
128+0 records in
128+0 records out
Compressing backup files to "mtd_backup.tgz"
Closing master SSH connection
Stop listening request sent.
Removing temporary backup files

MTD backup complete. Extract the files using:
tar xzf "mtd_backup.tgz"

If it helps I can also upload the MTD backup of my device.

Actually I hope we get support for QCA9982, unfortunately I didn't get the 5 GHz band to work with this device.

But here it says QCA9982 is a 3x3 MU-MIMO device with up to 1,3Gbit/s (which is more than with the OEM was possbile)

https://www.qualcomm.com/products/qca9982

I checked it today with the newest FritzWLAN-App which works through an iperf-server construction with my Wifi. - Here I was able to push 96 Mbit/s from Wifi (2,4 GHz) to WAN (Eth4). So it should push in general the whole 100 Mbit/s. - I still hope the support vor 3x3 of the QCA9982 (1200 Mbit/s) will be supported in Openwrt soon to maybe use this interface as WWAN and AP at the same time and push much more through this device.

@numero53 Did you already have success to compile a full support version with 5 GHz wifi, wireguard, luci and nf-offload? - After I would install the sysupgrade image, is it than possible to install all usual packets from openwrt like wireguard, qrencode etc.? - Is there any information if the wifi is able to be used for mesh-networks or if it supports already AP+STA at the same time?

AP+STA at the same time

1 Like

Hi guys,

I have some new compiled images for the D50v1. Maybe someone could test it. I am still on holidays. - It is compiled with wireguard, samba-server, nft-offload and luci. For exakt list please see into config.seed and test initram.image first.

Cheers and please report your expierence.

https://mega.nz/#F!oIQ13a4D!1OjFmogmmP2lb4il_pqLWg

Hey guys,

Please use official Snapshot of OpenWRT for this device. My builds contain zram-swap and there went something wrong during build. It shows I have around 100 MB of flash instead of 8 MB and you cannot store configurations out of Luci.

With official snapshot it works after installing luci after flashing.

Just login and type

opkg update 
opkg install luci

Unfortunately it's still not supported to use the 5 GHz wifi as client (sta) and ap mode at the same time. I hope this known feature from good old Ar9331 (TPlink WR150) or AR9441(TPlink WR841) will be implemented for newer Atheros chipsets soon.

@suppenkasper0815 Sorry for the delay.
I didn't try AP+STA using the 5GHz interface and unfortunately I borrowed my Archer D50... I will get it back at the beginning of September and I'll test it. However the problem could be caused by the Candelatech firmware. In the meantime you could give it a shot with the original Qualcomm firmware.

Moreover, can you help with this new patch? https://github.com/openwrt/openwrt/pull/2031#issuecomment-508720685
In short you have to execute these commands:

. /lib/functions/system.sh
find /proc/device-tree/ -name "*mac-address*"

it will output some paths...For every path you have to execute (for example):

get_mac_binary "/proc/device-tree/ahb/eth@1a000000/mac-address" 0

Thanks

This is a more detailed guide :wink:

First of all you should type:

. /lib/functions/system.sh
find /proc/device-tree/ -name "*mac-address*"

it will output something like this:

/proc/device-tree/ahb/eth@19000000
/proc/device-tree/ahb/eth@1a000000
/proc/device-tree/ahb/wmac@18100000

Now, for every path, you have to type:

get_mac_binary "PATH" 0

for example, if the path is: /proc/device-tree/ahb/eth@19000000 you have to type:

get_mac_binary "/proc/device-tree/ahb/eth@19000000/mac-address" 0

and so on.

Let me know! :slight_smile:

Here is the output:

/proc/device-tree/ahb/eth@1a000000/mac-address
/proc/device-tree/ahb/eth@1a000000/mtd-mac-address
/proc/device-tree/ahb/eth@19000000/mac-address
/proc/device-tree/ahb/eth@19000000/mtd-mac-address-increment
/proc/device-tree/ahb/eth@19000000/mtd-mac-address
/proc/device-tree/ahb/apb/wmac@18100000/mac-address
/proc/device-tree/ahb/apb/wmac@18100000/mtd-mac-address

These are the single-line outputs:

root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/eth@1a000000/mac-address" 0
d4:6e:0e:a1:c4:db (it's the same address like on the sticker on the back of the device)
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/eth@1a000000/mtd-mac-address
" 0
00:00:00:0a:00:00
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/eth@19000000/mac-address" 0
d4:6e:0e:a1:c4:dc
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/eth@19000000/mtd-mac-address
-increment" 0
00:00:00:01:  :  root@D50v1:~# 
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/eth@19000000/mtd-mac-address
" 0
00:00:00:0a:00:00root@D50v1:~# 
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/apb/wmac@18100000/mac-addres
s" 0
d4:6e:0e:a1:c4:dbroot@D50v1:~# 
root@D50v1:~# get_mac_binary "/proc/device-tree/ahb/apb/wmac@18100000/mtd-mac-ad
dress" 0
00:00:00:0a:00:00root@D50v1:~# 
1 Like

Thank you! :slight_smile:

1 Like

Hi,

this PR should bring diag LED support (and some minor style fixes) to the D50.

Someone willing to test?

1 Like

Hi,
I got two "Archer D50" yesterday and would like to flash OpenWRT to the devices.
Unfortunately I found no way to open the cover of the device. Could you provide me with small instruction?

BTW: Are there any news about the status of the firmware? Can I still follow instructions from f5d2c91415a68f554815860d574145644fc31c1 to flash openwrt 19.07.2 firmware image?

Hi.

Yes, you can still follow the instructions. I have unfortunately no access to my D50 at the moment, so I can't help you with the opening. As far as I remember there are two screws unter the label in the edge corners downside and maybe under the gum feet.

It was at least much easier than to open D7. :joy:

I also still struggle to order a few more of these because of the great break through of @número53. Thanks again! I also were successful to change Mac Adress and converted it into a C7. Unfortunately the power consumption is still much higher (around 4W to 5W more), but ok, you have to consider your energy costs :wink:

Maybe you find the way to disable modem part in d50. Power consumption is much smaller and it worked already with OpenWRT 18.06 in ap+sta on 5 GHz at the same time. So maybe you can extend your network without using the slow fast ethernet ports as uplink. The device has the best 2,4 GHz range I have ever seen!

Hope you'll also post some performance tests.

Cheers and happy development!

@suppenkasper0815: thanks for replay. I found two screws below the label. After I removed the screws, I was able to lift the hood without destroying all the plastic latches.

Flash procedure worked like expected.

BusyBox v1.30.1 () built-in shell (ash)
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.2, r10947-65030d81f3
 -----------------------------------------------------

@suppenkasper0815 Which kind of performance tests are you interested on?

@gwlim would you also help compiling or providing us an SFE-image with wireguard and maybe USB-support for Archer D50? My power consumption of D50 is between 9W and 12W and seems still pretty much compared to my 2W WR841 device.... I messure with the same energy-meter and I am very suprised about that big diffrence. In D50 there is also just 100Mbit/s switch and just a 5G module extra compared to wr841. I still have trouble to configure it into AP+STA-Mode on 5G module... maybe you guys have some hints to test?


BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r12948-97c5fb4709
 -----------------------------------------------------

Edit: I made some performance messurements:

Straight from D50 via Client-Mode 866 Mbit/s connection speed to my 7490:

root@D50v1:/# iperf3 -c 192.168.178.193 -i 2 -t 10 -P 4 
Connecting to host 192.168.178.193, port 5201
[  5] local 192.168.178.161 port 46934 connected to 192.168.178.193 port 5201
[  7] local 192.168.178.161 port 46936 connected to 192.168.178.193 port 5201
[  9] local 192.168.178.161 port 46938 connected to 192.168.178.193 port 5201
[ 11] local 192.168.178.161 port 46940 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-2.13   sec  9.48 MBytes  37.4 Mbits/sec   74    119 KBytes       
[  7]   0.00-2.13   sec  10.2 MBytes  40.4 Mbits/sec   70    133 KBytes       
[  9]   0.00-2.13   sec  9.54 MBytes  37.6 Mbits/sec   62    120 KBytes       
[ 11]   0.00-2.13   sec  9.97 MBytes  39.3 Mbits/sec   70    123 KBytes       
[SUM]   0.00-2.13   sec  39.2 MBytes   155 Mbits/sec  276             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.13-4.06   sec  6.25 MBytes  27.2 Mbits/sec    1    130 KBytes       
[  7]   2.13-4.06   sec  6.25 MBytes  27.2 Mbits/sec    1    133 KBytes       
[  9]   2.13-4.06   sec  6.25 MBytes  27.2 Mbits/sec    3    130 KBytes       
[ 11]   2.13-4.06   sec  6.25 MBytes  27.2 Mbits/sec    2    130 KBytes       
[SUM]   2.13-4.06   sec  25.0 MBytes   109 Mbits/sec    7             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.06-6.05   sec  6.25 MBytes  26.2 Mbits/sec    0    130 KBytes       
[  7]   4.06-6.05   sec  6.25 MBytes  26.2 Mbits/sec    1    133 KBytes       
[  9]   4.06-6.05   sec  6.25 MBytes  26.2 Mbits/sec    0    130 KBytes       
[ 11]   4.06-6.05   sec  6.25 MBytes  26.2 Mbits/sec    2    130 KBytes       
[SUM]   4.06-6.05   sec  25.0 MBytes   105 Mbits/sec    3             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   6.05-8.02   sec  10.0 MBytes  42.6 Mbits/sec    0    130 KBytes       
[  7]   6.05-8.02   sec  10.0 MBytes  42.6 Mbits/sec    1    133 KBytes       
[  9]   6.05-8.02   sec  10.0 MBytes  42.6 Mbits/sec    0    130 KBytes       
[ 11]   6.05-8.02   sec  10.0 MBytes  42.6 Mbits/sec    0    130 KBytes       
[SUM]   6.05-8.02   sec  40.0 MBytes   170 Mbits/sec    1             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   8.02-10.26  sec  7.50 MBytes  28.1 Mbits/sec    0    130 KBytes       
[  7]   8.02-10.26  sec  7.50 MBytes  28.1 Mbits/sec    0    133 KBytes       
[  9]   8.02-10.26  sec  7.50 MBytes  28.1 Mbits/sec    1    130 KBytes       
[ 11]   8.02-10.26  sec  7.50 MBytes  28.1 Mbits/sec    0    130 KBytes       
[SUM]   8.02-10.26  sec  30.0 MBytes   113 Mbits/sec    1             
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.26  sec  39.5 MBytes  32.3 Mbits/sec   75             sender
[  5]   0.00-10.26  sec  39.5 MBytes  32.3 Mbits/sec                  receiver
[  7]   0.00-10.26  sec  40.2 MBytes  32.9 Mbits/sec   73             sender
[  7]   0.00-10.26  sec  40.2 MBytes  32.9 Mbits/sec                  receiver
[  9]   0.00-10.26  sec  39.5 MBytes  32.3 Mbits/sec   66             sender
[  9]   0.00-10.26  sec  39.5 MBytes  32.3 Mbits/sec                  receiver
[ 11]   0.00-10.26  sec  40.0 MBytes  32.7 Mbits/sec   74             sender
[ 11]   0.00-10.26  sec  40.0 MBytes  32.7 Mbits/sec                  receiver
[SUM]   0.00-10.26  sec   159 MBytes   130 Mbits/sec  288             sender
[SUM]   0.00-10.26  sec   159 MBytes   130 Mbits/sec                  receiver

iperf Done.

root@D50v1:/# iperf3 -c 192.168.178.193 -i 2 -t 10 -P 4 -R
Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  5] local 192.168.178.161 port 46944 connected to 192.168.178.193 port 5201
[  7] local 192.168.178.161 port 46946 connected to 192.168.178.193 port 5201
[  9] local 192.168.178.161 port 46948 connected to 192.168.178.193 port 5201
[ 11] local 192.168.178.161 port 46950 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-2.00   sec  16.4 MBytes  68.7 Mbits/sec                  
[  7]   0.00-2.00   sec  17.5 MBytes  73.3 Mbits/sec                  
[  9]   0.00-2.00   sec  13.9 MBytes  58.4 Mbits/sec                  
[ 11]   0.00-2.00   sec  16.5 MBytes  69.2 Mbits/sec                  
[SUM]   0.00-2.00   sec  64.3 MBytes   270 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-4.00   sec  12.8 MBytes  53.7 Mbits/sec                  
[  7]   2.00-4.00   sec  12.9 MBytes  54.2 Mbits/sec                  
[  9]   2.00-4.00   sec  12.6 MBytes  52.8 Mbits/sec                  
[ 11]   2.00-4.00   sec  12.4 MBytes  51.9 Mbits/sec                  
[SUM]   2.00-4.00   sec  50.7 MBytes   213 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-6.01   sec  10.2 MBytes  42.7 Mbits/sec                  
[  7]   4.00-6.01   sec  10.2 MBytes  42.7 Mbits/sec                  
[  9]   4.00-6.01   sec  10.1 MBytes  42.0 Mbits/sec                  
[ 11]   4.00-6.01   sec  10.3 MBytes  43.0 Mbits/sec                  
[SUM]   4.00-6.01   sec  40.8 MBytes   170 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   6.01-8.02   sec  10.7 MBytes  44.7 Mbits/sec                  
[  7]   6.01-8.02   sec  10.4 MBytes  43.4 Mbits/sec                  
[  9]   6.01-8.02   sec  10.2 MBytes  42.7 Mbits/sec                  
[ 11]   6.01-8.02   sec  10.1 MBytes  42.2 Mbits/sec                  
[SUM]   6.01-8.02   sec  41.3 MBytes   173 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   8.02-10.02  sec  15.3 MBytes  63.9 Mbits/sec                  
[  7]   8.02-10.02  sec  15.1 MBytes  63.3 Mbits/sec                  
[  9]   8.02-10.02  sec  15.1 MBytes  63.1 Mbits/sec                  
[ 11]   8.02-10.02  sec  14.8 MBytes  62.1 Mbits/sec                  
[SUM]   8.02-10.02  sec  60.3 MBytes   252 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.02  sec  65.9 MBytes  55.2 Mbits/sec    0             sender
[  5]   0.00-10.02  sec  65.3 MBytes  54.7 Mbits/sec                  receiver
[  7]   0.00-10.02  sec  67.0 MBytes  56.1 Mbits/sec    0             sender
[  7]   0.00-10.02  sec  66.2 MBytes  55.4 Mbits/sec                  receiver
[  9]   0.00-10.02  sec  62.4 MBytes  52.3 Mbits/sec    0             sender
[  9]   0.00-10.02  sec  61.9 MBytes  51.8 Mbits/sec                  receiver
[ 11]   0.00-10.02  sec  65.1 MBytes  54.5 Mbits/sec   16             sender
[ 11]   0.00-10.02  sec  64.1 MBytes  53.7 Mbits/sec                  receiver
[SUM]   0.00-10.02  sec   260 MBytes   218 Mbits/sec   16             sender
[SUM]   0.00-10.02  sec   257 MBytes   216 Mbits/sec                  receiver

iperf Done.
root@D50v1:/# 




Messurement from Client connected via 2G on D50 are instable between 30 Mbit/s - 80 Mbit/s connection speed@130 Mbit/s beside the device with my mobile device.

So all in all a bit disappointing if you compare it to the messurement of @gwlim with his 1043 device@slow 400MHz CPU and a constant performance of 700 Mbit/s.

I tried just with software-offloading and also with hardware-offloading enabled. There was no big diffrence and also I installed package kmod-nft-offload.

If someone has still ideas how to improve or maybe also switch bootloader to a better supported device like I did with Archer D7v1 to Archer C7v1 please let me know, especially for @gwlim if you have any idea.

Thank you very much to @all for your big support and hard work!

is it possible to flash this to tplink archer D50 via the original oem gui ? :
openwrt-19.07.3-ath79-generic-tplink_archer-d50-v1-squashfs-sysupgrade.bin
is about 4 mbyte size
the original firmware from tplink Archer_D50v1_0.8.0_1.3_up_boot(170223)_full_2017-02-24_09.37.45.bin
is about 9 mbyte size
they seem to start with the same bytes, are they compatible ? is there a "factory" firmware rather than "sysupdate"/"sysupgrade" ?

alternatively is it possible to setup a tftp server with tp_recovery.bin over ethernet cable ?

is it possible to use it as wireless repeater/range extender with WDS ?
thank you for any clues

Your Archer D50 has an integrated xDSL modem, basically two devices (Broadcom xDSL SOC plus QCA wireless) glued together. Given these circumstances, your power measurements don't surprise me (even if the Modem wouldn't be active).

Since as far as I know the device has just an ADSL Modem it's not really interesting anymore to use the modem part. Also Broadcom is a mess with openwrt.

But my idea is that these cheap second hand devices (provided on ebay under 10€) could replace the development of legendary Wr740 or Wr841 devices with the 4/32 problems.

The D50 also supports wifi5 AC with stable 866 Mbit/s as client on FritzBox 7490. Unfortunately only 8 MB Flash and 100 MBit/s, but with that it should save power compared to Gigabitswitch-devices.

Do you have any idea how we can pull down the power consumption with removing fuses or cutting the modem power lines?

The wr740 for example had just a consumption of under 2W idle compared to around 11W of the D50.