mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-27 00:52:36 +00:00
e6aac8d98f
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> |
||
---|---|---|
.. | ||
204-module_strip.patch | ||
210-darwin_scripts_include.patch | ||
211-darwin-uuid-typedef-clash.patch | ||
212-tools_portability.patch | ||
214-spidev_h_portability.patch | ||
220-gc_sections.patch | ||
221-module_exports.patch | ||
230-openwrt_lzma_options.patch | ||
249-udp-tunnel-selection.patch | ||
250-netfilter_depends.patch | ||
251-kconfig.patch | ||
259-regmap_dynamic.patch | ||
260-crypto_test_dependencies.patch | ||
261-lib-arc4-unhide.patch | ||
280-rfkill-stubs.patch | ||
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch | ||
301-mips_image_cmdline_hack.patch | ||
321-powerpc_crtsavres_prereq.patch | ||
400-block-fit-partition-parser.patch | ||
531-debloat_lzma.patch | ||
640-bridge-only-accept-EAP-locally.patch | ||
645-netfilter-connmark-introduce-set-dscpmark.patch | ||
650-netfilter-add-xt_OFFLOAD-target.patch | ||
651-wireless_mesh_header.patch | ||
660-fq_codel_defaults.patch | ||
661-use_fq_codel_by_default.patch | ||
700-swconfig_switch_drivers.patch | ||
710-net-dsa-mv88e6xxx-default-VID-1.patch | ||
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch | ||
773-bgmac-add-srab-switch.patch | ||
901-debloat_sock_diag.patch | ||
902-debloat_proc.patch | ||
904-debloat_dma_buf.patch | ||
910-kobject_uevent.patch | ||
911-kobject_add_broadcast_uevent.patch |