[brcm63xx] patches-2.6.36: Fix flashmap spare length calculation from previous commit...
[openwrt.git] / target / linux / brcm63xx / patches-2.6.35 / 040-bcm963xx_flashmap.patch
index 4835a15..5a5ba12 100644 (file)
@@ -179,8 +179,8 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +      rootfslen = ( ( rootfslen % master->erasesize ) > 0 ? (((rootfslen / master->erasesize) + 1 ) * master->erasesize) : rootfslen);
 +      totallen = rootfslen + kernellen + sizeof(struct bcm_tag);
 +
-+      spareaddr = roundup(totallen, master->erasesize) + master->erasesize;
-+      sparelen = master->size - spareaddr - master->erasesize;
++      spareaddr = rootfsaddr + rootfslen;
++      sparelen = master->size - totallen - master->erasesize;
 +
 +      /* Determine number of partitions */
 +      namelen = 8;
This page took 0.027068 seconds and 4 git commands to generate.