• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide [TUTO] How to flash GSI Trebble rom and root on Xiaomi device on Windows (files needed icluded)

Search This thread

dwensch

Senior Member
Mar 26, 2011
96
21
localhost
Xiaomi Mi 11 Lite 5G
I did all steps again, installed pc suite, usb debug and this is the result:
 

Attachments

  • Schermafbeelding 2021-09-28 192732.png
    Schermafbeelding 2021-09-28 192732.png
    39.2 KB · Views: 36

dwensch

Senior Member
Mar 26, 2011
96
21
localhost
Xiaomi Mi 11 Lite 5G
I'm answering to rayman95...

Now I used "fastboot delete-logical-partition system_b"

And then I get:

C:\adb>fastboot flash system lir-v313-210915-arm64-bgZ.img
Invalid sparse file format at header magic
Sending sparse 'system' 1/12 (262088 KB) OKAY [ 6.351s]
Writing 'system' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed


I'm tired of this...

Wiped also in recovery.
 

Patrick Star_

Member
Sep 27, 2021
20
0
I'm answering to rayman95...

Now I used "fastboot delete-logical-partition system_b"

And then I get:

C:\adb>fastboot flash system lir-v313-210915-arm64-bgZ.img
Invalid sparse file format at header magic
Sending sparse 'system' 1/12 (262088 KB) OKAY [ 6.351s]
Writing 'system' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed


I'm tired of this...

Wiped also in recovery.
If so, maybe the IMG file you downloaded is wrong. Download it again and check MD5
 

dwensch

Senior Member
Mar 26, 2011
96
21
localhost
Xiaomi Mi 11 Lite 5G
If so, maybe the IMG file you downloaded is wrong. Download it again and check MD5


"
C:\adb>fastboot flash system lir-v313-210915-arm64-bgZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

C:\adb>fastboot flash system caos-v313-210911-arm64-bgZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

C:\adb>fastboot flash system caos-v313-210911-arm64-agZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

"

I tried different images. I'm sick and tired of this and gonna flash xiaomi.eu
 

Patrick Star_

Member
Sep 27, 2021
20
0
"
C:\adb>fastboot flash system lir-v313-210915-arm64-bgZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

C:\adb>fastboot flash system caos-v313-210911-arm64-bgZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

C:\adb>fastboot flash system caos-v313-210911-arm64-agZ.img
Invalid sparse file format at header magic
Resizing 'system_b' FAILED (remote: 'Not enough space to resize partition')
fastboot: error: Command failed

"

I tried different images. I'm sick and tired of this and gonna flash xiaomi.eu
You may need to restore the original system before using it. You can download reply programs and files on Xiaomi's official website
 

rayman95

Senior Member
Jan 14, 2009
6,260
3,805
63
monaco
Google Nexus 4
Samsung Galaxy Note 3

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    After I enter this, it just stays on waiting for any device.

    View attachment 5419437

    Update: I was able to figure it out. My device had no drivers so I went search through updates on windows and installed a LeMobile Android driver os it shows up properly in device manager.
    because you don't have xiaomi drivers installed...install xiaomi pc suite and you will have drivers installed...
    1
    o.t. - but maybe you can also explain me what "fastbootD" (written in yellow) is ?!?
    It's written like this to be sure that people read correctly and see difference with only fastboot...it seems D mode bypass some limitations, but not sure exactly..Google is not always your friend specially on this...I'm sure that if you don't use it you can't flash correctly GSI builds...
    1
    oh, sorry for my english - suite was already installed before !
    can't flash because I can't find .img and miflash doesn't recognize the phone .....
    have also tried different usb slots
    You sure you take fastboot version???
    1
    These method and files can be used on 'lisa' as well ?
    I think you can use to mi devices...
  • 2
    Hi, first of all, I'm not a dev or else just user who had difficulties to flash GSI rom on my phone... Was 7 years with a samsung galaxy Note 3, with twrp....So easy to flash....
    with the help of @gr0ndpa, thanks to him.....

    Now I will explain how to flash easily with files attached

    1/ first of all you need a phone and drivers installed, use xiaomi pc suite, unzip and install it
    2/ you need to activate USB debug in dev options.
    3/ dl adb folder unzip it and put in C
    4/ run command and type
    Code:
    cd /adb
    5/ then
    Code:
    adb devices
    to check if phone recognised
    6/
    Code:
    adb reboot bootloader
    once in fast boot
    7/
    Code:
    fastboot flash vbmeta vbmeta.img
    wait finished type to enter in fastbootD
    8/
    Code:
    fastboot reboot fastboot
    9/
    Code:
    fastboot flash system
    LiR 313.XXX.img
    you will have a system error, but wait the flash begin in few seconds
    at the end wait ok then
    10/
    Code:
    fastboot reboot recovery
    on stock recover
    11/ wipe data and reboot with +/- and PWR

    and you're done...

    In case you want to flash custom kernel or patched boot image to root with magisk, you have to

    12/
    Code:
    adb reboot bootloader

    Copy kernel boot image to C drive and rename kernel boot image to boot.img.

    13/
    Code:
    fastboot flash boot c:\boot.img
    14/
    Code:
    fastboot reboot


    In case you want to flash twrp put the file to adb folder and type in fastboot
    15/
    Code:
    fastboot boot twrp.img



    You can check what I ve done on tuto ss...

    if you have some comments, don't hesitate...
    I flashed LiR 18.1 rom and very happy with it.....
    1
    After I enter this, it just stays on waiting for any device.

    View attachment 5419437

    Update: I was able to figure it out. My device had no drivers so I went search through updates on windows and installed a LeMobile Android driver os it shows up properly in device manager.
    because you don't have xiaomi drivers installed...install xiaomi pc suite and you will have drivers installed...
    1
    o.t. - but maybe you can also explain me what "fastbootD" (written in yellow) is ?!?
    It's written like this to be sure that people read correctly and see difference with only fastboot...it seems D mode bypass some limitations, but not sure exactly..Google is not always your friend specially on this...I'm sure that if you don't use it you can't flash correctly GSI builds...
    1
    oh, sorry for my english - suite was already installed before !
    can't flash because I can't find .img and miflash doesn't recognize the phone .....
    have also tried different usb slots
    You sure you take fastboot version???