msmzirc : Fix the system partition index value
Partition table indexing expected by HLOS is from 1 for eMMC. In LK,indexing
starts from 0 so adding 1 to fix the system partition index used while
appending root= to the kernel command line.
Change-Id: I578697fa54f955d9a3977076b3600ff6850fc6eb
diff --git a/target/msmzirc/init.c b/target/msmzirc/init.c
index 22e03df..ef2ebf7 100644
--- a/target/msmzirc/init.c
+++ b/target/msmzirc/init.c
@@ -246,7 +246,7 @@
}
else {
/* Below is for emmc boot */
- system_ptn_index = partition_get_index(part);
+ system_ptn_index = partition_get_index(part) + 1; /* Adding +1 as offsets for eMMC start at 1 and NAND at 0 */
if (system_ptn_index < 0) {
dprintf(CRITICAL,
"WARN: Cannot get partition index for %s\n", part);