patches-2.6.36: Fix flashmap spare length calculation from previous commit (for rootfs and rootfs_data mtd partitions). Apparently the interruption in working on it resulted in an incorrect memory of getting it working.

SVN-Revision: 24842
owl
Daniel Dickinson 2010-12-28 04:05:04 +00:00
parent 093ebfe217
commit 5ee2a6c696
1 changed files with 2 additions and 2 deletions

View 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;