immortalwrt/target/linux
Daniel Golle 36c74de2f5
image: add support for building FIT image with filesystem
Allow for single (external-data) FIT image to hold kernel, dtb and
squashfs. In that way, the bootloader verifies the system integrity
including the rootfs, because what's the point of checking that the
hash of the kernel is correct if it won't boot in case of squashfs
being corrupted? Better allow bootloader to check everything needed
to make it at least up to failsafe mode. As a positive side effect
this change also makes the sysupgrade process on nand potentially
much easier as it is now.
In short: mkimage has a parameter '-E' which allows generating FIT
images with 'external' data rather than embedding the data into the
device-tree blob itself. In this way, the FIT structure itself remains
small and can be parsed easily (rather than having to page around
megabytes of image content). This patch makes use of that and adds
support for adding sub-images of type 'filesystem' which are used to
store the squashfs. Now U-Boot can verify the whole OS and the new
partition parsers added in the Linux kernel can detect the filesystem
sub-images, create partitions for them, and select the active rootfs
volume based on the configuration in FIT (passing configuration via
device tree could be implemented easily at a later stage).

This new FIT partition parser works for NOR flash (on top of mtdblock),
NAND flash (on top of ubiblock) as well as classic block devices
(ie. eMMC, SDcard, SATA, NVME, ...).
It could even be used to mount such FIT images via `losetup -P` on a
user PC if this patch gets included in Linux upstream one day ;)

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-02 22:17:37 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.97 2021-02-12 12:05:11 +08:00
arc770 target: use SPDX license identifiers on scripts 2021-02-11 12:08:24 +08:00
archs38 target: use SPDX license identifiers on scripts 2021-02-11 12:08:24 +08:00
armvirt target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
at91 at91: use SPDX license identifiers on DTS files 2021-02-11 12:08:53 +08:00
ath25 target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
ath79 kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
bcm27xx Merge Mainline 2021-02-25 12:25:05 +08:00
bcm47xx target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
bcm53xx bcm53xx: add support for reading NVRAM based on DT mapping 2021-03-02 22:08:17 +08:00
bcm63xx bcm63xx: pinctrl: fix BCM6348 groups 2021-02-24 12:11:16 +08:00
bcm4908 kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
bmips bmips: switch to upstream SMP CPU mappings patch 2021-03-02 12:24:41 +08:00
gemini target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
generic image: add support for building FIT image with filesystem 2021-03-02 22:17:37 +08:00
imx6 kernel: add further missing symbols 2021-02-24 12:27:21 +08:00
ipq40xx treewide: select kmod-mt7615-firmware where kmod-mt7615e is selected 2021-02-20 18:06:07 +08:00
ipq806x kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
ipq807x config: limit CONFIG_PERF_EVENTS to top-level generic configs 2021-01-26 12:03:41 +08:00
kirkwood kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
lantiq kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
layerscape kernel: bump 5.4 to 5.4.101 2021-02-28 12:02:10 +08:00
malta target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
mediatek mediatek: mt7622: bpi-r64: fix sysupgrade on empty disk 2021-03-02 22:16:51 +08:00
mpc85xx mpc85xx: p2020: Fix nand driver probe 2021-03-02 12:20:45 +08:00
mvebu kernel: add the latest mtd patch extending ofpart parser 2021-03-02 12:25:09 +08:00
mxs target: use SPDX license identifiers on scripts 2021-02-11 12:08:24 +08:00
octeon octeon: re-enable CONFIG_CAVIUM_CN63XXP1 and EdgeRouter image 2021-03-02 12:12:34 +08:00
octeontx target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
omap target: use SPDX license identifiers on scripts 2021-02-11 12:08:24 +08:00
oxnas kernel: move some new symbols available on 5.10 to generic 2021-02-28 12:00:47 +08:00
pistachio target: use SPDX license identifiers on scripts 2021-02-11 12:08:24 +08:00
ramips ramips: fix partition layout of hiwifi hc5x61 2021-03-02 12:17:34 +08:00
realtek realtek: add support for Netgear GS108T v3 2021-02-13 12:07:26 +08:00
rockchip kernel: move some new symbols available on 5.10 to generic 2021-02-28 12:00:47 +08:00
sunxi sunxi: add r8152 patches for customized LEDs 2021-02-17 19:38:52 +08:00
tegra target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
uml target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00
x86 x86: add support for AWS T3 instances 2021-03-02 12:19:23 +08:00
zynq zynq: Enable CONFIG_KERNEL_MODE_NEON 2021-02-27 12:12:38 +08:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00