try to flash stock firmware

This commit is contained in:
MeexReay 2025-05-28 18:42:54 +03:00
parent 00277b3bc7
commit b087d92c1f
4 changed files with 26 additions and 5 deletions

View File

@ -51,6 +51,26 @@ fastboot delete-logical-partition product
pmbootstrap flasher flash_rootfs pmbootstrap flasher flash_rootfs
``` ```
## How to flash stock firmware
It is recommended to flash stock firmware before doing anything.
[Download Firmware](https://xmfirmwareupdater.com/miui/angelican/stable/V12.0.16.0.QCSMIXM/) and unpack it
### Windows
1. Download [MiFlashTool](https://cdn.alsgp0.fds.api.mi-img.com/micomm/MiFlash2020-3-14-0.rar)
2. Unpack firmware.tgz to some folder and copy its path
3. Launch MiFlash.exe and paste the path of firmware folder to that lonely input entry
4. Click refresh, then flash button
5. That's all, close the window
### Linux/MacOS
Install Windows and follow the guide above
TODO: Write how to do that on linux
## How to unlock bootloader ## How to unlock bootloader
### Drivers ### Drivers
@ -62,7 +82,7 @@ Install usb drivers:
- [https://mtkdriver.com/](mtkdriver.com) - [https://mtkdriver.com/](mtkdriver.com)
- [https://github.com/daynix/usbdk/releases](usbdk) - [https://github.com/daynix/usbdk/releases](usbdk)
#### Linux #### Linux/MacOS
TODO: write about usb drivers, but they seem to be preinstalled TODO: write about usb drivers, but they seem to be preinstalled

View File

@ -32,7 +32,7 @@ deviceinfo_flash_fastboot_partition_dtbo="dtbo"
deviceinfo_generate_bootimg="true" deviceinfo_generate_bootimg="true"
deviceinfo_flash_fastboot_partition_rootfs="system" deviceinfo_flash_fastboot_partition_rootfs="system"
deviceinfo_flash_pagesize="2048" deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="3" deviceinfo_header_version="2"
deviceinfo_append_dtb="false" deviceinfo_append_dtb="false"
deviceinfo_flash_offset_dtb="0x07808000" deviceinfo_flash_offset_dtb="0x07808000"
deviceinfo_flash_offset_base="0x40078000" deviceinfo_flash_offset_base="0x40078000"
@ -41,3 +41,4 @@ deviceinfo_flash_offset_ramdisk="0x11a88000"
deviceinfo_flash_offset_second="0xbff88000" deviceinfo_flash_offset_second="0xbff88000"
deviceinfo_flash_offset_tags="0x07808000" deviceinfo_flash_offset_tags="0x07808000"

View File

@ -5,7 +5,7 @@ fastboot flash vbmeta vbmeta_disabled.img
fastboot flash vbmeta_system vbmeta_disabled.img fastboot flash vbmeta_system vbmeta_disabled.img
fastboot flash vbmeta_vendor vbmeta_disabled.img fastboot flash vbmeta_vendor vbmeta_disabled.img
fastboot flash boot boot.img fastboot flash boot boot.img
fastboot flash dtbo dtbo.img # fastboot flash dtbo dtbo.img
fastboot reboot fastboot fastboot reboot fastboot
fastboot delete-logical-partition product fastboot delete-logical-partition product
fastboot flash system system.img fastboot flash system system.img

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:f269e20609a0dafe77c1f19f32d123f25c6e455b892125d886dfbad86ff2a6f5 oid sha256:39ad410299788402d8bb32d55bab4346a36f6640c1ac6726bf551bcc9bcbe231
size 271122976 size 420478976