OpenWrt support for TP-Link Deco M4R

would that mean remove those 3


and install the once without -ct? Or is only 1 of them enough?

I tried this in the past, but after an update it was reversed to the -ct drivers.

Also, does anyone know if the -ct drivers will be improved in v23.x, I very much like to try

The third one obviously has nothing to do with the ath10k drivers.

And I doubt anyone in here knows anything about driver development. I sure don't.

You should probably ask directly about ath10k driver development or find the appropriate post about it. Many devices use those, so there should be some discussion out there.

The kmod and the firmware go together, if you replace the kmod, swap the firmware too.

thanks,
I tried this

opkg update
opkg remove ath10k-firmware-qca9888-ct kmod-ath10k-ct
opkg install ath10k-firmware-qca9888 kmod-ath10k
reboot

now let's see if my random failures for some devices stop

Is there openwrt firmware for the Deco M4R V3?

The answer to this question is already in the thread...

Someone with a Deco M4R V3 (you for example) needs to open up their device, solder 3 wires to it and gain access to the serial console that way.

As long as that doesn't happen, there will likely never be a firmware for the V3.

I would love to help out with this and I'm comfortable with opening it up and soldering. Could you provide some steps for me?

Let me CTRL+F that for you... Here is a picture for the M4R v3 by Bob (who else...) right in this forum: OpenWrt support for TP-Link Deco M4R - #161 by bobthebuilder and you can find another picture for the other side of the PCB in the post right below his: OpenWrt support for TP-Link Deco M4R - #162 by marcpot.

As for disassembly, I think you are on your own, but for v1 and v2 it was not rocket science, the screws were under the rubber feet on the bottom of the device. I wrote about this a while ago. OpenWrt support for TP-Link Deco M4R - #44 by pixelthurst

Good luck and keep us posted... :wink:

1 Like

That underside by marcpot is of the V4.

The casing should be the same for all versions, so here is my disassembly "guide" for the V2: https://imgur.com/a/gK1CHMb

This is what the top and underside of the V3 look like: https://imgur.com/a/cjfy8CN

And this is what the serial console should spit out: https://pastebin.com/JfYY1uQs

I don't have the device myself. @2pferdebert made the photos and got that serial console output. But he didn't reply back after November 2021, so I'm guessing he won't come back to work on this any further.

You can see in my guide for the V2 what kind of jumper cables I used. Don't use the ones where the pin sticks out. You don't want to accidentally make contact with anything on the board later on because you're going to leave those cables on.

In the photo of the underside of the V3 you can see the solder points you need to attach them to on the right side. We need cables for TXD, RXD and GND. Don't attach a cable to VCC because attaching that to the usb-2-ttl can lead to you damaging your PC.

I can only guess what the voltages are that the V3 is working at. The V2 is working at 3.3V and I'm guessing the V3 is the same. But you should verify that with a multimeter. Just test the voltage between VCC and GND.

And then you need a 3.3V usb-to-ttl to connect the Deco to your PC. Here is an example: https://www.amazon.com/Serial-Adapter-Signal-FT232RL-Windows/dp/B07RBKCW3S/

If you've got Windows on your computer then I suggest using Putty to connect to the Deco via the usb adapter. If you've got another OS then you need to find yourself a program for serial connections.

You might need to play around with the baudrate if the output is garbage. Not even all TP-Link devices use the same for their serial output.

Getting into the command prompt of the bootloader is done by repeatedly typing "tpl".

And once all of that is done then we need to see if someone from the Deco M5 developers can cook up a ramfs test firmware for us.

1 Like

Version 3 serial port 115200 results at Deco4MR V3 - Pastebin.com
I need a working username/password.

Bootloader command prompt results at Deco4M4v3 boot manager - Pastebin.com

Deco4MR v3 photos:


The pastebin links are set to private.

username/password is something you won't be getting. But you don't need it.

The M4R V3 is basically an M5 in the case of an M4R. I've sent at least 2 people over to the M5 post, but so far none of that got any results.

It seems @oklona was working on it: IPQ4019: Adding support for TP-Link Deco M5 - #188 by oklona

And it seems that you can get a working (for the M5) copy of the source code from @Tomer here: IPQ4019: Adding support for TP-Link Deco M5 - #235 by Markcali

To test, you would take the source code from Tomer, adjust the .dts for the M5 to match your device's flash partition layout, compile that and try the resulting init-ramfs image on your device by loading it into RAM from the bootloader and starting it from there. That way you can test firmwares without having to flash and potentially brick anything.

But I have zero experience with the ipq4019 SoC, so I'm hoping that you either know your way around this anyway or that @oklona or @Tomer can help out.

1 Like

paste exposure changed from private to unlisted, according to Bing AI.

Hello! Yes, I was working on it, but ran out of time. I started with the firmware-utils' tplinksafeloader, which needs to be updated for the M4R as well. Another forum member (@undisputed-seraphim) added the necessary changes for the M5 after I had the main code of tplink-safeloader updated to cater for different partition names. So, in order for this to work for M4R as well, all you need to do, is to create a section for M4R similar to what was added for the M5 here: https://github.com/openwrt/firmware-utils/pull/7/files

After that, there is only a few files that will need to be changed from the latest sources to make it work. Mostly you just need to find all references to Deco-M5 (could be different spellings, I don't remember), and create similar for M4R. Make sure to include the "R", since regular M4 is a completely different device. I don't own an M4R, so I am unfortunately unable to discuss much beyond simple theory...

Isn't the tplink-safeloader only needed if you want to return to an oem firmware by flashing it within openwrt, so the oem firmware needs to be formed so that it works like a sysupgrade image?

Because we don't really need that with the M4R since it has a recovery webpage straight from the bootloader, that flashes oem firmwares.

And @naf wrote a nice little exploit that I hope works on the V3 too. With that you can load via tftp and boot any openwrt init-ramfs firmware you want, so we don't even need any factory firmware. And once the ramfs firmware is booted, you can simply flash the sysupgrade firmware to make it permanent.

So I think that for the M4R we can ignore the tplink-safeloader util. Or maybe someone knows why we still need it?

And I don't think there is a difference between M4R and M4. The box my devices came in says "M4", but the bottom labels on the devices say "M4R".


@murraydr44 if you hold down the reset button while the device boots, do you get the recovery web page?

And your next step would be to set up your image building environment: https://openwrt.org/docs/guide-developer/toolchain/beginners-build-guide

Once you've done that, to test on your V3 you likely only need to change the partitions in the dts of the M5 and then try the resulting init-ramfs firmware via the bootloader.

1 Like
C:\Windows\System32>ipconfig /renew

Windows IP Configuration

No operation can be performed on Wi-Fi while it has its media disconnected.
No operation can be performed on Local Area Connection* 1 while it has its media disconnected.
No operation can be performed on Local Area Connection* 2 while it has its media disconnected.

Should I set a local IP to see the webpage, like 192.168.1.2 ?

This is the IP the Deco uses for the webpage: http://192.168.0.1/

So you should use something between 192.168.0.2 and 192.168.0.254 for your computer.

1 Like
Firmware Upgrade
Choose the firmware file from your local disk and click Upgrade.

No file chosen 
 0%
Tips:
Do NOT power off your Decos during the upgrade.
Make sure the firmware file you choose is correct.