diff options
author | Daniel Dickinson <crazycshore@gmail.com> | 2010-12-28 04:05:04 +0000 |
---|---|---|
committer | Daniel Dickinson <crazycshore@gmail.com> | 2010-12-28 04:05:04 +0000 |
commit | 5ee2a6c696da3b4f351b25acfeb4e00e9fb00e13 (patch) | |
tree | c469f4c2c38e4410ba1a4786c721ca991f1f1912 /target/linux | |
parent | 093ebfe2173d80654c17c286241c36aa8dd13876 (diff) | |
download | upstream-5ee2a6c696da3b4f351b25acfeb4e00e9fb00e13.tar.gz upstream-5ee2a6c696da3b4f351b25acfeb4e00e9fb00e13.tar.bz2 upstream-5ee2a6c696da3b4f351b25acfeb4e00e9fb00e13.zip |
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
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch index 4835a159ae..5a5ba12834 100644 --- a/target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch @@ -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; |