Thanks for persevering in bringing up these issues!
Hi everyone,
a newcomer to OpenWRT here.
Am I getting it right that the only working way to install OpenWRT on latest 2024 AX4200 devices is to run TRX image via UI provided by remmitor in this thread?
Dear remmitor and other community members, first of all I want to apologize in advance and hoping you won't get it wrong what I'm trying to say here. Also want to shout out big thanks to you for your great contribution and helping users with their issues! You are doing really huge and excellent job in such a complex area!
But may I ask you please to provide a way to build that TRX from any kind of source code on the user side? Not asking about thoroughly written comprehensive guide, but at least source code and some tools available in open source would be more than enough.
Unfortunately with my paranoid mindset running binary image on the device without knowing its source code is like running an executable from an unknown vendor with admin privileges. It is absolutely inappropriate action from the cybersec point of view IMO which violates open-source software transparency principles and benefits.
Also if it is not possible due to any reasons, shouldn't the AX4200 OpenWRT wiki page be edited adding there a paragraph explicitly pointing out that there is no way to install OpenWRT on latest 2024 AX4200 devices, thought a workaround option with pre-built TRX image is available at users' own risk?
I provide all links to the source code on this forum immediately.
Carefully study all the topics where I wrote about Asus devices.
Hi everyone,
could you tell me if our router has the ability to fully toggle power or just toggle the USB device power using gpio?
root@TUF4200:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 6.6.67 xhci-hcd xHCI Host Controller
Bus 002 Device 001: ID 1d6b:0003 Linux 6.6.67 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 1bc7:1910 Telit Telit LN960 Mobile Broadbandroot@TUF4200:~# cat /sys/class/gpio/gpiochip512/
base device/ label ngpio power/ subsystem/ uevent
Do I understand correctly that it is not worth installing firmware 24.10.0 yet?
You should check you bootloader version (in 23.05 console) before:
strings /dev/mtd0 | grep "U-Boot 20"
U-Boot 2022.04-rc1 (Mar 29 2023 - 14:13:33 +0800) - can install
U-Boot 2022.10 (May 08 2024 - 13:49:58 +0800) - bootloop danger, install remittor version or wait
Hello guys, I just received this router at a very good price, but has the latest firmware. Is it possible to install OpenWrt on it?
Hello, does RC5 work on this router by default? Has anyone tried it?
As long as your device still has the old bootloader it works fine.
Hi, I encountered the same error (SPI-CPU kernel panic) while trying to fix my AX6000 using mtk_uartboot.exe
and the initramfs file.
To resolve this, you need to find healthy mtd0
and mtd1
dumps and write them directly to NAND.
Warning! All offsets provided below are specific to the TUF AX6000.
- tftpboot 0x40000000 mtd0.bin
Bytes transferred = 4194304 (400000 hex)
nand erase 0x0 0x400000
nand write 0x40000000 0x00000 0x400000
- tftpboot 0x40000000 mtd1.bin
Bytes transferred = 264241152 (fc00000 hex)
nand erase 0x400000 0xFC00000
nand write 0x40000000 0x400000 0xFC00000
By the way, this is not a recommended choice if you are able to boot with the initramfs file and the UBI (mtd1
) partition is correct, as this process copies NVRAM and factory data (including MAC addresses, etc.) from another device.
where you able to fix it?
I did not try your commands yet but every time I try to write/erase the flash I get a bad block error but there is no actual problem with the flash as not only can I write on it just fine with an external programmer but I also already replaced it and still get the same error
Yes, I succeeded.
By the way, reflashing only the bootloader (mtd0) was not a remedy in my case and still led to a kernel panic (though it fixed the necessity of using mtk_uartboot.exe). Only reflashing both parts of the dump did the trick.
Probably, the kernel panic error is linked to the integrity of the UBI partition.
Maybe you should use mtk_uartboot.exe with official bootloader and extracted fip data from it, not a compiled one:
https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/mt7986-ram-ddr3-bl2.bin (for AX4200)
https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/mt7986-ram-ddr4-bl2.bin
(for AX6000)
Or you case is a hardware, not reflashing issue.
Yay, I got it working!
Thank you so much! I think I might have been using the wrong BL2 with mtk_uartboot, which caused all the bad block errors when trying to write to flash. After trying the one from the link you provided, the router entered rescue mode. So, I tried the official ASUS recovery tool again, but after flashing, I got the same system halt error, as this tool apparently does not touch the bootloader.
I then used mtk_uartboot again and flashed the bootloader I had previously compiled, and it finally booted!
Now, I just have to get OpenWRT on it. I will dump the entire flash so I have a way to recover in case I mess up.
This router is from 2022, what is the easiest way to install openwrt? Is this the correct procedure for my tuf ax4200 from 2022 @remittor?
EDIT: OpenWRT installed and working
I must say that I'm tired of waiting for the bootloop issue to be fixed on the new bootloaders. Having two AX4200 routers and two AX6000 routers, I reflashed all of them to the old bootloaders without much trouble and am now comfortably using the 24th version of OpenWRT.
Well I initially thought everything was working perfectly, but I'm experiencing a strange issue with the 2.4GHz WiFi and a specific Samsung phone.
When Bluetooth is enabled on this phone, the WiFi speed drops to an unusable level—around 0.10 Mbps, on another phone right next to it I get about 200Mbps. This issue occurs only with this particular phone and only with the AX4200, with my previous TP-Link Archer C7, there were no problems, even though I replicated the same settings, same channels and router placement.
Any idea what could be causing this? I know Bluetooth operates on the same frequency as 2.4GHz WiFi. Unfortunately, the 5GHz signal is weak in the room where this phone is usually used.
Is it possible my router is missing wifi calibration data since I had to reinstall everything from scratch? Or is this data stored on the wifi chips themselves? I noticed it did retain the original mac addresses.
Did you try to change channel/country code?
AFAIR, there are 'Factory' and 'Factory2' UBI partitions as part of the MTD1 partition, which are associated with the WiFi firmware. And it seems that the dumps taken from different devices are not identical.
The MAC address is stored together with the calibration data in the factory partitions. So if the MAC address is still there, it seems like the rest should also be intact.
Hi I'm new. What tools are needed to flash the firmware to the router? Do we just use the normal web UI to upload it? I'm just checking because people are talking about TFTP etc. Thanks a lot for all this work!
I tried a different channel/country code, it did not make a difference.
I don't exactly remember everything I did to get my router working again, but I probably programmed the new flash chip with the flash dump from the old one just before I used the asus rescue tool and finally got it to boot. I guess those partitions were fine then.
Since the issue only occurs with that particular phone I'm not too concerned for now. Thanks!
A post was split to a new topic: LuCI - unhandled exception error