From 8d932b938c9938d6861dfbb213f9fe73f9719b63 Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Thu, 23 Aug 2018 18:02:38 +0900 Subject: [PATCH] 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 --- drivers/mmc/card/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index c0fb2c35f059..d9d78564bedb 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2916,7 +2916,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) {