1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
Commit graph

16 commits

Author SHA1 Message Date
suyuan
7c9606087e Revert "image: add support for building FIT image with filesystem.fix ipq4019 images"
This reverts commit 4bc16d0a00.
2021-03-13 00:13:30 +08:00
suyuan
4bc16d0a00 image: add support for building FIT image with filesystem.fix ipq4019 images
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 ;)
2021-03-13 00:10:34 +08:00
suyuan
fc2eeabb9b Merge branch 'testdevelop' into develop 2021-02-14 00:34:24 +08:00
suyuan
8c0b9f3f05 sync 2021-02-14 00:33:13 +08:00
suyuan
3fd8240016 fix quanxian 2021-01-03 15:31:36 +08:00
suyuan
87f7f16a20 fixmptcp 2020-12-24 23:19:07 +08:00
suyuan
3e62e515c8 Revert "Revert "Merge branch 'develop'""
This reverts commit 1b7bac2e0a.
2020-12-24 15:40:43 +08:00
suyuan
1b7bac2e0a Revert "Merge branch 'develop'"
This reverts commit bf16c8f251, reversing
changes made to 15b5e54963.
2020-12-24 15:35:51 +08:00
suyuan
0ff958171e Revert "Revert "Merge branch 'develop'""
This reverts commit f0937d0399.
2020-12-24 15:28:44 +08:00
suyuan
f0937d0399 Revert "Merge branch 'develop'"
This reverts commit bf16c8f251, reversing
changes made to 15b5e54963.
2020-12-24 15:26:48 +08:00
suyuan
68044e4831 Revert "Revert "Merge branch 'develop'""
This reverts commit 4144039007.
2020-12-24 15:26:38 +08:00
suyuan
4144039007 Revert "Merge branch 'develop'"
This reverts commit bf16c8f251, reversing
changes made to 15b5e54963.
2020-12-24 15:18:35 +08:00
suyuan
602cd0be8a fixomr 2020-12-24 11:49:47 +08:00
Ycarus (Yannick Chabanois)
526613c184 Update OpenWrt and MPTCP 2020-05-14 16:49:19 +02:00
Ycarus (Yannick Chabanois)
c45d3625a7 Update default 5.4 config 2020-04-26 12:59:30 +02:00
Ycarus (Yannick Chabanois)
dd83db25fe Add kernel 5.4 support 2020-03-11 16:01:27 +01:00