TP-Link WDR4300v1 ART-partition overwrite

I have 2 TP-Link WDR4300v1 routers (versions 1.0 and 1.2, but they do not differ in hardware). It uses 2 wifi-chips AR9344 and AR9580. I compile myself from snapshots firmware for it.

Latest snapshots builds of ar71xx (12297, 12320) doing something terrible with my ART-partition (mtd4). When i recently upgrade to this builds i lost all wifi (2.4 and 5GHz). And this is not config/wireless problem, cause i do factory reset. In dmesg log it looks like:

[    9.662487] ath: phy0: Unable to initialize hardware; initialization status: -5
[    9.864421] ath: phy1: Unable to initialize hardware; initialization status: -5

I found this to be caused by nulling the mtd ART section. Then I compiled a new firmware on 12320 with kmod-mtd-rw support. Flashed one of the ready-made ART sections from the site with these commands:

insmod mtd-rw i_want_a_brick=1
mtd unlock art
mtd -r write /tmp/art.backup art

Wifi began to work, but after a reboot, it disappeared again and the errors indicated above appeared.
Then I acted more cunningly - I flashed 12320, then I flashed the ART section without rebooting (mtd write without -r) and then I flashed the old build 12162.
And everything works as it should, plus I now have overclocked power parameters and an increased number of channels on the 2.4 and 5 GHz bands.

Additionally, I know that it is now recommended to use the ath79 (DTS) platform for the WDR4300, however, 5GHz does not work there, even with the corrected ART section. I suspect that the matter is in new drivers that are looking for parameters in the ART section in a different place than ar71xx.

My builds can be taken here:

If the ART section is damaged, firmware rollbacks to the stock will not help, nor rollbacks to previous versions of OpenWRT. Only rewriting the MTD section of ART will help.

1 Like

Could you file a bug report for this if there isn't one already?

Yep. Created 2 bug reports:
2864 and 2865

1 Like

Piotr Dymacz proposed me a patch which solves issue with art-partition. Hope this included in main tree.

TL-WDR4300v1 on ath79 build 12567 now with working 5GHz, yay =)
Tested this firmware, everything works now. Thanks bros =)

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.