mediatek: switch to use seperate ramdisk for initramfs images

MediaTek targets always use U-Boot's modern uImage.FIT format which
allows bundling several blobs into a single file including hashes,
descriptions and more. In fact, we are already using that to bundle
the Flattened Device Tree blob with the kernel on this and many
other targets.
In the same fashion, we can now make use of the newly introduced
support for building seperate ramdisk to uImage.FIT with a dedicated
initrd blob checked and loaded by U-Boot instead of embedding the
cpio archive into the kernel itself.
This allows for having larger ramdisks, choosing ramdisk compression
independently of kernel compression (while only kernel is decompressed
by the bootloader) and for more easily replacing or modifying the
filesystem contained in an initramfs image.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-02-25 14:51:41 +00:00
parent 45c0e0ee41
commit 198385b69d
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ARCH:=arm
BOARD:=mediatek BOARD:=mediatek
BOARDNAME:=MediaTek Ralink ARM BOARDNAME:=MediaTek Ralink ARM
SUBTARGETS:=mt7622 mt7623 mt7629 SUBTARGETS:=mt7622 mt7623 mt7629
FEATURES:=squashfs nand ramdisk fpu FEATURES:=squashfs nand seperate_ramdisk fpu
KERNEL_PATCHVER:=5.4 KERNEL_PATCHVER:=5.4
KERNEL_TESTING_PATCHVER:=5.4 KERNEL_TESTING_PATCHVER:=5.4

View File

@ -23,7 +23,7 @@ define Device/Default
KERNEL = kernel-bin | lzma | \ KERNEL = kernel-bin | lzma | \
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
KERNEL_INITRAMFS = kernel-bin | lzma | \ KERNEL_INITRAMFS = kernel-bin | lzma | \
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd
FILESYSTEMS := squashfs FILESYSTEMS := squashfs
DEVICE_DTS_DIR := $(DTS_DIR) DEVICE_DTS_DIR := $(DTS_DIR)
IMAGES := sysupgrade.bin IMAGES := sysupgrade.bin