Asus TUF AX4200 support

Seem like an interesting device, but not sure about real power consumption with 2.4G+5G wifi enabled.

The overclockers.ua review here: https://www-overclockers-ua.translate.goog/net/asus-tuf-gaming-ax4200/all/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp
is not very specific: "the wireless router requires about 5 W when idle, while under load the consumption increases to 9โ€“12.5 W, depending on the activity of the Wi-Fi transceivers."

It's quite high compared to BPI3 with the same SoC reviewed here: https://wiki.junicast.de/en/junicast/review/bananapi-BPI-R3#power-consumption
Could anyone pls test the power consumption with openwrt (idle vs active with both wifi enabled)?

/sys/kernel/debug/ppe0/bind is also empty but I can see records in the entries file.

A post was split to a new topic: Requesting support for Asus tx-ax6000

3 posts were split to a new topic: Comparing adblock performance on Asus TUF AX4200 vs Dynalink x36

I can confirm that it idles at 4800mW with both wifi enabled. For what I use it for, I can add an extra 500~600mW under load but YMMV. If you hammer it with 20 wireless clients maxing out a 1Gb WAN connection, you might reach the kind of numbers that site wrote down but that's definitely not my use case.

On a side note, snapshot r23581 (yesterday's build) crashed during the night. Both wireless and wired went down so couldn't grab a log. Could be bad luck or a recent regression, IDK.

3 Likes

I tested today router with switch HP 1920S. Configured between router and switch 4 x 1Gb LACP link. Behind the switch I have had two 1Gb iperf servers. Connected to the router client with AX210 card and performed tests to two servers. All links connected to the router switch without firewall and WAN.
results:
upload

iperf to first server:


...
[SUM]  58.00-59.00  sec   102 MBytes   860 Mbits/sec    0             
....
[SUM]   0.00-60.00  sec  5.37 GBytes   769 Mbits/sec    7             sender
[SUM]   0.00-60.02  sec  5.37 GBytes   768 Mbits/sec                  receiver

iperf to second server:

...
[SUM]  59.00-60.00  sec  88.8 MBytes   744 Mbits/sec    5             
....
[SUM]   0.00-60.00  sec  4.54 GBytes   651 Mbits/sec   27             sender
[SUM]   0.00-60.04  sec  4.54 GBytes   649 Mbits/sec                  receiver

download:
iperf to first server:

[SUM]   0.00-60.01  sec  5.43 GBytes   777 Mbits/sec  7403             sender
[SUM]   0.00-60.00  sec  5.42 GBytes   776 Mbits/sec                  receiver

iperf to second server:
[SUM] 0.00-60.03 sec 5.54 GBytes 792 Mbits/sec 4885 sender

summary between Wifi client and two servers:
upload: 649 Mbits + 768 Mbits = 1417 Mbits so its a transfer like 1,51Gb with LACP link.
download: 792 Mbits + 776 Mbits = 1568 Mbits so its a transfer like 1,7Gb with LACP link.

I think it's a real limitation of the wifi for one client.

CPU usage around: 20%.
version: OpenWrt SNAPSHOT r23550-8f7be2a2ba

best regards,
Patryk

2 Likes

Nice benchmarks. Seems like with the Filogic 830 this Asus has the potential to be a top tier wifi 6 router for OpenWrt if support gets added (24.0x release with a non-serial flash available etc).

I think that currently there is not any option to flash this router without serial connection. Maybe there is some possibility to set uBoot variables but the vendor software doesn't contain relevant software. We need to compile uboot tools for AsusWRT but because of library limitations on the AsusWRT it could be difficult. btw. Maybe I don't know all options.

btw2. I flashed my router without soldering and even the warranty sticker is still on the screw. :wink:

1 Like

24 will come, serial free flashing won't, unless someone finds a loophole somewhere in the stock FW, or what @patrykk said.

1 Like

Thanks, what a shame, Asus could have had something here. The search for an ideal wifi 6 OpenWrt router continues.

I think its not a shame. Its quite difficult to image that big company supply tools to hack and/or reinstall to the custom software on the his non enterprise hardware.

Oh yeah. As it came off so easily, I thought even Asus must know warranty stickers are a joke so they don't bother to glue it properly :smile:

1 Like

I have build the current master for the very similar Asus RT-AX59U using the patch from the pending PR (https://github.com/openwrt/openwrt/pull/13125). The system runs but the wifi-chip eeprom-load fails and the wifi performance could be better ...

[   11.507355] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174648a
[   11.507355] 
[   11.873368] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174725
[   12.042188] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   12.188338] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
[   12.195095] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7976_dbdc.bin failed with error -2
[   12.206208] mt798x-wmac 18000000.wifi: Falling back to sysfs fallback for: mediatek/mt7986_eeprom_mt7976_dbdc.bin

Could you give me some hint how you solved it for the TUF_4200, maybe I can adapt it ...

[   15.655988] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221012174648a
[   15.655988] 
[   16.011922] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221012174725
[   16.181464] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221012174937
[   16.327416] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
[   16.334171] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7986_eeprom_mt7976_dbdc.bin failed with error -2
[   16.345286] mt798x-wmac 18000000.wifi: Falling back to sysfs fallback for: mediatek/mt7986_eeprom_mt7976_dbdc.bin

I get the same on my tuf_4200 and didn't really take much notice.

It looks like it's failing to read the eeprom data from flash and loads a default eeprom file.

Maybe something like what's mentioned here is needed.
https://github.com/openwrt/mt76/issues/462

Maybe @daniel can tell us more.

I reinstalled the stock firmware and made a dump of the factory partition.

is there a way to load that in openwrt to see whether it makes any difference in terms of wifi quality / speed?

admin@RT-AX59U-F07A:/tmp/home/root# hexdump /tmp/Factory2
0000000 7986 0000 7fc8 7654 7af0 0000 0000 0000
0000010 0000 0000 0000 0000 0000 0000 0000 0000
0000020 0000 0000 7fc8 7654 7af0 7fc8 7654 7af0
0000030 0000 0000 0000 0000 0000 0000 0000 0000
*
0000050 0000 0000 0000 0000 0000 0000 0001 0000
0000060 0000 0000 0000 0000 0000 0000 0000 0000
*
0000100 0000 0000 0000 0008 0000 0000 0000 0000
0000110 0000 0000 0000 0000 0000 0000 0000 0000
*
0000190 5b12 6c48 1c00 3f00 103f 0000 0307 0000
00001a0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000240 0000 0000 0000 0000 0000 0000 a4a3 a1a0
0000250 91a6 9100 9100 9100 9100 0000 0000 0000
0000260 0000 0000 0000 0000 0000 0000 0000 0000
*
0000350 0000 0000 0000 0000 0000 00c5 0000 0000
0000360 0000 0000 0000 0000 0000 0000 0000 0000
*
00003e0 0000 0000 0100 0900 0012 0000 0000 0000
00003f0 0000 0000 0000 0202 0202 0406 0206 0202
0000400 0202 0202 0202 0202 0202 0202 0202 0202
0000410 0202 0202 0202 0000 1500 1c1c 181b 1818
0000420 0d18 0800 0d0f 0902 0d0e 0902 0d0e 0902
0000430 0d0e 0902 0d0e 0902 0d0e 0902 0d0e 0902
0000440 2e0e 2e2e 2c2e 2c2c 2c2c 2c2c 2c2c 2c2c
0000450 2c2c 2c2c 2c2c 2c2c 002c 0000 0000 0000
0000460 0000 0000 2b00 2b2b 292b 2929 2b29 2b2b
0000470 292b 2929 2b29 2b2b 292b 2929 2b29 2b2b
0000480 292b 2929 0029 0000 0000 0000 0000 0000
0000490 0000 0000 8100 8281 8181 0082 0000 0000
00004a0 c100 80c1 8080 c1c2 80c1 c480 c1c2 c1c1
00004b0 81c1 8081 8180 8281 8282 8382 8283 0082
00004c0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000540 7f00 207f 3025 3c36 0141 4740 524c 5c57
0000550 7f7f 7f7f 221b 332a 403a 4101 4c46 5a52
0000560 7f5e 007f 0000 0000 0000 0000 0000 0000
0000570 0000 0000 0000 0000 0000 0000 0000 0000
0000580 0000 0000 7f00 7f7f 8080 cbcb d7d7 e3e3
0000590 ebeb f9f9 4040 8080 cfcf dbdb e3e3 efef
00005a0 f7f7 4040 8080 c1c1 cdcd d9d9 e1e1 eded
00005b0 0505 8080 bdbd c9c9 d5d5 dddd e9e9 0101
00005c0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000600 e0f0 e0c0 fcfc 0000 0000 00fe 90e8 fe00
0000610 0500 0069 0000 0000 0000 0000 0000 0000
0000620 0000 0000 0000 0000 002a 0000 0000 0000
0000630 0000 0000 0000 0000 0000 0000 0000 0000
*
0000650 0000 0000 0000 0000 0000 00ff 7024 ff00
0000660 ec00 00aa 0002 b9f1 0000 0000 0000 0000
0000670 0000 0000 0000 0000 5dc4 0000 0000 0000
0000680 0000 00fe 9424 ff00 ea00 0092 0006 bbf1
0000690 0000 0000 0000 0000 0000 0000 0000 0000
00006a0 5fc9 0000 0000 0000 0000 0000 0000 0000
00006b0 0000 0000 0000 0000 0000 0000 0000 0000
*
00006d0 0000 0000 7e03 0100 ff00 00b2 0001 c7f1
00006e0 0000 0000 0000 0000 0000 0000 0000 0000
00006f0 4dd0 0000 0000 0000 0000 0000 7c25 0100
0000700 e800 00b9 0000 c4ef 0000 0000 0000 0000
0000710 0000 0000 0000 0000 4dd4 0000 0000 0000
0000720 0000 0001 7e23 0200 e800 00be 00ff c3eb
0000730 0000 0000 0000 0000 0000 0000 0000 0000
0000740 53de 0000 0000 0000 0000 0000 0000 0000
0000750 0000 0000 0000 0000 0000 0000 0000 0000
*
0000790 2002 2002 2002 2002 3002 3002 3002 3002
00007a0 3002 3002 3002 3002 3002 3002 3002 3002
00007b0 0002 0002 0002 0002 0002 0002 0002 0002
*
00007d0 0000 ca00 c8c8 c4c6 00c2 c4c8 c6c8 c2c4
00007e0 8100 c682 c6c6 c2c4 8100 0082 c8c8 c4c6
00007f0 00c2 8281 8484 c6c6 c4c5 00c2 8281 8484
0000800 c6c6 c4c6 00c2 8281 8484 c6c6 c4c6 80c2
0000810 8281 8484 c6c6 c4c6 80c2 8281 8484 c6c8
0000820 c2c4 c800 c881 c4c6 00c2 8382 c8c8 c4c6
0000830 00c2 8382 c800 c6c8 c2c4 8200 0083 c8c9
0000840 c4c6 00c2 8382 8484 c8c8 c4c6 00c2 8382
0000850 8484 c8c8 c4c6 00c2 8382 8484 c6c6 c2c4
0000860 8200 8584 8686 c5c5 c2c3 8100 8282 8484
0000870 c5c5 c2c3 8200 8483 8686 c5c5 c2c3 8100
0000880 8282 8484 c6c6 c3c4 c600 c4c6 c1c3 8100
0000890 8681 c686 c4c6 c1c3 8100 8681 c586 c3c5
00008a0 00c2 8281 8482 c584 c3c5 00c2 8281 8482
00008b0 c684 c4c6 c1c3 8100 8681 c686 c4c6 c1c3
00008c0 8100 8681 c686 c4c6 c1c3 8100 8681 0086
00008d0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000940 8a37 056e 460a 004a 0000 0000 0000 0000
0000950 0000 0000 0000 0000 0000 0000 0000 0000
*
0000970 020d 0e09 020d 0e09 020d 0e09 0000 0000
0000980 0000 0000 0000 0000 0000 0000 0000 0000
0000990 b100 0000 b100 0000 cb00 0000 0000 0000
00009a0 0000 0000 0000 00c4 00b4 0088 0000 0000
00009b0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000ca0 8586 0000 8182 8282 8180 8383 8485 8685
0000cb0 8485 8383 8685 8888 8687 8688 0000 0000
0000cc0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000d00 de21 de22 0000 0000 0952 0855 0955 0956
0000d10 0a57 0b51 0c51 0d51 0f51 0f51 0757 075a
0000d20 085a 075b 075a 0000 0000 0000 0000 0000
0000d30 0000 0000 0000 0000 0000 0000 0000 0000
0000d40 0000 0000 0000 0000 f672 f7f2 f772 f772
0000d50 f772 f672 f472 f372 fa72 fc72 fc72 fd72
0000d60 fc72 fb72 f972 f872 fbf2 fe72 fe72 fe72
0000d70 fe72 fd72 fb72 f972 f9f2 fbf2 fbf2 fb72
0000d80 fb72 fa72 f7f2 f6f2 0000 0000 0000 0000
0000d90 0000 0000 0000 0000 0000 0000 0000 0000
0000da0 0000 0000 0000 0000 0202 0202 0202 0000
0000db0 0000 0000 0000 0000 0000 0000 0000 0000
*
0001000 ffff ffff ffff ffff ffff ffff ffff ffff
*
00b0180 3330 3138 3533 3438 ffff 3031 3330 ffff
00b0190 ffff ffff ffff ffff ffff ffff ffff ffff
*
00b0230 ffff ffff 4732 435f 3148 0033 0000 4735
00b0240 425f 4e41 3144 3332 4543 0000 ffff ffff
00b0250 ffff ffff ffff ffff ffff ffff ffff ffff
*
00bfe00 ff41 ffff 2e31 0030 0000 0000 ffff ffff
00bfe10 ffff ffff ffff ffff ffff ffff ffff ffff
*
00bfe30 ffff ffff ffff ffff ffff ffff ffff 3032
00bfe40 3332 3130 3431 ff04 ffff ffff ffff ffff
00bfe50 ffff ffff ffff ffff ffff ffff ffff ffff
*
00bff90 5545 302f ff31 ffff ffff ffff ffff ffff
00bffa0 ffff ffff ffff ffff ffff ffff ffff ffff
00bffb0 5452 412d 3558 5539 0000 0000 0000 0000
00bffc0 0032 0000 0000 0000 0000 0000 0000 0000
00bffd0 0628 0000 0000 0000 0000 0000 0000 0000
00bffe0 0028 0000 0000 0000 0000 0000 0000 0000
00bfff0 3152 4749 3636 3036 3130 3433 544a 0056
00c0000 ffff ffff ffff ffff ffff ffff ffff ffff
*
00f7800 5446 5952 bb72 3d63 0000 0100 0000 3800
00f7810 a14f 0742 ffff ffff ffff ffff ffff ffff
00f7820 ffff ffff ffff ffff ffff ffff ffff ffff
*
00f8000

1 Like

That's something @daniel would have to answer.

Working on it...

3 Likes

I'm seeing this stack trace on boot when running kernel 6.1 on a tuf-ax4200

[    1.940918] WARNING: CPU: 0 PID: 1 at spi_mem_check_op+0xd8/0x110
[    1.946999] Modules linked in:
[    1.950041] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.45 #0
[    1.955942] Hardware name: ASUS TUF-AX4200 (DT)
[    1.960454] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    1.967395] pc : spi_mem_check_op+0xd8/0x110
[    1.971648] lr : spi_mem_check_op+0x7c/0x110
[    1.975901] sp : ffffffc008c7b560
[    1.979199] x29: ffffffc008c7b560 x28: 0000000000000000 x27: 0000000000000000
[    1.986314] x26: 00000000ffffffb6 x25: ffffff8000ce9180 x24: ffffff8000867800
[    1.993430] x23: 0000000000000000 x22: ffffff8000bbb000 x21: ffffff8000c98780
[    2.000545] x20: 0000000000000800 x19: ffffffc008c7b898 x18: 0000000000000014
[    2.007661] x17: 0000000082051a44 x16: 00000000b6428263 x15: 000000001648a8a0
[    2.014775] x14: 001865906d69a8ae x13: bfc766c800000000 x12: 0000000000000000
[    2.021891] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[    2.029006] x8 : ffffffc008c7b870 x7 : 0000000000000000 x6 : 000000000000003f
[    2.036121] x5 : 0000000000000040 x4 : ffffffffffffffd0 x3 : 0000000000000030
[    2.043236] x2 : ffffffc008c7b897 x1 : ffffffc008c7c000 x0 : 0000000000000000
[    2.050352] Call trace:
[    2.052783]  spi_mem_check_op+0xd8/0x110
[    2.056689]  spi_mem_exec_op+0x3c/0x3f0
[    2.060509]  w25n02kv_ecc_get_status+0x78/0xd0
[    2.064938]  spinand_ondie_ecc_finish_io_req+0x40/0xd4
[    2.070057]  nand_ecc_finish_io_req+0x20/0x30
[    2.074400]  spinand_read_page+0x114/0x1e0
[    2.078479]  spinand_mtd_read+0x1b0/0x2fc
[    2.082473]  mtd_read_oob_std+0x58/0x80
[    2.086296]  mtd_read_oob+0x8c/0x150
[    2.089858]  mtd_read+0x50/0x70
[    2.092986]  ubi_io_read+0xb4/0x310
[    2.096460]  ubi_io_read_ec_hdr+0x4c/0x1e4
[    2.100540]  scan_peb+0xe8/0x720
[    2.103754]  scan_all+0x64/0xacc
[    2.106968]  ubi_attach+0x290/0x340
[    2.110442]  ubi_attach_mtd_dev+0x52c/0xbd4
[    2.114608]  ubi_init+0x138/0x320
[    2.117909]  do_one_initcall+0x4c/0x1d0
[    2.121730]  kernel_init_freeable+0x230/0x294
[    2.126073]  kernel_init+0x20/0x120
[    2.129546]  ret_from_fork+0x10/0x20

Apparently this has been fixed upstream:

So backported it to our trees, as we picked the affected commit downstream:

1 Like

I have submitted a series of patches adding support for reading NVMEM bits (such as the MAC address and the WiFi calibration) from UBI volumes: https://patchwork.ozlabs.org/project/linux-mtd/list/?series=368347&state=*&archive=both

Once they get merged, I will backport them to OpenWrt with Linux 6.1 (and maybe even 5.15, if possible without too much pain).

4 Likes