openwrt/include
Daniel Golle e6aac8d98f 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>
2021-02-24 01:35:20 +00:00
..
site Revert faulty tree push 2019-08-12 12:27:06 +02:00
autotools.mk autotools.mk: fix gettext fixup 2021-02-23 21:10:56 +01:00
cmake.mk build: replace which with Bash command built-in 2021-01-04 19:32:25 +01:00
debug.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
depends.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
device_table.txt
download.mk treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-05 12:00:24 -10:00
feeds.mk build: fix getting ABI version for binary packages from the same source package 2021-02-15 23:11:44 +01:00
hardened-ld-pie.specs
hardening.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
host-build.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
image-commands.mk image: add support for building FIT image with filesystem 2021-02-24 01:35:20 +00:00
image.mk build/json: generate json file for initramfs 2021-02-21 09:56:05 -10:00
kernel-build.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
kernel-defaults.mk build: fix build with CONFIG_STRIP_KERNEL_EXPORTS 2021-02-17 13:49:43 +01:00
kernel-version.mk kernel: bump 5.4 to 5.4.99 2021-02-18 20:04:50 +01:00
kernel.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
logo.png include: update logo with better kerning 2021-01-18 09:31:39 -10:00
logo.svg include: update logo with better kerning 2021-01-18 09:31:39 -10:00
netfilter.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
nls.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-bin.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-defaults.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package-dumpinfo.mk build: drop ABI version from metadata 2021-02-14 19:41:52 +01:00
package-ipkg.mk build: fix ABI version for PROVIDES symbols 2021-02-18 19:57:57 +01:00
package-seccomp.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
package.mk build: filter out own packages on package version check 2021-02-15 21:10:48 +01:00
prereq-build.mk build/prereq: require make 4.1 or later 2021-02-15 16:35:49 -10:00
prereq.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
quilt.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
rootfs.mk build: reduce cleanup binary calls in rootfs.mk 2020-12-05 22:07:00 -10:00
scan.awk
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 2019-10-27 14:32:13 +01:00
shell.sh
subdir.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
target.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
toolchain-build.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
toplevel.mk toplevel.mk: remove legacy packages feed from 'make distclean' 2021-02-20 13:11:10 -10:00
trusted-firmware-a.mk trusted-firmware-a: fix project name spelling 2021-02-13 20:11:57 +00:00
u-boot.mk u-boot.mk: switch download to https 2020-04-26 21:20:47 +02:00
uclibc++.mk libcxx[abi]: remove 2020-12-07 10:46:43 -10:00
unpack.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
verbose.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00
version.mk build: use SPDX license tags 2021-02-05 14:54:47 +01:00