RT-AX52 Revert to stock

Can someone explain it to me the STEP 3?

-------Revert to stock asus firmware ---------
1: Download the rt-ax52 firmware from ASUS official website.
Save the firmware to tftp server directory and rename to RT-AX52.trx

2: Connect the PC with TFTP server to the RT-AX52.
Set a static ip on the ethernet interface of your PC.
(ip address: 192.168.1.70, subnet mask:255.255.255.0)

3: Conect to the serial console, power on again, interrupt the autoboot process by pressing '4' when prompted.
$ ubi remove linux
$ ubi remove jffs2
$ ubi remove rootfs
$ ubi remove rootfs_data
$ ubi create linux 0x45fe000
$ reset
then the dut will reboot,interrupt the autoboot process by pressing '2' when prompted.
2: Load System code then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
$: enter y
you will see the follow, type enter directly:
Input device IP (192.168.1.1) ==:
Input server IP (192.168.1.70) ==:
Input Linux Kernel filename (RT-AX52.trx) ==:

4: wait for the device run up

The recovery procedures written by ASUS generally can't deal with existing/ but (to them) unexpected UBI volumes, that's what you need to clear up before the recovery can succeed.

this command line in step 3 is linux based?

No. The bootloader has a console and commands that can used at low lovel to manipulate partitions or set/delete boot data. To enter this console you need a serial access and interrup the bootprocess following displayed instructions.

what is serial access? can u plss explain it to me.. thnxs

you open the device up, connect the serial headed to an USB TTL, to talk directly to the OS or boot loader, in your case, the latter.

search for "router serial flashing" on YT to get an idea, doesn't have to be the same device as yours, it's all the same, on a hw level.

2 Likes
1 Like

You already have answers by others users but I reply in a simple way.
Serial link is a old and simple protocol of communication. There is (not always) a dedicated connector on the device motherboard for this. You insert a cable for there to the computer, than use a tiny program to display the result. When booting, the motherboard sends infos to this serial link. You can intercept the communication, and talk back.
So in your case, you can press a key and interrup the boot procress, and even enter commands. It's primitive but usefull.
Open the router, and send a picture of the motherboard to locate the connector. I can't find a picture on the internet.

1 Like

The OP says RT-AX52, you linked to 4G-AX56. I assume they are not the same.

oops, post deleted.

2 Likes

There is no wiki page for this model, and I couldn't find any motherboard image. Only solution would be to open the device. Apparently serial is present.

1 Like

facinstall for easy recovery:

Supported routers
asus,rt-ax89x
asus,rt-ax52

This should be automating #3 so you don't have to do it via serial.

remittor has testable builds for this model:

(AX52 Pro is different model if that is what you have)

Can you please explain in details? I have an ASUS RT-AX52 but I'm afraid of flashing OpenWrt as there is no way to recover without disassembling the router. What does your tools actually? Does it automatically download the official firmware and flash it? I'm a bit confused!

Diff device, same procedure; https://openwrt.org/toh/asus/tuf-ax6000#revert_to_stock_asuswrt

Not my tool. You also didn't bother to read the thread which answers your question:

This enables the ability to flash Asus TRX firmware from inside openwrt.

  1. Install openwrt
  2. install faceinstall package via ssh or upload it.
  3. now you can go back to stock Asus firmware any time you want.