mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user