From 6f4b4144f3135ae63eda7c8a97c656df2ff533fd Mon Sep 17 00:00:00 2001 From: DanyLE Date: Mon, 31 Jul 2023 18:21:17 +0200 Subject: [PATCH] add initram fs image support --- conf/layer.conf | 4 ++++ recipes-kernel/linux/files/diya.cfg | 3 +++ 2 files changed, 7 insertions(+) diff --git a/conf/layer.conf b/conf/layer.conf index a5de6e1..8f50c34 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -13,6 +13,10 @@ LAYERDEPENDS_meta-rpi-diya = "core raspberrypi" LAYERSERIES_COMPAT_meta-rpi-diya = "mickledore" PACKAGE_CLASSES = "package_ipk" + +INITRAMFS_IMAGE="core-image-minimal-initramfs" +INITRAMFS_IMAGE_BUNDLE="1" + INHERIT += "rm_work" EXTRA_IMAGE_FEATURES ?= " ssh-server-dropbear read-only-rootfs " diff --git a/recipes-kernel/linux/files/diya.cfg b/recipes-kernel/linux/files/diya.cfg index eddd910..7bf97cb 100644 --- a/recipes-kernel/linux/files/diya.cfg +++ b/recipes-kernel/linux/files/diya.cfg @@ -1,2 +1,5 @@ CONFIG_TOUCHSCREEN_GOODIX=m CONFIG_OVERLAY_FS=y +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_RD_GZIP=y