ODROID-C3/N2: mmc: remap the MPT partition table

After reduce the size of boot loader area to fit in 1MB, MPT partition table
can be fit at 2048 LBA and this partition table would be used by Android
for numerous partitions other than Linux based platforms.

Change-Id: Ic8b8defedb4103abf547bae7f533036904578b59
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
Dongjin Kim
2018-08-23 18:02:38 +09:00
committed by Chris KIM
parent 0936b6ca31
commit d6fab8416a

View File

@@ -3034,7 +3034,7 @@ static int mmc_validate_mpt_partition(struct mmc_card *card)
mmc_claim_host(card->host);
/* FIXME: fix up the magic number for start block to check MPT partition */
ret = mmc_read_internal(card, 8184, 1, buf);
ret = mmc_read_internal(card, 2048, 1, buf);
if (ret == 0) {
if (strncmp(buf, MMC_PARTITIONS_MAGIC,
sizeof(((struct mmc_partitions_fmt*)0)->magic)) != 0) {