The backup partition table at the end of the image for GPT consists of an
odd number of sectors. The size of filesystem images or the explicit size
of a partition is almost always a multiple of 4k. Unless explicitly
configured otherwise, the beginning of all partitions is also multiple of
4k. So when the backup partition table is appended directly after the last
partition then the image size is most likely not a multiple of 4k.
This causes problems with tools such as 'fastboot'.
If the image size is not specified explicitly and GPT is used then increase
the image size if necessary to ensure that it is a multiple of 4k.
The backup partition table at the end of the image for GPT consists of an odd number of sectors. The size of filesystem images or the explicit size of a partition is almost always a multiple of 4k. Unless explicitly configured otherwise, the beginning of all partitions is also multiple of 4k. So when the backup partition table is appended directly after the last partition then the image size is most likely not a multiple of 4k. This causes problems with tools such as 'fastboot'.
If the image size is not specified explicitly and GPT is used then increase the image size if necessary to ensure that it is a multiple of 4k.
Signed-off-by: Michael Olbrich m.olbrich@pengutronix.de