IPQ4019: Adding support for TP-Link Deco M5

Hi @DropDemBits

Since I didn't change the configuration I hadn't touched much, and I tried to edit Network/Interfaces/lan and it shows me an error that says:
"TypeError
Cannot read properties of undefined (reading 'apply')"
If you apply the changes from ssh /etc/config/network, it saves the changes.
So to test, I flashed it again via tftp and it shows the same error, so my firmware may have been wrong.
But it seems that the model is different from the one you need.
Thanks. :grinning:

1 Like

Hi @calebfn
Can you describe what configuration changes you tried to do?
Can you also try resetting to defaults via System > Backup / Flash Firmware / Restore / Perform Reset? You can back up your configuration via the Backup / Generate Archive button on the same screen.

Thanks :grinning:
It seems that there was a problem with the previous compilation.

I deleted the openwrt folder and started the compilation from scratch.
Now it doesn't show error when pressing the edit button in Network > Interfaces > lan

Sat Jan 11 16:22:40 2025 kern.info kernel: [ 0.955606] spi-nor spi0.0: w25q256 (32768 Kbytes)

Firmware Version OpenWrt SNAPSHOT r28539-7d4a8a2495 / LuCI Master 25.011.06450~2520588

Kernel Version 6.6.69

1 Like

I don't know if this goes against forum etiquette, but would somebody please help me with this device? IPQ4019 - Support for Netgear Orbi RBR20 & RBS20 - For Developers - OpenWrt Forum. I've been using the Netgear LBR20 and RBR50 as references, but I'm at a standstill with the DTS file. Not sure about partitioning and calibration data, either. I did finally obtain a serial cable and am able to connect to the router.

1 Like

Hi @DropDemBits , I've compiled and flashed my 3.20EU from your branch. It boots correctly. XM25QH256B is now detected as spi-nor-generic in dmesg.

Before:

root@OpenWrt:~# dmesg | grep "spi-nor"
[    0.813534] spi-nor spi0.0: XM25QH256B (32768 Kbytes)

After:

root@OpenWrt:~# dmesg | grep "spi-nor"
[    0.956072] spi-nor spi0.0: spi-nor-generic (32768 Kbytes)

Thank you for making OpenWrt for the M5 :grinning:

3 Likes

I've compiled this build (M5v3) and all seems good and stable - thank you and hopefully it'll soon make it to the main openwrt.

[ 0.955609] spi-nor spi0.0: w25q256 (32768 Kbytes)

One thing to note (and it's not specific to this version as that's been the case since even the 21.* era) - for me the 2.4GHz radio isn't stable with the default ath10k-ct fimware/drivers. I've configured the build to go with the ath10k (non-ct) ones and all is smooth :slight_smile: Seems like I'm not alone (other routers, though): https://github.com/openwrt/openwrt/issues/14089

2 Likes

Thanks! Branch has been updated to drop the XMC patch, and rebased to latest master.

1 Like

Is this updated version available in released form that I can download? Not everyone has the expertise to compile the firmware him/her-self. Thanks!

Not yet. Please expect a version to drop next week.

3 Likes

Version 24.10.0 has been dropped in Releases ¡ dutchmillbytes/openwrt

Firmware for v2 and v3 have been tested and are running without issues. You can use the standard sysupgrade method to upgrade from 23.05.5 to 24.10.0. You might need to reconfigure the 5GHz network - this seems to be a possible issue with 24.10.0.

4 Likes

I've flashed v3 via the web ui with the sysupgrade image. The flashing and reboot took about 2 minutes. All settings were retained. sysupgrade -b now contains two new files: /etc/uci-defaults/10_disable_services and /etc/config/ubihealthd.

After reboot, the web ui shows the new version number. So, it appears to be a flawless upgrade.

Thanks for the positive news! The 24.10.0 uses kernel version 6.1, can you please check if this m5 build is affected by the issue # 14464 documented in this link? (https://github.com/openwrt/openwrt/issues/14464)

The official 24.10.0 runs kernel 6.6.73 and so does dutchmill's deco m5 24.10.0 branch.

My deco's are also running as APs. This is what is in dmesg right now:

# dmesg | cut -d ']' -f 2 | uniq -c | tail
      1  ath10k_ahb a000000.wifi phy0-ap2: entered allmulticast mode
      1  ath10k_ahb a000000.wifi phy0-ap2: entered promiscuous mode
      1  br-lan: port 5(phy0-ap2) entered blocking state
      1  br-lan: port 5(phy0-ap2) entered forwarding state
      1  ath10k_ahb a000000.wifi: Invalid peer id 1 or peer stats buffer, peer: ade308d7  sta: 00000000
    296  ath10k_ahb a000000.wifi: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0  arvif->paused: 0x0
      1  ath10k_ahb a000000.wifi: htt tx: fixing invalid VHT TX rate code 0xff
    517  ath10k_ahb a000000.wifi: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0  arvif->paused: 0x0
      1  ath10k_ahb a000000.wifi: Spurious quick kickout for STA 68:67:25:34:21:82
     96  ath10k_ahb a000000.wifi: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0  arvif->paused: 0x0

I see no own address as source address but neither am I sure that my situation is the same as what is mentioned in the issue.

I tried to install the 24.10.0 version to my Deco M5 v1 device but failed. I first tried to flash the 24.10.0 sysupgrade image from 23.05.5 web interface, the led of the deco m5 would turn off a little while after powering on the device, pc connected to either ethernet ports doesn’t get assigned a valid ip address. I then tried to upgrade via tftp using factory bin, same result. I also tried the factory bin image for v3 deco m5 which works on v1 device for the 23.05.5 version, it doesn’t work either, the only difference is that the led stays yellow after booting up, but pc got no ip assigned. Reverting back to 23.05.5 version and everything is back to normal. Not sure how to troubleshoot this issue.

I have uploaded a new version of the v1 firmware. Can you please try this version?

Hi @dutchmill, thank you for taking effort to try to help me! I just installed your new updated v1 firmware, unfortunately it still doesn’t work, behaves exactly the same as previous version. I left the router staying plugged in for over 10 minutes after the tftp upload in case it needs more time for the new firmware to boot up but no luck. Another symptom is that the reset button has no effect when I try to press it to reset the router, I pressed it over 30 seconds.

Thanks! And everybody else who worked on this firmware!
I just successfully upgraded my M5 v3 Deco's to version 24.10. They were all running on 23.05. Everything seems to be running stable. I have a configuration where my Deco's are just dump AP's and broadcasting multiple SSIDs with different VLANs.

Sysupgrade to 24.10 was not working because they all became unresponsive after flashing. I did a reset (button) for the first Deco, configured it and created a backup. After resetting (button) the other Deco's I used this backup to configure them more quickly.

Thanks for sharing your experience! I have the same issue as you that the router would become unresponsive after flashing the 24.10.0 image, regardless of using sysupgrade or factory image on my v1 device, trying to reset the router using the reset button doesn’t fix the non-responsive issue for me though, it just doesn’t seem to do anything on v1 device no matter how long I press the reset button. @dutchmill has been trying to help me but so far no solution yet for v1 m5 device.

What I did after resetting is put a network cable in the LAN port directly connected to my PC. Give your PC a static address like 192.168.1.2. The default address on the LAN port after resetting is 192.168.1.1. You can then access the OpenWRT Luci web interface.

The LAN port on the Deco is the port furthest away from the power plug. The port next to the power plug is the WAN port.

Unfortunately resetting the router after 24.10.0 flashing doesn't work on v1 m5 device, it just does nothing.