Ignore:
Timestamp:
2010-12-28T05:05:04+01:00 (6 years ago)
Author:
cshore
Message:

[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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/patches-2.6.35/040-bcm963xx_flashmap.patch

    r24838 r24842  
    180180+       totallen = rootfslen + kernellen + sizeof(struct bcm_tag); 
    181181+ 
    182 +       spareaddr = roundup(totallen, master->erasesize) + master->erasesize; 
    183 +       sparelen = master->size - spareaddr - master->erasesize; 
     182+       spareaddr = rootfsaddr + rootfslen; 
     183+       sparelen = master->size - totallen - master->erasesize; 
    184184+ 
    185185+       /* Determine number of partitions */ 
Note: See TracChangeset for help on using the changeset viewer.