-@@ -56,7 +66,7 @@ static int parse_cfe_partitions(struct m
- unsigned int rootfsaddr, kerneladdr, spareaddr;
- unsigned int rootfslen, kernellen, sparelen, totallen;
- int namelen = 0;
-- int i;
-+ int i, offset;
- char *boardid;
- char *tagversion;
-
-@@ -84,9 +94,11 @@ static int parse_cfe_partitions(struct m
-
- kerneladdr = kerneladdr - BCM63XX_EXTENDED_SIZE;
- rootfsaddr = kerneladdr + kernellen;
-+
-+ rootfslen = ( ( rootfslen % master->erasesize ) > 0 ? (((rootfslen / master->erasesize) + 1 ) * master->erasesize) : rootfslen);
-+
- spareaddr = roundup(totallen, master->erasesize) + master->erasesize;
- sparelen = master->size - spareaddr - master->erasesize;
-- rootfslen = spareaddr - rootfsaddr;
-
- /* Determine number of partitions */
- namelen = 8;
-@@ -214,9 +226,21 @@ static int bcm963xx_probe(struct platfor