“I used the source you sent, connected via SSH, and while doing sysupgrade, the device bricked again. I follow everything according to the manual, but the device stubbornly doesn’t accept it. I don’t understand if there is a problem downloading the flash file as I described, or if the bootloader is locked. I flash without doing an ssh256 checksum—could the files be incompatible
you're not supposed to "do a sysupgrade", I hope that's not what you did .... again.
post a transcript of your activities.
I need to use the same shape factory image again
what ever you're doing, have fun doing it ...
I'm asking you a question, should I use a factory image, why can't we get along again, it's like a joke
did you ? sorry, didn't see any question mark ...
you should follow the wiki, does it tell you to use it ?
When you translate from English to Turkish on the wikik, it has a meaning disorder, what I understand is this: First, I understand that load a factory image, then make sshla sysupgrade, I want to hear from you, I can't fully understand the guide, it seems
okay, so you missed:
Check the firmware layout with cat /proc/mtd and only proceed if mtd6: 00200000 00010000 “overlay”
I did the command you said, but my mtd6 section is not like the firwmare section, so I tried to write mtd6, my device became a brick again, I can't download the right file.
It opens normally, the openwrt interface stays in recovery mode in that interface, then when I connect to the sshle, I have to print my factory image or sysupgrade
So I have mtd6 firwmare mtd5 overlay
then I guess you simply ignored the above ?
post the output of ubus call system board
, and cat /proc/mtd
while running the initramfs.
"kernel": "6.6.73",
"hostname": "OpenWrt",
"system": "MediaTek MT7628AN ver:1 eco:2",
"model": "Xiaomi Mi Router 4A (100M International Edition)",
"board_name": "xiaomi,mi-router-4a-100m-intl",
"rootfs_type": "initramfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.0",
"revision": "r28427-6df0e3d02a",
"target": "ramips/mt76x8",
"description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
"builddate": "1738624177"
}
dev: size erasesize name
mtd0: 00020000 00010000 "bootloader"
mtd1: 00010000 00010000 "config"
mtd2: 00010000 00010000 "factory"
mtd3: 00010000 00010000 "crash"
mtd4: 00010000 00010000 "cfg_bak"
mtd5: 00200000 00010000 "overlay"
mtd6: 00da0000 00010000 "firmware"
The information is as follows
looking at the flash layout, it seems to be a mix of stock and openwrt.
perform the debricking procedure described in the wiki, and start from scratch.
redo the installation as outlined in the wiki, not some random video on YT.
English is not my first language, too. I know it's difficult to follow procedures this way.
To avoid additional bricks and frustration, just restore the router to the Xiaomi original firmware using the "Mi WiFi Repair Tool" that it's mentioned on the Wiki. ONLY when you are running the stock Xiaomi Firmware, repeat the install procedure of OpenWRT.
In the wiki, it's mentioned that there is a new hardware revision of the Xiaomi Mi 4A 100 International Version. If you install the regular sysupgrade image file, you'll brick it. That's why there is a warning on the Step 3 of the Installation section. You need to check with the command cat /proc/mtd
that your mtd6 partition is mtd6: 00200000 00010000 “overlay”. If that's not how mtd6 partition looks, DO NOT INSTALL that image.
According to your partition layout, you need to download and install the Mi 4A 100 International V2 sysupgrade image.
In conclusion, you need to do the following:
- Return the router to the Xiaomi Firmware (use Mi WiFi Repair Tool).
- Run OpenWRTInvasion to get Telnet access.
- CHECK the partition layout of your router to see if your hardware version is V1 or V2.
- Upload to the router the appropiate sysupgrade image.
- Install the image with the proper command mentioned in the Wiki.
- Enjoy.
Those are the general steps you need to do, but again, you need to read and understand the Wiki. I hope this post translates well to Turkish.
Cheers and greetings from Venezuela.
quite annoying this isn't written out in clear text it's a v2 if the mtd6 check fails ...
Yeah, that Wiki is outdated. It mentions the V2 at the top and it says it's only supported on SNAPSHOT, but it's been supported I think from 23.05.5 and of course 24.10.
I had to read the threads and assume that's what they meant on the install instructions.
Of course, I don't have a V2 at hand to look around and confirm everything myself. I do have access to a V1 because I gave one to my girlfriend and I installed OpenWRT just fine following the instructions.
@xerox123 if you indeed have a v2, the installation differs - https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=f51cb7447390949feff598b833b764ac1f3ff508.
you can probably still use scp or wget to grab the file, but you're writing it elsewhere.
After installing V2 it opened without any problems. Crazy
That's great news!
So I think the wiki should be edited in order to clarify, that depending on the flash layout, the appropiate sysupgrade image must be flashed.
Really glad you could install OpenWRT on your Mi 4A 100M.
Enjoy!
Yes, I agree, the wiki should definitely be edited. If it is translated in all languages in an understandable way, everyone can install it very easily. I've been working non-stop for this installation for exactly 3 days, thank you very much.