mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 06:38:27 +02:00
[brcm63xx] 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.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24842 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ac2bc89bb8
commit
8688d050d6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user