openwrt/target/linux/generic/hack-5.4
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
..
204-module_strip.patch kernel: bump 5.4 to 5.4.87 2021-01-08 21:09:17 +01:00
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch linux-5.4: backport modpost upstream patches 2020-03-01 15:52:36 +01:00
212-tools_portability.patch kernel: fix portability issue with perf on linux 5.4 2020-06-04 21:52:57 +02:00
214-spidev_h_portability.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
220-gc_sections.patch kernel: bump 5.4 to 5.4.28 2020-03-28 13:03:02 +01:00
221-module_exports.patch kernel: bump 5.4 to 5.4.99 2021-02-18 20:04:50 +01:00
230-openwrt_lzma_options.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
249-udp-tunnel-selection.patch kernel/hack-5.4: make UDP tunneling user-selectable 2021-01-01 19:55:59 +01:00
250-netfilter_depends.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
251-sound_kconfig.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
259-regmap_dynamic.patch kernel: bump 5.4 to 5.4.69 2020-10-02 22:02:26 +02:00
260-crypto_test_dependencies.patch kernel: Update kernel 5.4 to version 5.4.50 2020-07-04 21:12:42 +02:00
260-lib-arc4-unhide.patch kernel: Make LIB_ARC4 selectable 2020-02-28 17:50:46 +01:00
280-rfkill-stubs.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
301-mips_image_cmdline_hack.patch kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
321-powerpc_crtsavres_prereq.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
400-block-fit-partition-parser.patch image: add support for building FIT image with filesystem 2021-02-24 01:35:20 +00:00
400-unlock_mx25l6406e_with_4bit_block_protect.patch kernel: unlock MX25L6406E with 4 bit Block Protect 2020-12-09 08:42:26 +01:00
531-debloat_lzma.patch kernel: remove a bunch of trailing whitespaces 2020-05-25 21:11:47 +02:00
550-loop-Report-EOPNOTSUPP-properly.patch kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
640-bridge-only-accept-EAP-locally.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
645-netfilter-connmark-introduce-set-dscpmark.patch kernel: connmark set-dscpmark fix build on 5.4 2020-03-21 09:51:40 +00:00
647-netfilter-flow-acct.patch kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
650-netfilter-add-xt_OFFLOAD-target.patch kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
651-wireless_mesh_header.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
660-fq_codel_defaults.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
661-use_fq_codel_by_default.patch kernel: bump 5.4 to 5.4.93 2021-01-29 14:22:09 +01:00
662-remove_pfifo_fast.patch kernel: Update kernel 5.4 to version 5.4.50 2020-07-04 21:12:42 +02:00
700-swconfig_switch_drivers.patch kernel: remove mvsw61xx swconfig driver 2020-11-16 13:55:05 +01:00
703-add_vsc8504_support.patch kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
710-net-dsa-mv88e6xxx-default-VID-1.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
721-phy_packets.patch kernel: bump 5.4 to 5.4.93 2021-01-29 14:22:09 +01:00
773-bgmac-add-srab-switch.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
901-debloat_sock_diag.patch kernel: bump 5.4 to 5.4.74 2020-11-02 16:33:25 +01:00
902-debloat_proc.patch kernel: bump 5.4 to 5.4.74 2020-11-02 16:33:25 +01:00
904-debloat_dma_buf.patch kernel: bump 5.4 to 5.4.89 2021-01-15 17:29:41 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
921-always-create-console-node-in-initramfs.patch
991-platform-x86-pcengines-apuv2-revert-simswitch.patch target/hack-5.4: platform/x86/pcengines: revert led simswich compromise 2020-06-26 20:54:53 +02:00