Optimized build for the D-Link DIR-860L

This problem goes away when I do:

uci set wireless.radio0.noscan=1
commit
wifi

Sorry for replying on my own posts.

I just tried a vanilla master image, and a personal build from master, but the 2,4 GHz radio is not showing up. Has anyone seen something similar lately?

Thanks.

Finally I found the time to do some tests on the build with kernel 5.4.

wifi: same speeds of r12255 build, no noticeable differences in 2,4G and 5G, in both laptop and phone

lan: in my laptop, using the kernel 5.4 build, the speed is less than half than the previous build:

r13097:

LAN TEST ON r13097
Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.127 port 55070 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  34.4 MBytes   289 Mbits/sec    9    301 KBytes       
[  5]   1.00-2.00   sec  34.5 MBytes   289 Mbits/sec    5    219 KBytes       
[  5]   2.00-3.00   sec  34.7 MBytes   291 Mbits/sec    2    225 KBytes       
[  5]   3.00-4.00   sec  37.8 MBytes   317 Mbits/sec    1    240 KBytes       
[  5]   4.00-5.00   sec  37.3 MBytes   313 Mbits/sec    1    256 KBytes       
[  5]   5.00-6.00   sec  36.9 MBytes   310 Mbits/sec    1    269 KBytes       
[  5]   6.00-7.00   sec  37.8 MBytes   317 Mbits/sec    1    284 KBytes       
[  5]   7.00-8.00   sec  37.3 MBytes   313 Mbits/sec    4    294 KBytes       
[  5]   8.00-9.00   sec  37.4 MBytes   314 Mbits/sec    7    214 KBytes       
[  5]   9.00-10.00  sec  37.5 MBytes   314 Mbits/sec    1    232 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   366 MBytes   307 Mbits/sec   32             sender
[  5]   0.00-10.01  sec   365 MBytes   306 Mbits/sec                  receiver

iperf Done.

Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.127 port 55074 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  35.0 MBytes   294 Mbits/sec   11    215 KBytes       
[  5]   1.00-2.00   sec  35.3 MBytes   296 Mbits/sec    2    223 KBytes       
[  5]   2.00-3.00   sec  37.7 MBytes   316 Mbits/sec    1    239 KBytes       
[  5]   3.00-4.00   sec  36.2 MBytes   304 Mbits/sec    6    252 KBytes       
[  5]   4.00-5.00   sec  37.5 MBytes   314 Mbits/sec    2    264 KBytes       
[  5]   5.00-6.00   sec  37.3 MBytes   313 Mbits/sec    2    276 KBytes       
[  5]   6.00-7.00   sec  37.3 MBytes   313 Mbits/sec    2    291 KBytes       
[  5]   7.00-8.00   sec  37.3 MBytes   313 Mbits/sec    1    301 KBytes       
[  5]   8.00-9.00   sec  36.7 MBytes   308 Mbits/sec    6    219 KBytes       
[  5]   9.00-10.00  sec  37.7 MBytes   316 Mbits/sec    1    238 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   368 MBytes   309 Mbits/sec   34             sender
[  5]   0.00-10.01  sec   367 MBytes   308 Mbits/sec                  receiver

iperf Done.

Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.127 port 55078 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  35.8 MBytes   300 Mbits/sec   16    223 KBytes       
[  5]   1.00-2.00   sec  34.0 MBytes   285 Mbits/sec    4    226 KBytes       
[  5]   2.00-3.00   sec  34.0 MBytes   285 Mbits/sec    2    232 KBytes       
[  5]   3.00-4.00   sec  35.9 MBytes   301 Mbits/sec    7    239 KBytes       
[  5]   4.00-5.00   sec  36.4 MBytes   305 Mbits/sec    1    253 KBytes       
[  5]   5.00-6.00   sec  37.3 MBytes   313 Mbits/sec    1    272 KBytes       
[  5]   6.00-7.00   sec  37.3 MBytes   313 Mbits/sec    2    284 KBytes       
[  5]   7.00-8.00   sec  37.5 MBytes   315 Mbits/sec    1    298 KBytes       
[  5]   8.00-9.00   sec  37.5 MBytes   315 Mbits/sec    4    215 KBytes       
[  5]   9.00-10.00  sec  37.3 MBytes   313 Mbits/sec    2    230 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   363 MBytes   304 Mbits/sec   40             sender
[  5]   0.00-10.01  sec   362 MBytes   304 Mbits/sec                  receiver

iperf Done.



LAN TEST ON r12255
iperf3 -c 192.168.1.1

[  5] local 192.168.1.127 port 54134 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  91.5 MBytes   768 Mbits/sec    0    376 KBytes       
[  5]   1.00-2.00   sec  92.3 MBytes   774 Mbits/sec    0    376 KBytes       
[  5]   2.00-3.00   sec  91.7 MBytes   769 Mbits/sec    0    376 KBytes       
[  5]   3.00-4.00   sec  92.2 MBytes   773 Mbits/sec    0    376 KBytes       
[  5]   4.00-5.00   sec  91.7 MBytes   769 Mbits/sec    0    376 KBytes       
[  5]   5.00-6.00   sec  92.3 MBytes   774 Mbits/sec    0    376 KBytes       
[  5]   6.00-7.00   sec  92.1 MBytes   772 Mbits/sec    0    376 KBytes       
[  5]   7.00-8.00   sec  92.0 MBytes   772 Mbits/sec    0    376 KBytes       
[  5]   8.00-9.00   sec  91.9 MBytes   771 Mbits/sec    0    395 KBytes       
[  5]   9.00-10.00  sec  92.0 MBytes   771 Mbits/sec    0    553 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   920 MBytes   771 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   918 MBytes   770 Mbits/sec                  receiver

iperf Done.

Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.127 port 54138 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  80.6 MBytes   676 Mbits/sec    4    329 KBytes       
[  5]   1.00-2.00   sec  95.8 MBytes   804 Mbits/sec    0    334 KBytes       
[  5]   2.00-3.00   sec  95.6 MBytes   802 Mbits/sec    0    335 KBytes       
[  5]   3.00-4.00   sec  95.7 MBytes   803 Mbits/sec    0    335 KBytes       
[  5]   4.00-5.00   sec  95.5 MBytes   801 Mbits/sec    0    341 KBytes       
[  5]   5.00-6.00   sec  95.4 MBytes   801 Mbits/sec    0    341 KBytes       
[  5]   6.00-7.00   sec  95.5 MBytes   801 Mbits/sec    0    341 KBytes       
[  5]   7.00-8.00   sec  95.7 MBytes   803 Mbits/sec    0    345 KBytes       
[  5]   8.00-9.00   sec  95.4 MBytes   801 Mbits/sec    0    354 KBytes       
[  5]   9.00-10.00  sec  95.9 MBytes   804 Mbits/sec    0    369 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   941 MBytes   790 Mbits/sec    4             sender
[  5]   0.00-10.00  sec   940 MBytes   788 Mbits/sec                  receiver

iperf Done.

Connecting to host 192.168.1.1, port 5201
[  5] local 192.168.1.127 port 54142 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  95.8 MBytes   803 Mbits/sec    0    389 KBytes       
[  5]   1.00-2.00   sec  95.6 MBytes   802 Mbits/sec    0    389 KBytes       
[  5]   2.00-3.00   sec  95.7 MBytes   803 Mbits/sec    0    389 KBytes       
[  5]   3.00-4.00   sec  86.6 MBytes   727 Mbits/sec    0    407 KBytes       
[  5]   4.00-5.00   sec  91.9 MBytes   771 Mbits/sec    0    407 KBytes       
[  5]   5.00-6.00   sec  91.7 MBytes   769 Mbits/sec    0    407 KBytes       
[  5]   6.00-7.00   sec  81.6 MBytes   684 Mbits/sec    0    471 KBytes       
[  5]   7.00-8.00   sec  95.8 MBytes   804 Mbits/sec    0    471 KBytes       
[  5]   8.00-9.00   sec  95.1 MBytes   797 Mbits/sec    0    471 KBytes       
[  5]   9.00-10.00  sec  95.6 MBytes   802 Mbits/sec    0    471 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   925 MBytes   776 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   924 MBytes   775 Mbits/sec                  receiver

iperf Done.

Even with a factory reset and new flash without keeping settings, I have settings not sticking so I can't perform stability tests and log catching.
Hope to see a stabler 5.4 kernel build soon :slight_smile:

1 Like

Have you turned on RPS as recommended?

System --> Startup --> Local startup:

echo e > /sys/class/net/eth0/queues/rx-0/rps_cpus

Save and reboot.

I am on 5.4.42 now, and with the above setting, I can easily get 800Mbps NAT speed (soft offload ON), and the LAN is 930-940Mbps (same as it always was).

I had this issue when I first upgraded from 4.14 to 5.4. Putting the factory image back via recover resolved this issue.

2 Likes

Me too :slight_smile: Couple of last test builds had WiFi not starting unfortunately.

Also, I am moving to a TP-Link MR600 since it has an integrated LTE modem. Can still provide builds but they won't be hardware tested as they used to be. To add to that, as you have noticed I am not that active anymore due to free time being sparse. Having said that, in a month, I have a two months vacation and if there is time after trying to hack the MR600, I will give the DIR860L/MIR3G some love :slight_smile:

2 Likes

Figured out why the wifi didn't work on the master branch. The wifi PHY names got changed and thus hostapd could not bring them up. You could probably do this easier but a factory reset and setting up the interfaces from scratch did the trick. Currently testing r13533 which has some interesting commits included (packet steering and ethernet driver improvements).

Some preliminary WiFi throughput numbers:
5 GHz:

[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.00 sec 1.12 GBytes 320 Mbits/sec sender
[ 4] 0.00-30.00 sec 1.12 GBytes 320 Mbits/sec receiver

2.4 GHz (heavily congested appartment building, peaking at 72,6 Mbits/s):

[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 164 MBytes 45.8 Mbits/sec sender
[ 4] 0.00-30.01 sec 164 MBytes 45.8 Mbits/sec receiver

Since I have a 25 Mbit/s symmetrical connection I am not able to really test packet steering under real life conditions.

3 Likes

I can't wait to test the new build and thanks for still providing fresh builds for the DIR860L! <3

1 Like

Could you provide the output of the following command on the current build?

cat /proc/mtd

@Axl_Mas has problems with the settings sticking and I think it has to do with which flash memory addresses are mounted.

So settings might not stick and you have to do a factory reset in order to make WiFi work. For the brave people wanting to test, remember you do so at your own peril :wink: r13533

Im still using r12255.

 OpenWrt SNAPSHOT, r12255-0709943182
 -----------------------------------------------------
root@DIR-860L-AP1:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00004000 00010000 "u-boot-env"
mtd2: 00004000 00010000 "radio"
mtd3: 00008000 00010000 "factory"
mtd4: 00010000 00010000 "defaults"
mtd5: 00fb0000 00010000 "firmware"
mtd6: 001dffc0 00010000 "kernel"
mtd7: 00dd0000 00010000 "rootfs"
mtd8: 00510000 00010000 "rootfs_data"
1 Like

Thanks for the info, that helps a lot since I don't have the device anymore.
You are probably going to flash the newer build, could you also run the same command on it please? :hugs:

Sure, no roblem. I do own a second DIR-860L and I will flash r13533 in a couple of minutes and provide the output of the command. brb :wink:

1 Like

Here we go:

 OpenWrt SNAPSHOT, r13533-69f6fc7b15
 -----------------------------------------------------
root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00004000 00010000 "u-boot-env"
mtd2: 00004000 00010000 "radio"
mtd3: 00008000 00010000 "factory"
mtd4: 00010000 00010000 "defaults"
mtd5: 00fb0000 00010000 "firmware"
mtd6: 0024ffc0 00010000 "kernel"
mtd7: 00d60000 00010000 "rootfs"
mtd8: 00510000 00010000 "rootfs_data"

I can confirm that Wifi (2.4 + 5GHz) is working fine. I flashed the build (openwrt-ramips-mt7621-dlink_dir-860l-b1-squashfs-factory.bin) via recovery.

1 Like

Thanks for the information.
If you compare both outputs, mtd6 and mtd7 have different sizes, both larger in the newer build.

Do you settings stick after a reboot? In case they don't create a conf files backup so if sh*t hits the fan, you can always upload those :slight_smile:

My changed settings were still valid after a reboot but sadly I can't use this build in my enviroment.
First of all I can't get along with DSA (imho not very userfriendly if you need vlans) and second there is no more ebtables included in your latest build. I've just installed 19.07.3 to see if this build will fit my needs. Kernel Version seems to be a bit newer than r12255 but the first problem that I've encountered with this official OpenWRT build is that DFS channels are not working, only channel 36 seems to be working, otherwise I do get "Wireless is not associated" the following syslog entry:

daemon.notice netifd: radio0 (7271): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 6949 path ()
daemon.notice netifd: radio0 (7271): Device setup failed: HOSTAPD_START_FAILED

If I can't fix this error I will return to your r12255 build as I never had any issues with it.

The change to a DSA is a big one. Unfortunately I don't use vlan so can't offer you advise there.
Forgot to include ebtables. It will be present in the next (test-)build.

Have you set your country in WiFi settings?

1 Like

Thanks, I've tried with driver default and with my country. I'll stick to your r12255 build as Wifi doen't seem to be stable on 19.07.3 (several clients got disconnected a couple of times). The change to DSA really bothers me as swconfig always worked fine and afaik DSA can't even be proper configured via Luci.

Strange since the WiFi never has been more stable for me with the devices I connect to it. So YMMV I guess.
DSA is the chosen path so when 19.07 doesn't get anymore updates that's it for swconfig. Reading this topic it looks like you are able to use vlans but you have to jump through a few hoops which are on fire :sweat_smile:

Keep in mind that I was talking about the Wifi with 19.07.3. I haven't tested the wifi much with your latest build as this build is pretty much not useable for my envirioment. I do need ebtables and working vlans for my IOT and guest network. I'll test DFS and Wifi throughput with your latest build later on and report back but to be honest I never had problems with the wifi on r12255, it was always stable and the throughput was also fine.
The "ethernet driver improvements" sound quite interesting but I don't even know if that would do anything for my DIR860L as I'm using it only as a smart switch + AP behind my main Router (WRT3200ACM).
Anyway if i figure out how DSA works (thanks for the link) I'll give the next (test)build a try in my productive enviroment. The good thing is that I have a second backup device so I can quickly change back to r12255 if something goes wrong.

2 Likes

I finally found the time for some tests...

cat /proc/mtd results are the same already posted by @Kherby

OpenWrt SNAPSHOT, r12255-0709943182
 -----------------------------------------------------
root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00004000 00010000 "u-boot-env"
mtd2: 00004000 00010000 "radio"
mtd3: 00008000 00010000 "factory"
mtd4: 00010000 00010000 "defaults"
mtd5: 00fb0000 00010000 "firmware"
mtd6: 001dffc0 00010000 "kernel"
mtd7: 00dd0000 00010000 "rootfs"
mtd8: 00510000 00010000 "rootfs_data"



OpenWrt SNAPSHOT, r13533-69f6fc7b15
 -----------------------------------------------------
root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00004000 00010000 "u-boot-env"
mtd2: 00004000 00010000 "radio"
mtd3: 00008000 00010000 "factory"
mtd4: 00010000 00010000 "defaults"
mtd5: 00fb0000 00010000 "firmware"
mtd6: 0024ffc0 00010000 "kernel"
mtd7: 00d60000 00010000 "rootfs"
mtd8: 00510000 00010000 "rootfs_data"

But in my case there is no way to keep settings after reboot on r13533.
I tried to flash factory build from D-Link recovery, to normally flash the update without to save settings, reset after install, double flashing but the settings are not saved in any way.
Also after set manually the new settings and saving them as backup, after a reboot I can't restore it.
@Bartvz , if you have any idea or tests to perform please let me know

I've just flashed r13533 again on my backup device to do some speedtests and I can confirm now that any saved settings will be gone after a reboot. So it seems to a generell problem with r13533.
I guess we have to wait for the next build...

1 Like