Hello everyone,
First of all, excuse my poor english. I'm going directly to the point: I've tried to flash the google GSI+GMS ("https://developer.android.com/topic/generic-system-image/releases"). Flashing vbmeta goes fine but, when I try to flash the system.img I receibe next message: "Invalind sparse image".
I've investigated and I found that the image is a raw image so I've converted to sparse image using "img2simg <input original image> <output sparse image>".
When I flashed the new sparse image everything looks fine (no sparse error and starts to copy first block) but flashing fails after a few seconds.
Here you can find the error messages:
For image in gsi+gms zip:
./Android/Sdk/platform-tools/fastboot flash system Descargas/gsi_gms_arm64-QP1A.190771.020-5800535/system.img
Invalid sparse file format at header magic
For sparsed image:
./Android/Sdk/platform-tools/fastboot flash system system.img
Sending sparse 'system' 1/5 (488281 KB) OKAY [ 28.073s]
Writing 'system' OKAY [ 0.001s]
Sending sparse 'system' 2/5 (488281 KB) FAILED (remote: 'Error: Last flash failed : Invalid Parameter')
fastboot: error: Command failed
Anyone can help me? thanks a lot!
Related
Hello, (I apologize for my bad english)
Since one week with the update 4.4.2-11.4.1.27 I've got a problem with "black screen". Indeed I need to get lucky with the power button to wake up the screen.
I try lots of things but it was hard to install a new rom without seeing the recovery.
So I tried to use fastboot instead of the recovery.
In first, I tried this :
fastboot erase system -w
fastboot erase boot
fastboot update [CROMi-X 7.0.3][11.4.1.17].zip
but it doesn't work, I had this message :
archive does not contain 'android-info.txt'
archive does not contain 'android-product.txt'
error: update package has no android-info.txt or android-product.txt
Then, I tried this :
fastboot erase system -w
fastboot erase boot
fastboot -i 0x0B05 flash boot boot.img
fastboot -i 0x0B05 flash staging blob
fastboot -i 0x0B05 flash system UL-K00C-WW-11.4.1.17-user.zip
And it failed again :'( with this error text :
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -i 0x0B05 flash system
UL-K00C-WW-11.4.1.17-user.zip
target reported max download size of 643825664 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 345823125 is not a multiple of
he block size 4096
erasing 'system'...
OKAY [ 1.227s]
sending sparse 'system' (602018 KB)...
error: write_sparse_skip_chunk: don't care size 345823125 is not a multiple of
he block size 4096
error: write_sparse_skip_chunk: don't care size 345823125 is not a multiple of
he block size 4096
OKAY [ 81.624s]
writing 'system'...
OKAY [ 17.300s]
sending sparse 'system' (337720 KB)...
OKAY [ 45.821s]
writing 'system'...
OKAY [ 9.322s]
finished. total time: 155.295s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot
rebooting...
finished. total time: 0.020s
C:\Program Files (x86)\Minimal ADB and Fastboot>
Thank you for helping me, I don't understand where is the mistake....
Im currently following a guide to update my encrypted N6 to 5.0.1 and it is all working well up until i go to flash the system.img that i got from 5.0.1 where i get an error.
Code:
C:\Users\Chris\Desktop\android-sdk-windows\platform-tools>fastboot flash system
system.img
target reported max download size of 536870912 bytes
sending 'system' (457800 KB)...
OKAY [ 14.332s]
writing 'system'...
(bootloader) Invalid sparse image
FAILED (status read failed (Too many links))
finished. total time: 14.353s
Im not sure where to go from here, any tips?
Chris_Krz said:
Im currently following a guide to update my encrypted N6 to 5.0.1 and it is all working well up until i go to flash the system.img that i got from 5.0.1 where i get an error.
Code:
C:\Users\Chris\Desktop\android-sdk-windows\platform-tools>fastboot flash system
system.img
target reported max download size of 536870912 bytes
sending 'system' (457800 KB)...
OKAY [ 14.332s]
writing 'system'...
(bootloader) Invalid sparse image
FAILED (status read failed (Too many links))
finished. total time: 14.353s
Im not sure where to go from here, any tips?
Click to expand...
Click to collapse
Your device won't override. So you can erase the system
fastboot erase system -w
then flash
fastboot flash system system.img
Hello!
My RazrI got into a bootloop (red boot animation) without any reason (the phone worked since over a year without any tweaking around with stock firmware). I got it into fastboot and tried to flash CFC_9.8.2I-50_SMI-26_S7_USASMIJBRTEU.xml with RSD but at command 4 (reboot bootloader) it failed. I also tried the MEDFIELD unbrick fix, but this didn't help also. So I executed each fastboot command from the RSD xml manually. I flashed gpt, motoboot, boot, recovery and motobp with success. But I got an error on system:
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 701911720 is not a multiple of the block size 4096
a few other lines with this block size problem then:
sending sparse 'system' (99096 KB)...
error: write_sparse_skip_chunk: don't care size 701911720 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 701911720 is not a multiple of the block size 4096
OKAY [ 9.108s]
Writing 'system'...
(bootloader) BLKDISCARD ioctl /dev/block/mmcblk0 fail
(bootloader) Fail to erase partition
FAILED (remote failure)
The same result with flashing cdrom.
Then I tried to erase the system with fastboot erase system and got the following error:
erasing 'system'...
FAILED (remote: Permission denied)
I also tried to erase the cache with the following result:
erasing 'cache'...
(bootloader) BLKDISCARD ioctl /dev/block/mmcblk0 fail
(bootloader) Erase cache fail
FAILED (remote failure)
My bootloader is unlocked. After getting the first time into fastboot, now the phone hangs on the "unlocked bootloader" screen for some time and the resets und loops this way.
Is there any hope to get it working again?
Thanks!
You need to use mfastboot to flash system. It won't work with fastboot.
mfastboot is a modified fastboot to work with large system files.
Sent from my XT1095 using Tapatalk
AGISCI said:
You need to use mfastboot to flash system. It won't work with fastboot.
mfastboot is a modified fastboot to work with large system files.
Sent from my XT1095 using Tapatalk
Click to expand...
Click to collapse
Thank You for the tip. Sadly, mfastboot didn't help either. I got the following result:
Multi-Flash is enabled!
sending 'system' (102400 KB)...
OKAY [ 9.850s]
writing 'system'...
OKAY [ 0.435s]
sending 'system' (102400 KB)...
(bootloader) BLKDISCARD ioctl /dev/block/mmcblk0 fail
(bootloader) Failed to erase partition
(bootloader) Failed to write mmc
OKAY [ 10.990s]
writing 'system'...
FAILED (remote failure)
sultan70 said:
Thank You for the tip. Sadly, mfastboot didn't help either. I got the following result:
Multi-Flash is enabled!
sending 'system' (102400 KB)...
OKAY [ 9.850s]
writing 'system'...
OKAY [ 0.435s]
sending 'system' (102400 KB)...
(bootloader) BLKDISCARD ioctl /dev/block/mmcblk0 fail
(bootloader) Failed to erase partition
(bootloader) Failed to write mmc
OKAY [ 10.990s]
writing 'system'...
FAILED (remote failure)
Click to expand...
Click to collapse
U got most likely a emmc error. Can't be fixed till this date or I don't know anyone that has fixed this problem.
All Razr I's have this. Some have just luke that they will never encounter this.
I'm trying to flash it using TWRP, but when it asks which partition to flash it to, my only options are Boot and Recovery. Vendor is not there (it is mounted, though).
when I try flashing it using fastboot, I get this:
Code:
target reported max download size of 471859200 bytes
Invalid sparse file format at header magi
sending sparse 'vendor' (311613 KB)...
OKAY [ 7.933s]
writing 'vendor'...
FAILED (remote: Command not allowed)
finished. total time: 7.940s
Exact same problem
D:\phone extracts>fastboot flash vendor VENDOR.img
target reported max download size of 471859200 bytes
sending sparse 'vendor' 1/2 (457331 KB)...
OKAY [ 10.760s]
writing 'vendor' 1/2...
FAILED (remote: Command not allowed)
finished. total time: 10.768s
any help on this?
Same problem here on ANE-lx1
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash vendor vendor.img
target reported max download size of 471859200 bytes
sending sparse 'vendor' 1/2 (435194 KB)...
OKAY [ 16.808s]
writing 'vendor' 1/2...
FAILED (remote: Command not allowed)
finished. total time: 16.808s
Sounds like your bootloader has been locked. Try unlocking before re-flashing
hello,
when trying to flash recovery image (for lineage os) i got the following :
Warning: skip copying boot_a image avb footer (boot_a partition size: 100663296, boot_a image size: 104857600).
Sending 'boot_b' (102400 KB) OKAY [ 3.331s]
Writing 'boot_b' FAILED (remote: 'Error flashing partition : Volume Full')
fastboot: error: Command failed
didn't found any article on google , can someone help please ?
thank you .