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
3165fce473 Revert "Revert "image: add support for building FIT image with filesystem.fix ipq4019 images""
This reverts commit 7c9606087e.
2021-03-13 00:14:10 +08:00
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
3ededb214f Update adjust_network.sh 2021-02-05 02:48:31 +08:00
suyuan
8c34860354 fix 2021-02-02 01:26:44 +08:00
suyuan
3dd6261705 fix 2021-01-03 20:05:16 +08:00
suyuan
c0f947c627 fix ipq40xx 2020-12-31 16:55:47 +08:00
suyuan
e811025871 fix 2020-12-25 21:03:58 +08:00
suyuan
63b820f316 fix 2020-12-25 20:21:59 +08:00
suyuan
b2aacac249 fix shuxing 2020-12-24 23:21:48 +08:00
suyuan
0b30b295de fix40xx 2020-12-24 11:22:37 +08:00
suyuan
2432e78b18 add 1000 2020-12-21 12:12:25 +08:00
suyuan
b89c4f4039 fix 2020-12-20 23:32:59 +08:00
suyuan
c77fec6686 升级中断ipq 2020-10-10 11:09:56 +08:00
suyuan
85ca80be4a 修复下led还有ipq40xx的中断优化 2020-09-23 16:27:14 +08:00
Ycarus (Yannick Chabanois)
f890a36727 Add p2w_r619ac support 2020-08-20 16:01:51 +02:00