Everyone here can or will do it;)
I don’t mean to brag, but to say that you don’t need to do all this complicated work, using a bunch of unnecessary programs and files.
Ok, have you a nice day without putty)
I cant do anything to restore partitions in that openwrt console.
Maybe it is another way to enter recovery menu but i could not enter it
What's stopping you from doing something? Can you give details or should we consult a magic ball?
Hello everyone. I decided to write my FAQ on how to restore this device (AN8855, foresee) to working condition after brick. It's possible that other router models can also be restored this way.
ATTENTION! My English not good and i'm lazy, so i AI_translated it from Russian version(4pda.to) to English with my corrections. Sorry for mistakes. If you find them - say it to me.
ATTENTION! We will assume that all backups were made before the brick process began. But if there are no backups, they can be found here.
ATTENTION! Here the experiences and FAQs of both 4pda.to users and Openwrt community are used. I will add all the links to the original posts at the end.
ATTENTION! All operations performed under Windows administrator account. On Linux, it will be similar but slightly different...
PREPARATION
As far as I understand, everyone here thinks that a person who wants to restore their router should already know everything about UART. But that's not the case. So, I'm just posting an example of a converter for connecting to the router here. Attention! You need a ch340 chip.
100% of screenshots and photos are from openwrt forum
So, before you start:
-
Buy/find UART adapter and 3 pins for connecting to the router.
-
Download the necessary archive and unpack it FAQ.zip
-
Open the router (yes, you don't have to open it, look here OpenWrt support for Xiaomi AX3000T - #1543 by Ser9ei) and connect the pins. Attention! Reverse pin connection is used. That is, you should connect the TX from the adapter to the RX of the router, and vice versa:
TX -> RX
GND -> GND
RX -> TX
- Perform a test connection and check if everything is working. Connect the adapter to the computer (of course, the pins should already be connected to the router and adapter in the correct order), check if a new COM port has appeared in the device manager, launch Putty (yes, it is in the installer archive, install it) and enter everything as on the screenshot (the number of the COM port should be checked in the device manager and the correct one should be entered), and then click Open. If everything is fine, a black window will open. ATTENTION! If the black window does not open but instead displays an error message like "Can't communicate...", you need to replace the device driver with the older one (in the archive, there is a driverCOM), and then check again.
Next, plug the router on, logs will appear in a black window. If all good, turn off the router, close the window.
-
Change the IP address in Windows to 192.168.1.100, subnet mask to 255.255.255.0, gateway to 192.168.1.1, and connect the router to the computer with a network cable. ATTENTION! Connect ONLY to the 2nd or 3rd port of the router(on one of the photos above it is already connected).
-
Copy backup files to the tftpd64 folder and rename them to more readable names. Example: rename mtd1_BL2.bin to BL2.bin, etc. Run tftpd64.exe
MAIN PART
The main part is all about upload bootloader into the router and running it from there with the possibility of upload backups and restoring from them.
FIRST WAY OF CONNECTION!
Navigate to the mtk_uartboot folder, right-click anywhere except files and click open command prompt and input (twice change the COM port in this line to the one you found above):
mtk_uartboot -s COM5 --payload bl2-mt7981-bga-ddr3-ram.bin --aarch64 --fip openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-bl31-uboot.fip && putty.exe -serial COM5 -sercfg 115200,8,n,1,N
If everything is correct, the loader will be installed, and then a Putty window will open, where either the system will start loading quickly or simply be a black screen.
Next:
a) If there is a black screen without loading - quickly press Esc or Ctrl+C (you need to prevent the system from loading), and enter the bootloader console, from which you can already upload backups and restore them. Immediately move to the "Restoration" point. Skip point b and the second method of connection and move directly to the MAIN PART of MAIN PART.
b) If the system loading has started:
you can still check the name of the switch and the memory chip(if you haven't checked it or don't know it yet), press Enter and use command:
dmesg | grep -iEo "( an8855 | mt7531 |: .{1,} spi nand)" | sed -r "s/: //; s/(^ | $)//g" | uniq -i
Close putty and cmd windows, poweroff router.
SECOND WAY OF CONNECTION! Use only if during the first try it loads directly into the system and does not respond to Ctrl+C.
Run the run.bat file in the same folder. Window will open where you first need to enter the COM port number, and then select the switch type. After first way of connection you know your switch type Power on router after "handshake..." is appear.
If everything was entered correctly, a window called Kitty will open, in which you need to quickly press Esc or Ctrl+C to prevent the system from loading.
MAIN PART of MAIN PART
Now you connected to loader console, so enter:
Set the router address:
setenv ipaddr 192.168.1.1
Set the TFTP server address:
setenv serverip 192.168.1.100
Erase the entire flash drive to clear bad blocks:
nand erase.force 0x0 0x8000000
Next, upload the files using a tftp server and immediately restore them:
(Check your file names, you renamed them earlier)
tftpboot 0x46000000 BL2.bin
nand write 0x46000000 0x0 0x100000
tftpboot 0x46000000 FIP.bin
nand write 0x46000000 0x380000 0x200000
tftpboot 0x46000000 Nvram.bin
nand write 0x46000000 0x100000 0x40000
tftpboot 0x46000000 Bdata.bin
nand write 0x46000000 0x140000 0x40000
tftpboot 0x46000000 Factory.bin
nand write 0x46000000 0x180000 0x200000
Upload and write iniramfs-kernel to RAM:
tftpboot 0x46000000 openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-kernel.bin
And launch it from RAM:
bootm 0x46000000
After boot go to the address 192.168.1.1 in your browser, login root, no password, next System - Backup/Flash Firmware and at the bottom choose Flash Firmware(browse openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin in unzipped folder)
Reboot! And have fun
Some links:
Openwrt Forum - Thanks for the First Part of the FAQ
Openwrt Forum - Thanks for connection to router without opening it
4pda.to - Thanks for second way of connection
4pda.to - Thanks for MAIN PART
AlexQ - Thanks this member for his FAQ and UART explanations
PS Backup from AN8855/Foresee router - backup
Because i cant edit my post anymore, i'll give you link for updated archive with files.
Changes:
Made run1.bat for First way of connection and run2.bat for second way of connection. No need for input something in command line
FAQ_Updated.zip
I noticed a new warning in the Wiki with the new hardware device version. @dimfish, would you mind sharing some details with the community about your findings?
Yep new model RD03V2 is already on the market.
CPU: Qualcomm IPQ5018
Other Info:
config misc hardware
option model RD03v2
option displayName 'Xiaomi路由器AX3000T'
option recovery 0
option gpio 0
option flash_per 0
option bbs 'http://bbs.xiaomi.cn/f-354'
option verify 'cd /tmp;mkxqimage -v '
option camera '/userdisk/data/'
option usbmode 0
option rom_up_path '/userdisk/data/upload/'
option rom_up_file 'customrom.bin'
option rom_down_path '/userdisk/data/otadownload/'
option cpufreq '1000MHz'
option wanspeed '1000'
option memtype 'DDR3'
option memfreq '1333MHz'
option memsize '256MB'
Sad news. dead path of ax3000t evolution...
I hope that this new RD03v2 is a model only for the China market, though.
Calls v2, but it's an outright downgrade in both specs and customizability (for Xiaomi, this is probably an upgrade).
Most of us only have access to imports from China for this model, so RIP. Gotta be on the lookout for another cheap filogic model out there.
NOTE: Someone should change the wiki warning from is appeared
to has appeared
or simply appeared
.
NOTE: That wiki picture of the device is quite a bad one. White device on a white background, you can barely see anything. We should replace it.
Thanks for raising. I will take care of it and process minor typos/styling in the Wiki this weekend.
update: @Cthulhu88, it's done.
Hi! Installed 24 version of OWRT. Cannot find easy way to convert WAN port to LAN (I need all physical ports). AN8855 version of switch. Thans if someone help.
- Delete
wan
andwan6
interfaces - Add
wan
port tobr-lan
Your /etc/config/network
should be something like this (no WAN nor WAN6 interfaces):
(...)
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
(...)
Hi everyone,
I'm kinda new to OpenWRT. I already configured one Xiaomi 3000T and it works. Procured second one, same version. Tried to do uboot and messed something in the process and router seems to be bricked.
I tried to recover it using MiWiFiRepairTool and tftpd64. Router downloads firmware and led never goes blue, just same orange without any change.
Is it beyond repair and i should buy new one?
your thing is kinda bricked but not fully rip. Cop UART and try reviving it. Dig up some guides to see if there's a way to slap some life back into it.
p.s> if we switch to normal English, here is where you can start: Uboot boot loop on Xiaomi AX3000T
UART is the method that required router tear-down and special cable to connect?
I tried to install uboot directly from the start using xmir-patcher. I've been able to access the page after factory file installation, it gave me warning when i did sys upgrade and after that it doesn't want to factory reset even via tftp. Later i red that uboot requires you to install normal openwrt and then modify bootloader.