System partition size.

Moderators: Oren.R, Eran.M

nvilaca
Posts: 19
Joined: Tue Mar 10, 2015 10:04 am

System partition size.

Postby nvilaca » Tue Sep 27, 2016 2:07 pm

I've used recovery image v64, and flashed it's image to a SOM(eMMC). Then i rebooted the image, and tried to flash a stock image I compiled following all the steps in the wiki, using fastboot, but i get an error on system.img:

Code: Select all

Starting download of 385115252 bytes
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
....................................................
downloading of 385115252 bytes finished
writing to partition 'system'
support sparse flash partition for system
sparse flash target is MMC:1
writing to partition 'system' for sparse, buffer size 385115252
Flashing Sparse Image
write_sparse_image: Request would exceed partition size!


On the host side:

Code: Select all

var_m_601_100/m_601_100_build$ sudo `which fastboot` flash system out/target/product/var_mx6/system.img
target reported max download size of 419430400 bytes
sending 'system' (376089 KB)...
OKAY [ 20.668s]
writing 'system'...
FAILED (remote: Request would exceed partition size!)
finished. total time: 55.434s


I confirmed that I am building the image for eMMc.

Can i safely increase System partition size on the install_android_emmc.sh script? currently is at 512 MB?Is this the right way for correcting this?

I'm using VAR-SOM-SOLO on VAR-MX6CustomBoard.

On other issue, what would the best way to compile an image for using a different touchscreen? eGalax on our case.

nvilaca
Posts: 19
Joined: Tue Mar 10, 2015 10:04 am

Re: System partition size.

Postby nvilaca » Wed Sep 28, 2016 10:09 am

I'm bumping this issue, because i can't move forward...

I was forgetting the "sim2img" command, but after cleaning the build and retracing all the steps, i'm still getting the same error, only difference is that now it fails after a long time "writing 'system'".

Anyone having such an issue? Am i missing something?

nvilaca
Posts: 19
Joined: Tue Mar 10, 2015 10:04 am

Re: System partition size.

Postby nvilaca » Wed Sep 28, 2016 3:27 pm

Ok, i rechecked and confirmed, the partition size was the culprit. By default the install_android_emmc.sh script is creating 512MB partitions on the emmc.

When you build the stock android distro, the image prepared with the simg2img command will be larger tahn the 512 MB, in either user or eng configs. So trying to flash it into the emmc will fail. I edited the script to create a 1024 MB partition. You should fix this on the recovery image.


Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest

cron