Asus TUF AX4200 support

It probably has something to do with it:

Yesterday morning I also discovered the incredible. My router AX4200 stopped pinging over the network. Although the link to the computer itself was fine. The logs are empty. I made a reboot through a long-connected UART.

1 Like

Anyone try a 6.6 kernel yet?

OpenWRT work on my ax4200q. The additional 2.5G lan port work after some modifications on dts.

diff --git a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
index 22530df9bb..b282bb2166 100644
--- a/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
+++ b/target/linux/mediatek/dts/mt7986a-asus-tuf-ax4200.dts
@@ -128,6 +128,14 @@
 };
 
 &mdio {
+       phy5: phy@5 {
+               compatible = "ethernet-phy-ieee802.3-c45";
+               reg = <5>;
+
+               mxl,led-drive-vdd;
+               mxl,led-config = <0x03f0 0x0 0x0 0x0>;
+       };
+
        phy6: phy@6 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <6>;
@@ -303,6 +311,14 @@
                        label = "lan4";
                };
 
+               port@5 {
+                       reg = <5>;
+                       label = "lan5";
+                       phy-mode = "2500base-x";
+                       phy-handle = <&phy5>;
+
+               };
+
                port@6 {
                        reg = <6>;
                        label = "cpu";
2 Likes

If anybody had any issues with slowdowns, unresponsiveness, or LUA runtime errors (not being able to open luci) on the latest two snapshots, please feel free to refer to this post:

I just experienced them on AX6000. Not sure if they are related to AX4200, but posting here just in case.

I just had a similar problem with snapshot from 1-2 days ago. My router stopped responding after only one day. Please check out the post before this one for more details, in case those two are related in any way.

hi everybody today i has buy 2 asus ax4200 for only 100 chf in my local country switzerland :stuck_out_tongue:

very good price for the best router actually for me

1 Like

hi everybody today too not reason my router has suddenly not internet after verficiation i has internet modem router livebox of my isp disconnect 5h ago at the morning

i has reboot the router and internet is coming up

lost internet

insane bufferbloat with 23.05.3 thanks developper

1 Like

From what I read in other thread you should wait for the official post about 23.05.3 as packages are still being built. It could explain the problem. Maybe test again in 2-3 days: A note about using new stable releases before they are announced

1 Like

thanks for response ! yes i understand

Hi.
Is there any one who can provide the OEM partitons of TUF-AX4200Q?
I ruined Factory and Factory 2 by mistakes…
When I turn on the WLAN, it just becomes a brick… :frowning:

Thanks.

Quick question, is this also in main release? Or we still have to manual modification?

The web TRX-image worked on my AX4200 (with latest Asus firmware). Great work, thank you

3 Likes

Hello all,

I made some new bufferbloat tests this time after enabling packet steering and with pinning the interrupt of eth0 and eth1 to 2 differents cores:

root@OpenWrt_TUF_ax4200:/proc# cat /etc/hotplug.d/net/90-setting-perso-smp-affinity
#
# Recupere les irq des ports reseaux
#
IRQ_ETH0=`grep -h eth /proc/interrupts |cut -d":" -f1|head -n1`
IRQ_ETH1=`grep -h eth /proc/interrupts |cut -d":" -f1|tail -n1`

#
# Attribue les IRQ a un coeur specifique du processeur
#
echo -n 1 > /proc/irq/$IRQ_ETH0/smp_affinity
echo -n 2 > /proc/irq/$IRQ_ETH1/smp_affinity

see: https://openwrt.org/docs/guide-user/advanced/load_balancing_-_tuning_smp_irq

Same conf as before except update to 23.05.3 (FTTH 1000/400, wired 1Gbps)

With SQM cake/piece_of_cake (limit at 940000 / 400000)

grade A+
DL 884.2 Mbps ; UL 365.8 Mbps ; ping 13ms +4DL +0UL

no core was above 70% of occupation (monitored with htop) during the test

2 Likes

wouah very good you are setting directly in irq balance this ??

root@OpenWrt_TUF_ax4200:/proc# cat /etc/hotplug.d/net/90-setting-perso-smp-affinity
#
# Recupere les irq des ports reseaux
#
IRQ_ETH0=`grep -h eth /proc/interrupts |cut -d":" -f1|head -n1`
IRQ_ETH1=`grep -h eth /proc/interrupts |cut -d":" -f1|tail -n1`

#
# Attribue les IRQ a un coeur specifique du processeur
#
echo -n 1 > /proc/irq/$IRQ_ETH0/smp_affinity
echo -n 2 > /proc/irq/$IRQ_ETH1/smp_affinity

irq balance is disabled right ?

Yes, irqbalance isn't installed as I don't use it.

Since the system/configuration is mostly static (only wired ethernet, no wifi), I prefer statically pin the irq.

this is a script I placed in /etc/hotplug.d/net in order to have it executed if I reboot.

1 Like

"I created an automatic script if you want to activate it or not." Thank you, Dopam.


SMP="yes"

if [ "$SMP" = "yes" ]; then
    # Vérifie si le fichier n'existe pas avant de le créer
    if [ ! -f "/etc/hotplug.d/net/90-SMP" ]; then
        cat << "HOTPLUG" > /etc/hotplug.d/net/90-SMP

# Récupère les IRQ des ports réseaux
IRQ_ETH0=`grep -h eth0 /proc/interrupts | cut -d":" -f1 | head -n1`
IRQ_ETH1=`grep -h eth1 /proc/interrupts | cut -d":" -f1 | tail -n1`

# Attribue les IRQ à un cœur spécifique du processeur
echo -n 1 > /proc/irq/$IRQ_ETH0/smp_affinity
echo -n 2 > /proc/irq/$IRQ_ETH1/smp_affinity

HOTPLUG
    fi
elif [ "$SMP" = "no" ]; then
    # Supprime le fichier s'il existe
    if [ -f "/etc/hotplug.d/net/90-SMP" ]; then
        rm -f /etc/hotplug.d/net/90-SMP
    fi
fi

other can test if he work ?

@Mjules looking at your nice bufferbloat test results above, I'm using a GL-MT6000. Since we're both Mediatek/Filogic subtarget I figured it would be fun to test with the same settings to check if it's similar...

I'm running a snapshot from last week (kernel 6.1, gcc 13.2). SQM, cake/piece of cake, overhead 22, same dl/ul limits set. Packet steering on, however I didn't do any interrupt pinning, just disabled hardware flow offloading for the test. My cable modem is "gigabit" service rated for 950 Mbps down / 25 Mbps up.

My results are similar, in the 860-890 Mbps range, A+ ratings, +2ms/+0ms, CPU 0-3 all at 40-70% load during max download:

1 Like

Excuse me, but could you please provide this data again? It seems that it's expired now.

Thanks for your efforts!

Hi
I'm planning to switch to a better router and I'm reading some information about Asus AX4200 and GL.iNet Flint2 AX6000.
Is the Asus version of OpenWrt stable enought for daily use?

Hi, I use AX4200 as home router - WAN: PPPoE 600/100 Mb/S, WiFi - 10 devices (2,4GHz) + 5 devices (5GHz), all devices in LAN: 40+, Wireguard.

Uptime:65d 14h 48m 41s

1 Like