[brcm63xx] patches-2.6.36: Fix flashmap spare length calculation from previous commit...
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Dec 2010 04:05:04 +0000 (04:05 +0000)
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Dec 2010 04:05:04 +0000 (04:05 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24842 3c298f89-4303-0410-b956-a3cf2f4a3e73

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.029182 seconds and 4 git commands to generate.