Hey guys, I brought a Xiaomi 4A with 3 gig ports and flashed breed for it.
The hardware specs are as follows:
CPU MediaTek MT7621A ver1, eco3
Memory 128MB DDR3
Flash EON EN25QX128@44MHz (16MB)
Clock: CPU: 880MHz, DDR: 1040MHz, Bus: 220MHz, Ref: 40MHz
The breed version is build 2021-12-15 git-f9b74d0, v1.1 r1337
But after this upgrade, it seems not upgrade normally, the squashfs sysupgrade is not work, system is always what initramfs firmware like, no wireless, lost config and software after reboot.
Then I have tried flash squashfs-sysupgrade.bin from breed directly, but the system goes into infinite reboot.
I have tried 21.02.2, 21.02.1, 21.02.0 even snapshot, but problems keep happening same.
Can anyone help with this problem?
You can try to add support for openwrt. Just add line for EN25QX128 into spi_nor_ids flash table in drivers/mtd/spi-nor/spi-nor.c and recompile firmware.
Anyway I bricked my router and thought it's due to the flash, I just unbricked it and now have chinese firmware installed. But OpenWRTInvasion doesn't seem to work anymore (Can't connect via ssh or telnet) - Do you think I could simply flash OpenWRT bin file just how I unbricked my device? (Just not use the chinese firmware)
Or do you think you could point me to good known version that OpenWRTInvasion does work on?
That is incorrect. The initramfs images are normally only for loading temporarily into RAM. Prior to the OpenWrt invasion exploit, the flash chip had to be modified, to allow Uboot to be interrupted, to be able to load the initramfs image first, then followed by squashfs-sysupgrade.bin image.
Only the MIWIFIRepairTool worked for me but I can't flash the global firmware on it for some reason. As soon as the flash completes(Which is instantaneous btw), the light is white-blue and blinks rapidly and after the reboot it loads right back into the chinese firmware. (I probably should've flashed the global firmware when it was bricked but I couldn't find it at that time)
Any ideas why that might be happening? I wish the invasion just worked but welp
Out of curiosity, which chinese version is currently installed?
fwiw, have you tried resetting the router to clear down all settings back to defaults.
Then try windows openwrtinvasion method to install openwrt?
fwiw, the Windows openwrtinvasion instructions does mention how to change from chinese to global firmware, but it is not something I've tried using provided the interim v2 to v3 xiaomi file. But as openwrtinvasion exploit is not working, you won't be able to install it anyway.
Yes, I was just about to reply on that. I used the windows version and then was able to telnet into the router. I tried installing OpenWRT again but it's bricked again.....
I guess this router doesn't like OpenWRT or something? I'm gonna try unbricking it again by using the international version in the first place. Otherwise I'll try that 2to3 firmware properly and then go to OpenWRT again.
If that doesn't work either I'm just gonna return it
Not sure why it keeps on bricking after I flash OpenWRT on it. The process on my other router was flawless..
It even has the same flash chip as the other one sigh
I think you said you used initramfs.bin on your other R4AG is may be only other difference?
Dare I suggest installing Padavan to see if it bricks the router?
I received an open box R4AG 'Giga' yesterday (PCB labelled 2019, 25Q127CSIG flash). I allowed router to autoupdate from v2.28.132 Global, to v3.x Global firmware.. I flashed it with Padavan. Earlier today, I reverted to v3 Global using MiWifiRepairTool, then flashed it with 21.02.2 using Windows method. No issues. Reverted to v3.x Global before flashing Padavan again.
Finally!! OpenWRT worked! Thanks a lot for helping out man!
What I did in the end is:
Use the latest chinese firmware with MiWifiRepair Tool to unbrick the router.
Use the Windows Tools (The russian ones) to upgrade from version 2 to 3.
Use the same tool to flash OpenWRT instead of using telnet & downloading the firmware.
It finally booted up and worked. I think I should edit those bat files and add English translations in them and additionally create a new doc with better translations too.
Ahhh I actually used the "OlegLOM original files hosted at 4pda.to" folder.
The other folder was named "ENGLISH instructions - Partially Tested" So I thought it simply had instuctions and nothing else......
About the uboot, I did run the "2.start_write_uboot_3.bat" file just in case. But I'm not sure if that helped or not. I don't mind testing without the uboot again if there a way to revert it? (I did take a backup though, would that restore it?)
Thanks for updating the the wiki and helping me out!
TBH, I don't know why OlegLOM advises to install new uboot, and whether the 'backup' includes backup of the uboot. I have not examined the backup script to find out what it actually does.
Of the three R4AG 'Giga', I did blindly replace the Uboot' on the first unit when following the original russian instructions before installing Padavan.
But later discovered after viewing a number of non-English YouTube videos using similar Windows based batch files, it was not necessary to replace Uboot when installing OpenWrt or Padavan. For the later two units, I kept the original uboot.