Error flashboot flash system.img

When I try to execute flashcoot system.img (from my own AOSP build) in Sony Xperia Z3, I get the following error:

# fastboot flash system system.img sending 'system' (584106 KB)... OKAY [ 18.294s] writing 'system'... FAILED (remote: size too large) finished. total time: 18.297s 

The Z3 has a 2 GB system partition, and I have no idea why the blink fails.

+5
source share
4 answers

Finally, I found a solution:

 BOARD_SYSTEMIMAGE_PARTITION_SIZE 

BoardConfig.mk had more than it should have been. This changed the problem.

+1
source

This makes fastboot automatically cut files into a given range of K | M | G, in this case 256M

 fastboot flashS 256M system PATH_TO_SYSTEM.img 
+10
source

Use the newer version of fastboot, which allows you to send packets first.

+4
source

Just use the new version of fastboot. New bootloaders support loading system.img in parts.

+1
source

Source: https://habr.com/ru/post/1238312/


All Articles