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

18 commits

Author SHA1 Message Date
suyuan
ea4609897c fix 2021-03-13 00:17:37 +08:00
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
8c34860354 fix 2021-02-02 01:26:44 +08:00
suyuan
390d800fff adjust IRQ affinity 2021-01-27 00:57:13 +08:00
suyuan
c0f947c627 fix ipq40xx 2020-12-31 16:55:47 +08:00
suyuan
9afdfcdf61 fix 2020-12-24 22:54:23 +08:00
suyuan
d4a61a414a 1 2020-12-24 22:51:25 +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
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