Changeset 48263


Ignore:
Timestamp:
2016-01-17T11:41:30+01:00 (2 years ago)
Author:
nbd
Message:

kernel: mtdsplit_squashfs: Align with the erase-block size

On most image types the rootfs ends at an erase-block. However, at least
with brnImages this is not the case: while the partitions are aligned
with the erase-block size there is a 12 byte footer at the end of the
partition which must not be touched by any filesystem. This lead to a
rootfs_data partition which was not aligned properly (and thus ended up
being readonly):

0x000000480000-0x00000085a800 : "rootfs_data" (128 KiB EB)

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_squashfs.c

    r43805 r48263  
    5050        part->offset = mtd_roundup_to_eb(part_offset + squashfs_len, 
    5151                                         parent_mtd) - part_offset; 
    52         part->size = master->size - part->offset; 
     52        part->size = mtd_rounddown_to_eb(master->size - part->offset, master); 
    5353 
    5454        *pparts = part; 
Note: See TracChangeset for help on using the changeset viewer.