openwrt/target/linux/generic/pending-5.10
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
..
100-compiler.h-only-include-asm-rwonce.h-for-kernel-code.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
110-ehci_hcd_ignore_oc.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
130-add-linux-spidev-compatible-si3210.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
142-jffs2-add-splice-ops.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
150-bridge_allow_receiption_on_disabled_port.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
190-rtc-rs5c372-support_alarms_up_to_1_week.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
191-rtc-rs5c372-let_the_alarm_to_be_used_as_wakeup_source.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
201-extra_optimization.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
203-kallsyms_uncompressed.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
205-backtrace_module_info.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
261-enable_wilink_platform_without_drivers.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
270-platform-mikrotik-build-bits.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
300-mips_expose_boot_raw.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
302-mips_no_branch_likely.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
305-mips_module_reloc.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
307-mips_highmem_offset.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
308-mips32r2_tune.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
310-arm_module_unresolved_weak_sym.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
311-MIPS-zboot-put-appended-dtb-into-a-section.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch kernel: 5.10: refresh patches 2021-02-16 23:48:23 +01:00
332-arc-add-OWRTDTB-section.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
333-arc-enable-unaligned-access-in-kernel-mode.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
400-mtd-mtdsplit-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
420-mtd-redboot_space.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
430-mtd-add-myloader-partition-parser.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
435-mtd-add-routerbootpart-parser-config.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
465-m25p80-mx-disable-software-protection.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
476-mtd-spi-nor-add-eon-en25q128.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
479-mtd-spi-nor-add-xtx-xt25f128b.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
480-mtd-set-rootfs-to-be-root-dev.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
481-mtd-spi-nor-rework-broken-flash-reset-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch image: add support for building FIT image with filesystem 2021-02-24 01:35:20 +00:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
494-mtd-ubi-add-EOF-marker-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
495-mtd-core-add-get_mtd_device_by_node.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
498-mtd-mtdconcat-select-readwrite-function.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
499-mtd-don-t-lock-when-recursively-deleting-partitions.patch generic: don't lock when recursively deleting partitions 2021-02-18 01:16:40 +01:00
500-fs_cdrom_dependencies.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
530-jffs2_make_lzma_available.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
532-jffs2_eofdetect.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
600-netfilter_conntrack_flush.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
610-netfilter_match_bypass_default_checks.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
611-netfilter_match_bypass_default_table.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
612-netfilter_match_reduce_memory_access.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
613-netfilter_optional_tcp_window_check.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
620-net_sched-codel-do-not-defer-queue-length-update.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
630-packet_socket_type.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-00-netfilter-flowtable-add-hash-offset-field-to-tuple.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-01-netfilter-flowtable-add-xmit-path-types.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-02-net-resolve-forwarding-path-from-virtual-netdevice-a.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-03-net-8021q-resolve-forwarding-path-for-vlan-devices.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-04-bridge-resolve-forwarding-path-for-bridge-devices.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-05-netfilter-flowtable-use-dev_fill_forward_path-to-obt.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-06-netfilter-flowtable-use-dev_fill_forward_path-to-obt.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-07-netfilter-flowtable-add-vlan-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-08-selftests-netfilter-flowtable-bridge-and-VLAN-suppor.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-09-net-bridge-resolve-VLAN-tag-actions-in-forwarding-pa.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-10-net-dsa-resolve-forwarding-path-for-dsa-slave-ports.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-11-netfilter-flowtable-add-offload-support-for-xmit-pat.patch kernel: 5.10: refresh patches 2021-02-16 23:48:23 +01:00
640-12-netfilter-nft_flow_offload-add-dsa-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-13-dsa-slave-add-support-for-TC_SETUP_FT.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-14-netfilter-nft_flow_offload-add-bridge-vlan-filtering.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-15-netfilter-nft_flow_offload-use-direct-xmit-if-hardwa.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-16-netfilter-nft_flow_offload-fix-bridge-vlan-tag-handl.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-17-netfilter-flowtable-rework-ingress-vlan-matching.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
640-18-netfilter-flowtable-handle-bridge-vlan-filter-offloa.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
655-increase_skb_pad.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
681-NET-add-of_get_mac_address_mtd.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
690-net-add-support-for-threaded-NAPI-polling.patch kernel: 5.10: refresh patches 2021-02-16 23:48:23 +01:00
691-net-add-sysfs-attribute-for-enabling-threaded-NAPI.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
760-net-dsa-mv88e6xxx-fix-vlan-setup.patch kernel: update kernel 5.10 to 5.10.16 2021-02-17 13:48:43 +00:00
761-net-dsa-mt7530-Support-EEE-features.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
762-net-bridge-switchdev-Refactor-br_switchdev_fdb_notif.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
763-net-bridge-switchdev-Include-local-flag-in-FDB-notif.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
764-net-bridge-switchdev-Send-FDB-notifications-for-host.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
765-net-dsa-Include-local-addresses-in-assisted-CPU-port.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
766-net-dsa-Include-bridge-addresses-in-assisted-CPU-por.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
767-net-dsa-Sync-static-FDB-entries-on-foreign-interface.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
768-net-dsa-mv88e6xxx-Request-assisted-learning-on-CPU-port.patch kernel: DSA roaming fix for Marvell mv88e6xxx 2021-02-23 21:10:56 +01:00
770-00-net-ethernet-mtk_eth_soc-use-napi_consume_skb.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-01-net-ethernet-mtk_eth_soc-significantly-reduce-mdio-b.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-02-net-ethernet-mtk_eth_soc-fix-rx-vlan-offload.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-03-net-ethernet-mtk_eth_soc-fix-unnecessary-tx-queue-st.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-04-net-ethernet-mtk_eth_soc-use-larger-burst-size-for-q.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-05-net-ethernet-mtk_eth_soc-increase-DMA-ring-sizes.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-06-net-ethernet-mtk_eth_soc-implement-dynamic-interrupt.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-08-net-ethernet-mtk_eth_soc-cache-hardware-pointer-of-l.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-09-net-ethernet-mtk_eth_soc-only-read-the-full-rx-descr.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-10-net-ethernet-mtk_eth_soc-unmap-rx-data-before-callin.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-11-net-ethernet-mtk_eth_soc-avoid-rearming-interrupt-if.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-13-net-ethernet-mtk_eth_soc-fix-parsing-packets-in-GDM.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-14-net-ethernet-mtk_eth_soc-set-PPE-flow-hash-as-skb-ha.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
770-15-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch kernel: 5.10: fix busy wait loop in mediatek PPE code 2021-02-16 23:46:30 +01:00
770-16-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
810-pci_disable_common_quirks.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
811-pci_disable_usb_common_quirks.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
820-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00
834-ledtrig-libata.patch kernel: 5.10: refresh patches 2021-02-16 23:48:23 +01:00
840-hwrng-bcm2835-set-quality-to-1000.patch generic: add bcm2835-rng quality patch 2021-02-20 18:59:25 +01:00
920-mangle_bootargs.patch kernel: add linux 5.10 support 2021-02-16 20:06:51 +01:00