-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Honor 10 Lite] Cannot flash any GSI image in system via fastboot #1732
Comments
Yes, issue is that GSIs are bigger than your system partition.
You should be able to flash system-roar-arm64-vanilla.img
24 févr. 2021 20:36:15 Olga Kawaii <notifications@github.com>:
… Hello. I recently unlocked the bootloader on my own device (its model is HRY-LX1) and tried to flash AOSP 11 image but to no avail. I get this error in fastboot during writing stage: FAILED (remote: 'sparse flash write failure')
Stock system version is EMUI 9.1.0.290 (Android 9.0). System partition type is A/B (according to Treble Info app).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub[#1732], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OXWFNYWN23APXXOTDLTAVIK5ANCNFSM4YFD62KQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OXR6XHA7FEGEHGPPFDTAVIK5A5CNFSM4YFD62K2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ME723SQ.gif]
|
Tried with "system-roar-arm64-ab-vanilla.img" image. It's strange that fastboot didn't report "max download size" in bytes (or it should not?). And no, same error:
If it helps, "FAILED" string appeared practically immediately. But I can erase system partition through fastboot successfully. |
I'm pretty sure this system.img isn't
system-roar-arm64-ab-vanilla.img
24 févr. 2021 21:32:22 Olga Kawaii <notifications@github.com>:
…> Yes, issue is that GSIs are bigger than your system partition.
> You should be able to flash system-roar-arm64-vanilla.img
> Tried with "system-roar-arm64-ab-vanilla.img" image. It's strange that fastboot didn't report "max download size" in bytes (or it should not?). And no, same error:
>
C:\adb>fastboot flash system system.img
Sending sparse 'system' 1/4 (458752 KB) OKAY [ 10.129s]
Writing 'system' FAILED (remote: 'sparse flash write failure')
fastboot: error: Command failed
If it helps, "FAILED" string appeared practically immediately. But I can erase system partition through fastboot successfully.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub[#1732 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OQICRFYTD4JT2LKYOTTAVO5NANCNFSM4YFD62KQ].
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OVXMJ3WUF5UUE77WMDTAVO5NA5CNFSM4YFD62K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF3HZIZI.gif]
|
hum right, I messed my computations.
I'm pretty surprised you can't flash such a small image.
What's the size of your system parition?
Le mer. 24 févr. 2021 à 21:48, Olga Kawaii <notifications@github.com> a
écrit :
… I checked twice before downloading and unpacking it from archive. It is. I
just renamed it. 🤔
I also tried unpacking and flashing it from another drive (in order to
exclude any file integrity errors), without renaming this time.
C:\adb>fastboot flash system system-roar-arm64-ab-vanilla.img
Sending sparse 'system' 1/4 (458752 KB) OKAY [ 10.135s]
Writing 'system' FAILED (remote: 'sparse flash write failure')
fastboot: error: Command failed
C:\adb>fastboot flash system D:\Downloads\system-roar-arm64-ab-vanilla.img
Sending sparse 'system' 1/4 (458752 KB) OKAY [ 10.141s]
Writing 'system' FAILED (remote: 'sparse flash write failure')
fastboot: error: Command failed
And if you still don't believe me, here's the screenshot of the properties
of image in downloaded archive and unpacked image. The sizes in bytes are
the same.
[image: Snap5322]
<https://user-images.githubusercontent.com/29918546/109063617-f39e6b00-771b-11eb-9795-3e5f5d8db38d.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1732 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAA4ORQDTUIAGIE4IGYE53TAVQZ3ANCNFSM4YFD62KQ>
.
|
Hey...did u erase the system before trying to flash a other system.img C:\adb>fastboot flash system system.img Is the Device authorized in fastboot???? C:\adb>fastboot devices But you can also try to flash costum Recovery like TWRP fastboot flash recovery_ramdisk TWRP_XXXXXXXXXXXXXXXXXX.img then press PWR until the Device Shutdown in TWRP you can Format DATA and Delete Cache Dalvik Data and System follow the needet steps for your Device if all is done...reboot good luck solong |
Yes, same error.
Yes, I can flash a custom recovery, and I already did it. But I can reboot into it only through adb in loaded system, because Power+Volume Up launches eRecovery.
I formatted /data, /cache and /system, then tried to flash system-roar-arm64-ab-vanilla.img. TWRP reported about successfully completed operation, but there is no any files in /system (according to Terminal and File Manager in TWRP). And reboot attempt, unfortunately, lead to bootloop. |
If I got that right, according to recovery.log generated by TWRP, my system partition's size is 1504 MB.
|
Hm... no, it seems like my system partition's size is same as stock system image: 1,33 GB. I tried to flash OpenKirin's AEX image, which size is 1,30 GB (variant without gapps), and it flashed successfully.
|
on a mtk device I had a similar problem, maybe this fastboot command will help "fastboot -u flash system name_of_system.img" |
Tried with -u flag, but fastboot reported |
I guess I should resize my system partition. In older firmware versions (EMUI 9.0) it has been 2,11 GB. |
I just observed that you have twrp, can't you flash the gsi from there? |
I tried to flash downloaded GSI image through TWRP in several ways:
I thought so, too, but TWRP shows zeros in Size, Free and Used parameters of this partition. Although I can try to change its size, I doubt it will work. But if I mount this partition manually, I won't be able to do anything with it, because TWRP will be thinking this partition is formatted as "auto", and the zeros will remain in place. |
So... I tried to format System Root partition in TWRP, then went to Wipe - Advanced Wipe - check System Root and press on Repair or Change File System, and TWRP reported its size is 1456 MB. Recently uploaded AOSP 11 GSI image "system-roar-arm64-ab-vanilla.img" weighs approximately 1504 MB and it can't fit in System Root's size not through fastboot nor TWRP's flashing images mechanism. Can I somehow decrease downloaded GSI image's size? |
I decreased image size manually, repacking it through Universal Kitchen for Android. Thank you so much for responding, guys. I think I'll create a new issue, if something gone wrong. |
How did you decrease image size, I have the same issue |
i hope that you tell us how did you decrease the size of the partition |
Hello. I recently unlocked the bootloader on my own device (its model is HRY-LX1) and tried to flash AOSP 11 image but to no avail. I get this error in fastboot during writing stage: FAILED (remote: 'sparse flash write failure')
Stock system version is EMUI 9.1.0.290 (Android 9.0). System partition type is A/B (according to Treble Info app).
The text was updated successfully, but these errors were encountered: