kernel: mtdsplit: add support for brnImages
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 10:40:51 +0000 (10:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 10:40:51 +0000 (10:40 +0000)
commitbdd2772f1d1f822acedb7dadf9d5978ce2dbc2e2
treeb8b786e2eff7311ec4bb2b31b88edcab2dd8c0c5
parent3348279ecae916154c87b18d3653f6f7b7dbe476
kernel: mtdsplit: add support for brnImages

This adds brnImage (used with the brnboot bootloader) firmware parsing
support. brnboot verifies the integrity of the firmware stored on the
"Code Image" partitions by looking at the 12 byte footer at the very end
of the partition. This footer contains the checksum of the original
brnImage (kernel + rootfs/squashfs) and must not be touched (by our JFFS2
rootfs_data - otherwise the image will not be bootable anymore).

Big thanks to Mathias Kresin for analyzing the brnImage structure and
finding out the information how to keep images valid even when adding a
nested rootfs_data partition.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 48261
target/linux/generic/config-3.18
target/linux/generic/config-4.1
target/linux/generic/config-4.3
target/linux/generic/config-4.4
target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
target/linux/generic/files/drivers/mtd/mtdsplit/Makefile
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c [new file with mode: 0644]