Hi all,
is there any constraint on heads and sectors/track for bootable eMMC partitioning and formatting?
Using 255 heads and 63 sectors/track I can succesfully boot my DM3730 system; the boot partition (containing MLO and u-boot) looks like this:
# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 3959 MB, 3959422976 bytes
255 heads, 63 sectors/track, 481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1 5 40131 b Win95 FAT32
or in sector units:
# fdisk -ul /dev/mmcblk0
Disk /dev/mmcblk0: 3959 MB, 3959422976 bytes
255 heads, 63 sectors/track, 481 cylinders, total 7733248 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 63 80324 40131 b Win95 FAT32
For better eMMC performance I would like to align partitions to multiple of erase group size (in my case 256 Kb).
To get 256 Kb cylinder I used 16 heads and 32 sectors/track and boot partition looks like this:
# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 3959 MB, 3959422976 bytes
16 heads, 32 sectors/track, 15104 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 2 129 32768 b Win95 FAT32
or in sectors units:
#fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 3959 MB, 3959422976 bytes
16 heads, 32 sectors/track, 15104 cylinders, total 7733248 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 512 66047 32768 b Win95 FAT32
But now system boot fails (no X-Loader output in the console).
Any suggestion?
Regards,
Andrea