OpenWrt support for Asus RT-AX53U

As far as I understood, the dts files are compiled only as part of the kernel build process.
I checked and the dtb files (which are the generated by the compilation process, based on the dts sources) are not changed at the end of the build process.
I used the command make image PROFILE="asus_rt-ax53u"

Have you used other switches to force the compilation of the dts files?
Can you post the commands that you fired up?

many thanks

Usually a make dirclean is enough to remove any leftovers from a privious build but will also nuke .config so you need to restore or better recreateit via make menuconfig

Finally succeeded!
I was using only the Image builder (instructions here).
However, to succeed, one needs to follow these instructions.

Important note: if you are getting a compilation error when building the tools/tar target, please add this parameter to all make commands:

The new partition layout:

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000e0000 00020000 "u-boot"
mtd1: 00100000 00020000 "u-boot-env"
mtd2: 00100000 00020000 "factory"
mtd3: 00100000 00020000 "factory2"
mtd4: 00400000 00020000 "kernel"
mtd5: 07820000 00020000 "ubi"
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.8M      3.8M         0 100% /rom
tmpfs                   122.2M     88.0K    122.2M   0% /tmp
/dev/ubi0_1              99.6M     48.0K     94.8M   0% /overlay
overlayfs:/overlay       99.6M     48.0K     94.8M   0% /
tmpfs                   512.0K         0    512.0K   0% /dev

In order to trigger the partition resizing process, I had to add the -p switch to the sysupgrade command (otherwise the overlay partition size remained at 33 MB):

sysupgrade -p openwrt-ramips-mt7621-asus_rt-ax53u-squashfs-sysupgrade.bin

    -p           do not attempt to restore the partition table after flash.

@drut: the settings were preserved (or at least /etc/config/wireless). Not sure if the packages were also preserved, as I started the upgrade from a clean system (I had changed only the wireless settings).


It seems there's a problem with the dependency kernel when installing kernel modules:

root@OpenWrt:~# opkg install  kmod-mtd-rw
Unknown package 'kmod-mtd-rw'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.137-1-2aca9bf59174f294eb54655f86478a3f) for kmod-mtd-rw
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-mtd-rw found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-mtd-rw.

I think I might have forgotten to select the branch (git checkout v21.02.3 command).

Rebuilding from scratch...

Hi I'm not sure if this is the right place but currently the wiki info page of the RT-AX53U does not have a link to this forum post in the Links section of the info table ( . I cannot add it since I don't have permissions. Does anyone have them?

Also maybe I could also update some information if I had access

You can request access here

1 Like

is it possible to configure the switch device to make vlan by switch port ?

Edit : after information it is the DSA system and not swconfig so there is no luci interface and vlan make in network>interface>device of luci menu
question : what is lan4 ? there is only 3 lan port on the switch

Thanks too much guys. :v:

I received today a RT-AX53U and it was running OpenWRT snapshot one hour later (the time to quickly test the original firmware)

All seems to work great until now (configuerd as an AP/Switch will all ifaces bridged on br-lan and no firewall)

Works like a charm for a snapshot build, 105MB/s download speed (lan to laptop) impressive for an open source driver !!!!!!

upload is not as good with some slow speed for few seconds (almost 0 b/s) but the average upload speed is around 60~70MB/s ... not too bad !

Just one comment, this router only has 1 WAN + 3 LAN ... and not 1 WAN + 4 LAN, even if the hw reports a 4 ports switch:

Thanks a lot for having added this new target

ok, so i test the Wi-Fi with the usb dongle adapter wn-h6 from wifi nation,
in AX mode at 80 Mhz the bandwith is only average 250 Mbps in download and upload
in ethernet, speed is 900 Mbps download and 600 Mbps upload

with the 160 Mhz it doesn't work, my dongle doesn't see the ssid.

160 MHz probably won't work. The radio is an entry level 802.11ax radio, all things considered.

MT7915D (DBDC) does not support 160Mhz.

1 Like

does it mean, in fact, despite the router support wi-fi ax , the bandwidth will be 250 Mbps maximum ?? Have someone got more than this speed in wi-fi ??

I've seen iperf speeds close to 700 Mbps on 5 GHz my EAP615-Wall (which is two-stream MT7975D). (MT7915D and MT7975D seem to be belong to the same family, I cannot find the difference on Wikidevi.)

250 Mbps is something you should hit effortlessly with two-stream 802.11ac even in good circumstances.

do you have hardware flow offloading turned on? otherwise I also had a max of 250Mb

@Borromini maybe MT7975D support 160 Mhz and MT7915D not

@Ricrdsson i have enable flow offloading

i'm very desapointed, i thought that with ghis router myspeed could be at least average 800 Mbps

No it doesn't, and I would have indicated so if I had it enabled (otherwise I would have sent you on a fool's errand). This is with 80 MHz and BSS colouring & he_su_beamformee set. Client is an Intel AX210.

I have this router since today. So far playing with stock fw. I have enabled ssh and added entware :slight_smile:
But the speed is indeed far from good. On Ethernet 1G I'm getting 500-600 Mbits in iperf3. Over wifi only 250-300 Mbits.
Is there a way over CLI how to check if hw/sw offload is enabled ?

i wonder if flow offloading aply to lan port and not very much to wlan ?

For me 200-300 Mbps with wi-fi is for, i expect more with 802.11 ax....

Actually the ~300Mbit is over ac. I have another laptop with ax but that's company laptop from which connection to the router over iperf doesn't work. And my internet is quite slow at the moment so can't verify with speedtest (which is also blocked anyway :smiley: )
But 500 over 1G Etherntet is not much either I would say, I was expecting at least 800

Does the below dmesg means hw NAT is crashing ?

[ 1668.714258] mediatek_soc_hnat 1e100000.hnat: wan = eth1
[ 1668.714302] mediatek_soc_hnat 1e100000.hnat: lan = eth0
[ 1668.714331] mediatek_soc_hnat 1e100000.hnat: ppd = vlan1
[ 1668.714355] mediatek_soc_hnat 1e100000.hnat: gmac num = 2
[ 1668.715424] mediatek_soc_hnat 1e100000.hnat: ext devices = rai0
[ 1668.715458] mediatek_soc_hnat 1e100000.hnat: ext devices = ra0
[ 1668.715475] mediatek_soc_hnat 1e100000.hnat: ext devices = rai1
[ 1668.715493] mediatek_soc_hnat 1e100000.hnat: ext devices = ra1
[ 1668.715510] mediatek_soc_hnat 1e100000.hnat: ext devices = rai2
[ 1668.715528] mediatek_soc_hnat 1e100000.hnat: ext devices = ra2
[ 1668.715550] mediatek_soc_hnat 1e100000.hnat: ext devices = rai3
[ 1668.715571] mediatek_soc_hnat 1e100000.hnat: ext devices = ra3
[ 1668.715591] mediatek_soc_hnat 1e100000.hnat: ext devices = apclii0
[ 1668.715612] mediatek_soc_hnat 1e100000.hnat: ext devices = apcli0
[ 1668.728402] modprobe: page allocation failure: order:8, mode:0x24010c1
[ 1668.735161] CPU: 1 PID: 29550 Comm: modprobe Tainted: P                4.4.198 #1
[ 1668.742658] Stack : 00000000 00000000 81cd68c2 00000045 8188cc90 00000009 00000000 00000000
[ 1668.742658]    892f4f94 819bfce3 8185cb30 00000001 0000736e 81cd3690 00000000 00000001
[ 1668.742658]    00000000 81070974 00000000 8107077c 00000000 00000000 81863af8 840eda3c
[ 1668.742658]    00000000 8106e634 00000000 00000000 81f3ed9c 0027e000 819bf640 000eda3c
[ 1668.742658]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1668.742658]    ...
[ 1668.742797] Call Trace:
[ 1668.742822] [<81018ac0>] show_stack+0x54/0x88
[ 1668.742859] [<811e5a64>] dump_stack+0x8c/0xc4
[ 1668.742887] [<810aebb4>] warn_alloc_failed+0xf8/0x11c
[ 1668.742902] [<810b1484>] __alloc_pages_nodemask+0x73c/0x82c
[ 1668.742929] [<8102191c>] mips_dma_alloc_coherent+0x168/0x204
[ 1668.743044] [<c560eb58>] hnat_enable_hook+0x530/0xc28 [mtkhnat]
[ 1668.743123] [<8114c4e4>] kernfs_create_link+0x5c/0x98
[ 1668.743140] [<8114d484>] sysfs_do_create_link_sd.isra.0+0x50/0xf4
[ 1668.743144]
[ 1668.743244] Mem-Info:
[ 1668.743279] active_anon:6634 inactive_anon:202 isolated_anon:0
[ 1668.743279]  active_file:7715 inactive_file:8623 isolated_file:0
[ 1668.743279]  unevictable:0 dirty:0 writeback:0 unstable:0
[ 1668.743279]  slab_reclaimable:2512 slab_unreclaimable:5960
[ 1668.743279]  mapped:5967 shmem:935 pagetables:223 bounce:0
[ 1668.743279]  free:14414 free_pcp:22 free_cma:0