How To Guide [Tool] Flash Custom ROMs through Fastboot [mojito / sunny]

Search This thread

lank8su

New member
Jan 27, 2022
1
0
please help. after i used this my device is stuck in "Redmi" bootloop
cant enter recovery or fastboot
 

nguadien

Member
May 9, 2016
48
3
Xiaomi Note 10

1. Unlocked bootloader
2. Used this tool to flash twrp-installer-3.6.0_11-0-mojito.zip
3. Nothing happened, still default boot logo, cannot access TWRP
4. Used this tool to flash DerpFest-12-Official-Shion-river-20211220.zip
5. Boot loop, cannot go to Fastboot any more
 

x3r0.13urn

Senior Member
Nov 1, 2012
220
81
Xiaomi Note 10

1. Unlocked bootloader
2. Used this tool to flash twrp-installer-3.6.0_11-0-mojito.zip
3. Nothing happened, still default boot logo, cannot access TWRP
4. Used this tool to flash DerpFest-12-Official-Shion-river-20211220.zip
5. Boot loop, cannot go to Fastboot any more
Back to square one with MiFlash, use 2020-3-14 and any latest global tgz image. Standard google adb won't work.

Fastboot boot twrp image - DO NOT FLASH.

Use twrp to flash twrp to ramdisk, look at options. Then reboot to recovery.

Since you will come from MIUI tgz image, flash derpfest and then format data all with twrp

If you want decrypted, once flash and format data complete, reboot to recovery again, flash DFE.
 

Frogzs

New member
Feb 25, 2022
1
0
Hi, can I flash PixelOS (not PE) with this tool? Also, do I need a custom recovery for clean flash or can I clean with Xiaomi's own recorvery? Sorry if I'm bothering you. I'm a newbie/ beginner with flashing roms.
 
Hi, can I flash PixelOS (not PE) with this tool? Also, do I need a custom recovery for clean flash or can I clean with Xiaomi's own recorvery? Sorry if I'm bothering you. I'm a newbie/ beginner with flashing roms.
No requirements other than unlocked bl. Any custom ROM will work, provided that the dev didn't cross slot size. Follow instructions from main thread.
 
  • Like
Reactions: Rey D

RMD08

Member
Dec 27, 2017
7
1
I've tried it. my phone turns black screen. lucky i can still use sp flash tool. my device poco and MTK. is it support for mtk devices? i flash miui 13 a12 from miui 12.5 a11 ..
 
  • Haha
Reactions: Rey D

umarbest

Senior Member
Sep 29, 2010
103
4
Lahore
POCO M3
I have 31-10-21 installer zip but I got this error on Linux, I am on ZorinOS 16.

./flash_linux.sh: 2: Syntax error: redirection unexpected
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I'm aware of that, this is mostly a general question about the payload.bin files, and if you look at black shark forum it's just a graveyard
    we can't help here because it's a completely different device ...
    maybe you should post your issue on General Questions and Answers
    1
    @storhaugey Stock recovery can't flash a custom rom/gsi as they aren't officially signed by xiaomi.
    Either use a custom recovery, or just use fastbootd to flash those images manually
    Code:
    fastboot reboot fastboot
    fastboot flash <img-type> <file.img>
    ...
    fastboot erase userdata
    fastboot reboot
  • 12
    Are you struggling to install custom roms on this device?
    Lots of recovery errors?
    Can't boot to any rom?
    Don't worry. Fastboot is a good way to avoid such nonsense...
    ota-update-using-adb-fastboot_proc.jpg

    Install any custom rom & miui recovery rom through fastboot

    Steps:
    1. Extract Fastboot OTA Tool. Put the ROM zip in it's root.
    2. Run the flash script.
    3. Wait till the script asks for device.
    4. Boot device to fastboot & connect.

    After Installation, it'll be headed to recovery:
    You can format to start fresh (or)
    Just boot up, for dirty flash way

    Windows users:
    Make sure you have usb drivers installed through manual method. This is done only once.
    Refer this on how to install them... Download USB Drivers from here.

    Linux users: Must have latest python & pip

    For Ubuntu distros:
    sudo apt install python python-pip
    And have an alias into ~/.bashrc or ~/.bash_aliases file:
    alias python=python3

    For Arch based distros:
    sudo pacman -S python python-pip

    For Fedora:
    sudo dnf install snapd python3.9 python3-pip

    For Mac users, make sure you allow img2simg tool from Privacy & Security to work. Or Disable Gatekeeper temperorily.

    Thanks to @LoV432 for his auto extraction idea.
    & @lyoko_xana to bringup Mac issues.
    If you have any trouble using this tool, please feel free to reply here...

    Happy flashing
    5
    -------------------------------------------------
    Changelog (2021-10-31):
    -------------------------------------------------
    - Fixed extraction issues
    - Updated fastbootd to 12.5.3
    - Implemented snapshot update-cancel
    - Partition size limit warning in linux/mac script
    - Logfile auto generation in linux/mac script
    3
    According to the script, it is used exclusively for pure flash.
    Can you please make an option for upgrade (dirty flash) as well?
    It does dirty flash bydefault (caz it doesn't affect data partition). It'll be clean flash only when you wipe from recovery at post install... 🙂
    I've edited post & clarified this...
    2
    Update: 18/08/21

    Changelog:
    • Switched to 12.5.2 stock fastbootd
    • Fixed fastboot issues on ubuntu
    • Separate scripts for linux & mac from now
    2
    !! Fastboot OTA Tool Update !!

    Fastboot_OTA_20210802.zip
    Usage instructions in the main post.
    There is an error in the script (probably by copying).

    echo Flashing boot partitions...
    tools\fastboot %* reboot bootloader
    tools\fastboot %* flash boot_a boot.img
    tools\fastboot %* flash boot_b boot.img
    tools\fastboot %* flash vendor_boot_b vendor_boot.img
    tools\fastboot %* flash vendor_boot_b vendor_boot.img