On 12 August 2011 09:47, Bee Hock Goh beehock@gmail.com wrote:
I am trying to script out creating of android partitions on different size of sdcard. While going through android-media-create scripts, I found the following:
return '%s,%s,%s,*\n%s,%s,L\n%s,%s,L\n%s,-,E\n%s,%s,L\n%s,,,-' % ( boot_start, boot_len, partition_type, system_start, _system_len, cache_start, _cache_len, userdata_start, userdata_start, _userdata_len, sdcard_start)
The scripts itself has calculate the alignment through the start/len of the different partition. However, the first logical partition created under the extended partition has the same starting sector. If I do a test using sfdisk, I get an bad parition start for the logical partition.
Hi Ben,
I believe that having the boot partition aligned to 4MB boundaries can cause problems with old x-loaders, so by default the Linaro media create scripts only align the non-boot partitions to 4MB boundaries. You can override this by adding --align-boot-part to your linaro-android-media-create line. If my reading of the code is correct by default boot partitions will be aligned on sector 63 unless they are a Snowball, Mx5 or Samsung board, which all have their own requirements for where a boot partition should be and ignore the align-boot-part flag.
Hope this helps,
James