OpenWrt Support for D-Link DAP-X1860

It was successful! Thx!
But now I have another question)

I'm tried to setup wireguard according to this manual:

But when I want to install those packages, I'm getting this:
The installed version of package kernel is not compatible, require 5.10.161-1-3134fc05… while 5.10.161-1-c0b9a083… is installed.

I'm installed the latest build from github, how can I update that kernel package without messing everything up?
Sorry for dumb questions, I'm very new in this.

The problem is described here: https://openwrt.org/faq/cannot_satisfy_dependencies
As my images are self-compiled, it looks like there is no possibility to solve this without building a new image which contains wireguard.

Update: I built the last image again with wireguard support:

Link: https://github.com/RolandoMagico/openwrt/releases/tag/Build_2022-12-30_wireguard

1 Like

Thx! Now I see it in my settings, but whole OpenWRT thing is much more complicated than I expected...

I should start with basic settings, because I can't even setup Internet to work.

I have a modem from my provider with working Internet and want to create wireless network with VPN connection on AX1800.

At first I'm connected AX1800 via LAN to my laptop, to configure it and created WLAN connection on AX1800.
Then I'm connected AX1800 to my modem via LAN and connected my laptop to that WLAN.
But I have connection only with AX1800 without internet.

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=ee87dbb3fef2c0771b20967ec4a8638fdab9c9bf

Some vendors use basic gzip metadata (original filename and timestamp)
to verify valid images, along with the size of it's contents.

Also, add a new device profile variable FACTORY_IMG_NAME
which would be ideal to use with this new recipe.

Maybe relevant for the "browser does not detect correct size of image problem"?

were just merged. Since the patch has not been accepted to OpenWRT yet and these commits do not account for the D-Link DAP-X1860, the patch that was sent probably needs to be adjusted to account for new firmware package names. To be honest, what's up with the patch that was sent? Has there been any feedback?

Looks like DAP-X1860 was merged here: https://github.com/openwrt/openwrt/commit/3c31f6b521bb5fc49e222a8f2bcd454b73452a0e

Update: I built a new image with the applied patch. The kernel partition size was changed from 4096k to 8192k, so sysupgrade doesn't work. Flashing the factory image via recovery web interface is working.

Image: https://github.com/RolandoMagico/openwrt/releases/tag/Build_2023-01-07

3 Likes

After sysupgrade, the LAN port has only a speed of 100MBit here. After power off/on, link speed switches to 1GBit again. Does anybody face the same issue?

So this was not after flashing via Recovery (with LAN port initialized by bootloader), but sysupgrade?
Curious, I have not seen this, however most of the time I connect via a 10/100 USB Adapter anyways, Gigabit was just tested with a switch once, in general this is not so much if an issue with Mediatek as with ath79 and external PHYs...

Indeed, it was suggested to increase KERNEL_SIZE to 8MiB, so the final images are not compatible, you need to re-flash the new image via recovery.
Snapshots should appear tonight :slightly_smiling_face:

@SPI-Flasher I tried to see what happens when writing initramfs to the flash, and it turns out the bootloader would just complain it can't find an image header at either of the two partition offsets, i.e. the image without elx is apparently not correctly written, so I was looking to build an image with elx-header appended, but could not exactly find what to append that to, i.e. what would be the (undeclared for this device) actual build recipe used for initramfs in the first place...

Then came the merge discussion, so I prioritized that, also changing the kernel format from uImage to FIT, so now it's finally time to continue trying to build a flashable initramfs :slightly_smiling_face:

Can sysupgrade be used after having re-flashed the new image via recovery?

Sure, the (new format) sysupgrade was tested successfully for being flashed from the (new) factory, also the initramfs was tested, but only when booting via tftp (serial console required). I'm currently trying to build an initramfs image for flashing as well.

1 Like

Thanks for the fast reply! Also, thank you both a lot for the work and committment you put into supporting the D-Link DAP-x1860! I think this had to be said, now that it actually has been merged into the official OpenWRT.

I am so glad and happy about having the option to run OpenWRT. I don't have to fumble anymore to find this certain "sweet spot" in the corner of my room when I try to use my wifi clients and I got rid of a whole lot of disconnections that were caused by the OEM software. Except for the one disconnect i reported above, I have not encountered anything like it since then. With the version from 2022-12-27 and setup as repeater via relayd, so far, it's running very stable. Restarted the repeater only once manually by accident. Of course, I cannot say how the device will behave in the long run.

1 Like

@SPI-Flasher: Could you try to flash this via recovery and see if it boots? You should see LuCI at 192.168.1.1, telling you the initramfs would not save any changes etc.
openwrt-ramips-mt7621-dlink_dap-x1860-a1-initramfs-kernel-nandflash.bin

From this you should be able to sysupgrade to an image with the new format (either official snapshot, which does not contain LuCI, or the images from @RolandoMagico in post #107).
// edit: ok I just saw there is only factory.bin there :innocent:

I just copied the kernel recipe, appended elx and declared that as initramfs:

 KERNEL_INITRAMFS := kernel-bin | relocate-kernel 0x80001000 | lzma | \
	fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | \
	elx-header 011b0060 8844A2D168B45A2D

Yes, it was the last two times a did a sysupgrade. I did some ipef3 measurements after the update and the speed was always limited to about 100MBit. Also saw in my router that there is a 100MBit link. But I didn't check the link speed in OpenWrt.
Now I tried to reproduce the issue but it's working now. Not sure what went wrong during the previous updates.

If anyone is still interested, the device is currently available for € 17,- at MediaMarkt and Saturn in Germany.

1 Like

Uptime for ~ 10 days with RolandoMagico release from 2023-01-07 configured as repeater with relayd: Not a single disconnect, even though there are 3 walls in the way. RAM usage remains stable as well. Running great :slight_smile:


2 Likes

Hi, i've installed Build_2022-12-22 and everything works as expected, thx for that. After i've changed the IP for the LAN-Port to DHCP i can't get access to the LuCI. Any ideas to revert it back? I've tried to get into Recoverymode but still no Access to the Webinterface :frowning:

Edit:
Nevermind, got it working again.. have to manually set IP to: 192.168.0.2 after that i get access to the Recovery interface

btw. Thanks for your great work! :slight_smile:

powercycle + press button for reset, then reflash the image following the usual instructions:

If you don't want to do a hard reset, you could

A) check your main router, if the repeater is connected, check the given IP adress and then try to access LuCI at the given IP adress. This only works, if you have configured the repeater accordingly.
B) try to access without LuCI. In this case, please send us the output of /etc/config/network and /etc/config/wireless/.

Edit: To prevent further lockouts, follow guidelines. The docs for Wi-Fi extender / repeater / bridge configuration are up to date and work great: https://openwrt.org/docs/guide-user/network/wifi/relay_configuration

2 Likes

Usually the OpenWrt recovery mode should work, press reset during the fast-flashing period of the orange LED, it should then start flashign even faster and you end up in recovery mode with default settings (192.168.1.1. DHCP enabled).

1 Like

@ThiloteE @s_2
Thank you for your replys. As i mentioned before i was able to reset the Repeater in the meantime but had to set the IP to Static aditionally :wink:

1 Like

Wanted to give a thank you for the good documentation how to flash and the (till now) perfectly working RolandoMagic firmware I'm using. Bought the device some days ago at media markt germany for 18 euros. The device is just a "backhaul" for my Hackintosh to achieve wifi 6 speeds.

It is connected to my TP-Link EAP660HD where I'm using WPA2-EAP encryption. Would be nice to have to full wpad-wolfssl from the beginning since there is lots of space but was no problem to download wpad-wolfssl and wpa-cli into the /tmp folder, remove wpad-basic and set up the WPA2-EPA connection. Just a small hint from my side for people who want to connect to enterprise networks: The crt upload for the connection didn't work, i added it manually over ssh inside the /etc/luci-uploaded folder. Before uploading any certificate it makes sence to activate "use system certificates", log into ssh, check the log with "logread -f" and get the subject of the server certificate. Add subject and server cert to the connection settings and here we go.

Topology is like this:
Client (1000mbit) via Ethernet to DAP x1860 which is in Client mode to EAP660HD on 5ghz which is connected via 1000mbit ethernet to switch via 1000mbit to ESXI server with an debian instance and iperf3 server
This is what I got after let's say 1 1/2 walls (client is a hackintosh, connected via 1000mbit to the ethernet port):

Bidirectional TCP test
iperf3 -c 10.20.10.212 -p 5201 -t 60 -i 10 --bidir

Connecting to host 10.20.10.212, port 5201
[  5] local 10.20.10.29 port 63480 connected to 10.20.10.212 port 5201
[  7] local 10.20.10.29 port 63481 connected to 10.20.10.212 port 5201
[ ID][Role] Interval           Transfer     Bitrate
[  5][TX-C]   0.00-10.00  sec   231 MBytes   194 Mbits/sec                  
[  7][RX-C]   0.00-10.00  sec   194 MBytes   163 Mbits/sec                  
[  5][TX-C]  10.00-20.00  sec   170 MBytes   142 Mbits/sec                  
[  7][RX-C]  10.00-20.00  sec   293 MBytes   246 Mbits/sec                  
[  5][TX-C]  20.00-30.00  sec   104 MBytes  86.9 Mbits/sec                  
[  7][RX-C]  20.00-30.00  sec   374 MBytes   314 Mbits/sec                  
[  5][TX-C]  30.00-40.00  sec   111 MBytes  93.5 Mbits/sec                  
[  7][RX-C]  30.00-40.00  sec   359 MBytes   301 Mbits/sec                  
[  5][TX-C]  40.00-50.00  sec   147 MBytes   123 Mbits/sec                  
[  7][RX-C]  40.00-50.00  sec   341 MBytes   286 Mbits/sec                  
[  5][TX-C]  50.00-60.00  sec   149 MBytes   125 Mbits/sec                  
[  7][RX-C]  50.00-60.00  sec   316 MBytes   265 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID][Role] Interval           Transfer     Bitrate         Retr
[  5][TX-C]   0.00-60.00  sec   912 MBytes   128 Mbits/sec                  sender
[  5][TX-C]   0.00-60.01  sec   911 MBytes   127 Mbits/sec                  receiver
[  7][RX-C]   0.00-60.00  sec  1.84 GBytes   263 Mbits/sec    2             sender
[  7][RX-C]   0.00-60.01  sec  1.83 GBytes   262 Mbits/sec                  receiver

iperf Done.

Bidirectional TCP test with 4 Client Streams
iperf3 -c 10.20.10.212 -p 5201 -P 4 -t 60 -i 10 --bidir

Connecting to host 10.20.10.212, port 5201
[  5] local 10.20.10.29 port 63500 connected to 10.20.10.212 port 5201
[  7] local 10.20.10.29 port 63501 connected to 10.20.10.212 port 5201
[  9] local 10.20.10.29 port 63502 connected to 10.20.10.212 port 5201
[ 11] local 10.20.10.29 port 63503 connected to 10.20.10.212 port 5201
[ 13] local 10.20.10.29 port 63504 connected to 10.20.10.212 port 5201
[ 15] local 10.20.10.29 port 63505 connected to 10.20.10.212 port 5201
[ 17] local 10.20.10.29 port 63506 connected to 10.20.10.212 port 5201
[ 19] local 10.20.10.29 port 63507 connected to 10.20.10.212 port 5201
[ ID][Role] Interval           Transfer     Bitrate
[  5][TX-C]   0.00-10.00  sec  10.6 MBytes  8.88 Mbits/sec                  
[  7][TX-C]   0.00-10.00  sec  13.6 MBytes  11.4 Mbits/sec                  
[  9][TX-C]   0.00-10.00  sec  72.0 MBytes  60.4 Mbits/sec                  
[ 11][TX-C]   0.00-10.00  sec  53.6 MBytes  45.0 Mbits/sec                  
[SUM][TX-C]   0.00-10.00  sec   150 MBytes   126 Mbits/sec                  
[ 13][RX-C]   0.00-10.00  sec   105 MBytes  87.8 Mbits/sec                  
[ 15][RX-C]   0.00-10.00  sec   113 MBytes  95.2 Mbits/sec                  
[ 17][RX-C]   0.00-10.00  sec  12.4 MBytes  10.4 Mbits/sec                  
[ 19][RX-C]   0.00-10.00  sec  70.0 MBytes  58.7 Mbits/sec                  
[SUM][RX-C]   0.00-10.00  sec   301 MBytes   252 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5][TX-C]  10.00-20.00  sec  21.0 MBytes  17.7 Mbits/sec                  
[  7][TX-C]  10.00-20.00  sec  22.5 MBytes  18.9 Mbits/sec                  
[  9][TX-C]  10.00-20.00  sec  18.5 MBytes  15.5 Mbits/sec                  
[ 11][TX-C]  10.00-20.00  sec  18.3 MBytes  15.4 Mbits/sec                  
[SUM][TX-C]  10.00-20.00  sec  80.4 MBytes  67.4 Mbits/sec                  
[ 13][RX-C]  10.00-20.00  sec   125 MBytes   105 Mbits/sec                  
[ 15][RX-C]  10.00-20.00  sec   124 MBytes   104 Mbits/sec                  
[ 17][RX-C]  10.00-20.00  sec  29.1 MBytes  24.4 Mbits/sec                  
[ 19][RX-C]  10.00-20.00  sec   124 MBytes   104 Mbits/sec                  
[SUM][RX-C]  10.00-20.00  sec   403 MBytes   338 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5][TX-C]  20.00-30.00  sec  14.3 MBytes  12.0 Mbits/sec                  
[  7][TX-C]  20.00-30.00  sec  12.7 MBytes  10.7 Mbits/sec                  
[  9][TX-C]  20.00-30.00  sec  11.9 MBytes  10.0 Mbits/sec                  
[ 11][TX-C]  20.00-30.00  sec  6.92 MBytes  5.80 Mbits/sec                  
[SUM][TX-C]  20.00-30.00  sec  46.0 MBytes  38.6 Mbits/sec                  
[ 13][RX-C]  20.00-30.00  sec   123 MBytes   103 Mbits/sec                  
[ 15][RX-C]  20.00-30.00  sec   117 MBytes  98.6 Mbits/sec                  
[ 17][RX-C]  20.00-30.00  sec  50.4 MBytes  42.3 Mbits/sec                  
[ 19][RX-C]  20.00-30.00  sec   116 MBytes  97.6 Mbits/sec                  
[SUM][RX-C]  20.00-30.00  sec   407 MBytes   342 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5][TX-C]  30.00-40.00  sec  19.3 MBytes  16.2 Mbits/sec                  
[  7][TX-C]  30.00-40.00  sec  21.9 MBytes  18.4 Mbits/sec                  
[  9][TX-C]  30.00-40.00  sec  16.0 MBytes  13.4 Mbits/sec                  
[ 11][TX-C]  30.00-40.00  sec  16.7 MBytes  14.0 Mbits/sec                  
[SUM][TX-C]  30.00-40.00  sec  74.0 MBytes  62.1 Mbits/sec                  
[ 13][RX-C]  30.00-40.00  sec   123 MBytes   104 Mbits/sec                  
[ 15][RX-C]  30.00-40.00  sec   107 MBytes  89.4 Mbits/sec                  
[ 17][RX-C]  30.00-40.00  sec  60.1 MBytes  50.4 Mbits/sec                  
[ 19][RX-C]  30.00-40.00  sec   108 MBytes  90.7 Mbits/sec                  
[SUM][RX-C]  30.00-40.00  sec   398 MBytes   334 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5][TX-C]  40.00-50.00  sec  23.6 MBytes  19.8 Mbits/sec                  
[  7][TX-C]  40.00-50.00  sec  33.6 MBytes  28.2 Mbits/sec                  
[  9][TX-C]  40.00-50.00  sec  27.9 MBytes  23.4 Mbits/sec                  
[ 11][TX-C]  40.00-50.00  sec  35.0 MBytes  29.4 Mbits/sec                  
[SUM][TX-C]  40.00-50.00  sec   120 MBytes   101 Mbits/sec                  
[ 13][RX-C]  40.00-50.00  sec   120 MBytes   100 Mbits/sec                  
[ 15][RX-C]  40.00-50.00  sec  90.3 MBytes  75.8 Mbits/sec                  
[ 17][RX-C]  40.00-50.00  sec  71.7 MBytes  60.2 Mbits/sec                  
[ 19][RX-C]  40.00-50.00  sec  90.1 MBytes  75.6 Mbits/sec                  
[SUM][RX-C]  40.00-50.00  sec   372 MBytes   312 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5][TX-C]  50.00-60.00  sec  20.6 MBytes  17.3 Mbits/sec                  
[  7][TX-C]  50.00-60.00  sec  25.5 MBytes  21.4 Mbits/sec                  
[  9][TX-C]  50.00-60.00  sec  23.9 MBytes  20.0 Mbits/sec                  
[ 11][TX-C]  50.00-60.00  sec  29.9 MBytes  25.1 Mbits/sec                  
[SUM][TX-C]  50.00-60.00  sec  99.9 MBytes  83.8 Mbits/sec                  
[ 13][RX-C]  50.00-60.00  sec   108 MBytes  90.2 Mbits/sec                  
[ 15][RX-C]  50.00-60.00  sec  90.8 MBytes  76.2 Mbits/sec                  
[ 17][RX-C]  50.00-60.00  sec  84.1 MBytes  70.5 Mbits/sec                  
[ 19][RX-C]  50.00-60.00  sec  91.5 MBytes  76.7 Mbits/sec                  
[SUM][RX-C]  50.00-60.00  sec   374 MBytes   314 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID][Role] Interval           Transfer     Bitrate         Retr
[  5][TX-C]   0.00-60.00  sec   110 MBytes  15.3 Mbits/sec                  sender
[  5][TX-C]   0.00-60.06  sec   109 MBytes  15.2 Mbits/sec                  receiver
[  7][TX-C]   0.00-60.00  sec   130 MBytes  18.2 Mbits/sec                  sender
[  7][TX-C]   0.00-60.06  sec   129 MBytes  18.1 Mbits/sec                  receiver
[  9][TX-C]   0.00-60.00  sec   170 MBytes  23.8 Mbits/sec                  sender
[  9][TX-C]   0.00-60.06  sec   170 MBytes  23.7 Mbits/sec                  receiver
[ 11][TX-C]   0.00-60.00  sec   160 MBytes  22.4 Mbits/sec                  sender
[ 11][TX-C]   0.00-60.06  sec   160 MBytes  22.3 Mbits/sec                  receiver
[SUM][TX-C]   0.00-60.00  sec   570 MBytes  79.7 Mbits/sec                  sender
[SUM][TX-C]   0.00-60.06  sec   568 MBytes  79.3 Mbits/sec                  receiver
[ 13][RX-C]   0.00-60.00  sec   706 MBytes  98.8 Mbits/sec   10             sender
[ 13][RX-C]   0.00-60.06  sec   704 MBytes  98.3 Mbits/sec                  receiver
[ 15][RX-C]   0.00-60.00  sec   647 MBytes  90.4 Mbits/sec  274             sender
[ 15][RX-C]   0.00-60.06  sec   643 MBytes  89.8 Mbits/sec                  receiver
[ 17][RX-C]   0.00-60.00  sec   310 MBytes  43.4 Mbits/sec  120             sender
[ 17][RX-C]   0.00-60.06  sec   308 MBytes  43.0 Mbits/sec                  receiver
[ 19][RX-C]   0.00-60.00  sec   603 MBytes  84.4 Mbits/sec  359             sender
[ 19][RX-C]   0.00-60.06  sec   600 MBytes  83.9 Mbits/sec                  receiver
[SUM][RX-C]   0.00-60.00  sec  2.21 GBytes   317 Mbits/sec  763             sender
[SUM][RX-C]   0.00-60.06  sec  2.20 GBytes   315 Mbits/sec                  receiver

iperf Done.
1 Like