On 28/09/17 15:01, Diogo Piçarra wrote:
> The ext4 file have the correct size.
> Just checked the documentation and the MENDER_STORAGE_TOTAL_SIZE_MB
> value is generated automatically as I expected.
> So removed that option and got this error:
> "ERROR: ionseed-image-1.0-r0 do_image_mender: Size of rootfs is greater
> than the calculated partition space (1073741824 > 181403648). This image
> won't fit on a device with the current storage configuration. Try
> reducing IMAGE_OVERHEAD_FACTOR if it is higher than 1.0, or raise
> MENDER_STORAGE_TOTAL_SIZE_MB if the device in fact has more storage."
>
> I guess that's why set the MENDER_STORAGE_TOTAL_SIZE_MB value. The
> OVERHEAD_FACTOR is 1.0.
> The partition and the rootfs should have the same size.
> I guess the partition size calculation is based on the content. I think
> the IMAGE_ROOTFS_SIZEshould overwrite that when it's bigger.
Not sure I follow. MENDER_STORAGE_TOTAL_SIZE_MB cannot be automatically
adjusted, because this is the real physical storage size accessible on
the device. This is the *whole* storage, the entire size of the memory
card, not just partitions. IMAGE_ROOTFS_SIZE is calculated based on this
value, and you can set IMAGE_ROOTFS_SIZE to be smaller than the
calculated value (for example to avoid the EOF bug), but never bigger,
because this would not fit inside the generated partition.
> Btw, the update worked after about 3 hours and many retries. That's
> still not good.
Yes the EOF bug will need to be fixed obviously.
--
Kristian