kernel: mtdsplit: add support for brnImages
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 17 Jan 2016 10:40:51 +0000 (10:40 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 17 Jan 2016 10:40:51 +0000 (10:40 +0000)
commitcd34209f9da29ad52dd8815817fd0c618883ac4b
tree1c63604cb1d843b22a320fc2dec612c55fd6a800
parent5183f9c3d945fa640f6d8da94bfaa6131e3d71c6
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48261 3c298f89-4303-0410-b956-a3cf2f4a3e73
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]