diff --git a/README.md b/README.md index d0e1320..74aaf4e 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,26 @@ fastboot delete-logical-partition product 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 ### Drivers @@ -62,7 +82,7 @@ Install usb drivers: - [https://mtkdriver.com/](mtkdriver.com) - [https://github.com/daynix/usbdk/releases](usbdk) -#### Linux +#### Linux/MacOS TODO: write about usb drivers, but they seem to be preinstalled diff --git a/device-xiaomi-angelican/deviceinfo b/device-xiaomi-angelican/deviceinfo index 28e6d13..dc27884 100644 --- a/device-xiaomi-angelican/deviceinfo +++ b/device-xiaomi-angelican/deviceinfo @@ -32,7 +32,7 @@ deviceinfo_flash_fastboot_partition_dtbo="dtbo" deviceinfo_generate_bootimg="true" deviceinfo_flash_fastboot_partition_rootfs="system" deviceinfo_flash_pagesize="2048" -deviceinfo_header_version="3" +deviceinfo_header_version="2" deviceinfo_append_dtb="false" deviceinfo_flash_offset_dtb="0x07808000" deviceinfo_flash_offset_base="0x40078000" @@ -41,3 +41,4 @@ deviceinfo_flash_offset_ramdisk="0x11a88000" deviceinfo_flash_offset_second="0xbff88000" deviceinfo_flash_offset_tags="0x07808000" + diff --git a/prebuilt/install.sh b/prebuilt/install.sh index 995d44f..a59ee34 100755 --- a/prebuilt/install.sh +++ b/prebuilt/install.sh @@ -5,7 +5,7 @@ fastboot flash vbmeta vbmeta_disabled.img fastboot flash vbmeta_system vbmeta_disabled.img fastboot flash vbmeta_vendor vbmeta_disabled.img fastboot flash boot boot.img -fastboot flash dtbo dtbo.img +# fastboot flash dtbo dtbo.img fastboot reboot fastboot fastboot delete-logical-partition product fastboot flash system system.img diff --git a/prebuilt/system.img b/prebuilt/system.img index a24b481..728d1b1 100644 --- a/prebuilt/system.img +++ b/prebuilt/system.img @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f269e20609a0dafe77c1f19f32d123f25c6e455b892125d886dfbad86ff2a6f5 -size 271122976 +oid sha256:39ad410299788402d8bb32d55bab4346a36f6640c1ac6726bf551bcc9bcbe231 +size 420478976