kernel: mtdsplit_squashfs: Align with the erase-block size
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 10:41:30 +0000 (10:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 10:41:30 +0000 (10:41 +0000)
commit7703e14bc4f36758ac28eea3c2abce7591ed4b8d
treebe34e608482b75ef9d31571768e5a736fe54358b
parent651083bbd9f2a63a27d185512f903eb184f1f292
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@googlemail.com>
SVN-Revision: 48263
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_squashfs.c