From patchwork Tue Sep 30 13:41:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moteen Shah X-Patchwork-Id: 71311 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1166FCCA470 for ; Tue, 30 Sep 2025 13:41:51 +0000 (UTC) Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) by mx.groups.io with SMTP id smtpd.web11.25567.1759239701592859008 for ; Tue, 30 Sep 2025 06:41:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZndaSbT6; spf=pass (domain: ti.com, ip: 198.47.23.235, mailfrom: m-shah@ti.com) Received: from fllvem-sh04.itg.ti.com ([10.64.41.54]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58UDfe6s2925089; Tue, 30 Sep 2025 08:41:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759239700; bh=EJC8vsjknZah7j/kkbBPhX1zAbENWqDH6judrBnCtIs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZndaSbT6nPyMiVDib7SZEz/BBFQQzcUFueU4x8Sbo9DiddfayRPs20Fw0ghZpxocQ mxaltT5zkMyLJzWVWSJZ/qY6Wdk/NP8qcDGuxMSTwbcqHQaJHzJkro1X/n3I8dn2Yl hJ6V7x3l73k0PjEPy0CGgQFGREgrkpTtNcvAnGX4= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllvem-sh04.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58UDfex93954536 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 30 Sep 2025 08:41:40 -0500 Received: from DFLE208.ent.ti.com (10.64.6.66) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Tue, 30 Sep 2025 08:41:40 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE208.ent.ti.com (10.64.6.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 30 Sep 2025 08:41:40 -0500 Received: from moteen-ubuntu-desk.dhcp.ti.com (moteen-ubuntu-desk.dhcp.ti.com [10.24.72.162]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58UDfWM92988223; Tue, 30 Sep 2025 08:41:36 -0500 From: Moteen Shah To: CC: , , , , , , , , , , , Subject: [master][PATCH 1/4 v3] meta-ti-bsp: conf: machine: include: Add common module variable for TI Initramfs image Date: Tue, 30 Sep 2025 19:11:28 +0530 Message-ID: <20250930134131.1149453-2-m-shah@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930134131.1149453-1-m-shah@ti.com> References: <20250930134131.1149453-1-m-shah@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 30 Sep 2025 13:41:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19084 Add a new variable in ti-soc.inc which would be populated by individual platforms with the required modules which would later be packaged inside the initramfs image. Signed-off-by: Moteen Shah --- meta-ti-bsp/conf/machine/include/am62axx.inc | 3 +++ meta-ti-bsp/conf/machine/include/j721e.inc | 3 +++ meta-ti-bsp/conf/machine/include/j784s4.inc | 3 +++ meta-ti-bsp/conf/machine/include/ti-soc.inc | 2 ++ 4 files changed, 11 insertions(+) diff --git a/meta-ti-bsp/conf/machine/include/am62axx.inc b/meta-ti-bsp/conf/machine/include/am62axx.inc index 964be0ad..bacee3a6 100644 --- a/meta-ti-bsp/conf/machine/include/am62axx.inc +++ b/meta-ti-bsp/conf/machine/include/am62axx.inc @@ -11,3 +11,6 @@ TFA_BOARD = "lite" OPTEEMACHINE = "k3-am62x" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cnm-wave-fw" + +TI_INITRAMFS_KERNEL_MODULES:append:bsp-mainline = "kernel-module-tps6594-i2c" +TI_INITRAMFS_KERNEL_MODULES:append:bsp-next = "kernel-module-tps6594-i2c" diff --git a/meta-ti-bsp/conf/machine/include/j721e.inc b/meta-ti-bsp/conf/machine/include/j721e.inc index f9fdac0c..f413f5d8 100644 --- a/meta-ti-bsp/conf/machine/include/j721e.inc +++ b/meta-ti-bsp/conf/machine/include/j721e.inc @@ -19,3 +19,6 @@ TI_VXE_VXD_DRIVER = "ti-vxe-vxd-driver" TI_VXE_VXD_DRIVER:bsp-ti-6_6 = "" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw-j721e ${TI_VXE_VXD_DRIVER}" + +TI_INITRAMFS_KERNEL_MODULES:append:bsp-mainline = " kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" +TI_INITRAMFS_KERNEL_MODULES:append:bsp-next = " kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" diff --git a/meta-ti-bsp/conf/machine/include/j784s4.inc b/meta-ti-bsp/conf/machine/include/j784s4.inc index 759984ea..ebc3d576 100644 --- a/meta-ti-bsp/conf/machine/include/j784s4.inc +++ b/meta-ti-bsp/conf/machine/include/j784s4.inc @@ -13,3 +13,6 @@ TFA_BOARD = "j784s4" OPTEEMACHINE = "k3-j784s4" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4" + +TI_INITRAMFS_KERNEL_MODULES:append:bsp-mainline = " kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" +TI_INITRAMFS_KERNEL_MODULES:append:bsp-next = " kernel-module-cdns-pltfrm kernel-module-ti-j721e-ufs" diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc index 018e9bfb..1d18ceab 100644 --- a/meta-ti-bsp/conf/machine/include/ti-soc.inc +++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc @@ -27,3 +27,5 @@ CLASS_DEVICETREE_PREFIX = "${@ 'ti-devicetree-prefix' if d.getVar('KERNEL_DEVICE KERNEL_CLASSES += "${CLASS_DEVICETREE_PREFIX}" IMAGE_CLASSES += "${CLASS_DEVICETREE_PREFIX}" + +TI_INITRAMFS_KERNEL_MODULES ?= "" \ No newline at end of file From patchwork Tue Sep 30 13:41:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moteen Shah X-Patchwork-Id: 71310 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12860CCA468 for ; Tue, 30 Sep 2025 13:41:51 +0000 (UTC) Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) by mx.groups.io with SMTP id smtpd.web10.25675.1759239706228050111 for ; Tue, 30 Sep 2025 06:41:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xu0dYhlC; spf=pass (domain: ti.com, ip: 198.47.19.245, mailfrom: m-shah@ti.com) Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58UDfiDe2427389; Tue, 30 Sep 2025 08:41:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759239704; bh=G8nittR5UgK1zGWboCYghtbYj1e0HJR+TcJ8LT9jNl0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xu0dYhlCpd+Y8xcVFu2X7Ak3fDdeWPJ5z1gkTMeYwZvxW6uS+lOSGIw3qWCCIM6d4 F1mB2UhRWkTZwO6f+5LkZv2T2UYwilEOXKhGewUrozSwidNwIFL+TmalqCSLUYwA8x Kt2mNw6nV/KQUuFrSsbJitQuVJ3UkFfH9rB+87/E= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58UDfiCp2723535 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 30 Sep 2025 08:41:44 -0500 Received: from DLEE208.ent.ti.com (157.170.170.97) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Tue, 30 Sep 2025 08:41:44 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE208.ent.ti.com (157.170.170.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 30 Sep 2025 08:41:44 -0500 Received: from moteen-ubuntu-desk.dhcp.ti.com (moteen-ubuntu-desk.dhcp.ti.com [10.24.72.162]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58UDfWMA2988223; Tue, 30 Sep 2025 08:41:40 -0500 From: Moteen Shah To: CC: , , , , , , , , , , , Subject: [master][PATCH 2/4 v3] recipes-ti: initramfs: Make minimal initramfs image Date: Tue, 30 Sep 2025 19:11:29 +0530 Message-ID: <20250930134131.1149453-3-m-shah@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930134131.1149453-1-m-shah@ti.com> References: <20250930134131.1149453-1-m-shah@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 30 Sep 2025 13:41:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19085 Introduce a new minimal initramfs image which will be used for all K3 devices in the boot flow. The image will package boot essential and other modules which will be modprobed by initramfs-udev once the inbuilt drivers gets probed. Signed-off-by: Moteen Shah --- .../packagegroup-ti-core-initramfs.bb | 15 +++++++++ .../recipes-ti/initramfs/ti-core-initramfs.bb | 33 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb create mode 100644 meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb diff --git a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb new file mode 100644 index 00000000..e9cf5e6b --- /dev/null +++ b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb @@ -0,0 +1,15 @@ +SUMMARY = "Minimal initramfs for boot requirements" + +require recipes-core/packagegroups/packagegroup-core-boot.bb + +RDEPENDS:${PN} += "\ + ${TI_INITRAMFS_KERNEL_MODULES} \ + initramfs-framework-base \ + initramfs-module-udev \ + initramfs-module-nfsrootfs \ + cifs-utils \ + nfs-utils \ + nfs-utils-client \ +" + +RDEPENDS:${PN}:remove = "grub-efi kernel" diff --git a/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb new file mode 100644 index 00000000..236aa756 --- /dev/null +++ b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb @@ -0,0 +1,33 @@ +SUMMARY = "TI SDK minimal initramfs image" + +DESCRIPTION = "Image meant to probe boot essential modules\ + and other modules to reach the userspace, which cannot be\ + built inside the upstream linux kernel image.\ +" + +LICENSE = "MIT" + +inherit core-image + +IMAGE_NAME = "ti-core-initramfs" + +IMAGE_NAME_SUFFIX = "" + +IMAGE_FEATURES:remove = "package-management" + +INITRAMFS_FSTYPES = "cpio cpio.xz" + +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" + +PACKAGE_INSTALL = "packagegroup-ti-core-initramfs" + +export IMAGE_BASENAME = "${IMAGE_NAME}" + +# To further reduce the size of the rootfs, remove the /boot directory from +# the final image this is usually done by adding RDEPENDS_kernel-base = "" +# in the configuration file. In our case we can't use this method. Instead we +# just wipe out the content of "/boot" before creating the image. +ROOTFS_POSTPROCESS_COMMAND += "empty_boot_dir; " +empty_boot_dir () { + rm -rf ${IMAGE_ROOTFS}/boot/* +} From patchwork Tue Sep 30 13:41:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moteen Shah X-Patchwork-Id: 71312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E319CCA471 for ; Tue, 30 Sep 2025 13:41:51 +0000 (UTC) Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) by mx.groups.io with SMTP id smtpd.web11.25571.1759239709522775365 for ; Tue, 30 Sep 2025 06:41:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=teFPfOxH; spf=pass (domain: ti.com, ip: 198.47.23.234, mailfrom: m-shah@ti.com) Received: from fllvem-sh04.itg.ti.com ([10.64.41.54]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58UDfmAJ2465303; Tue, 30 Sep 2025 08:41:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759239708; bh=PUbhPN6C83W6tVNcVXjukrqyduEYpnCRj2Jlu0qwO1U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=teFPfOxH3CUHy8XjA9e3XIY+0mSdIBz+VNE0TFb0Ttg2pvcev7Jm7Ff3LPd/wfCd6 OiSIaB1x5amn3MWt6G6Q8GkxaiJKOEEiGwwWdygaOHy1nlLVuiR/jY+1ApuZHTQArk ZzyAsIayneJQSE+uJPiqRcakQcgjAbXtLfbJhOJI= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllvem-sh04.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58UDfme83954571 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 30 Sep 2025 08:41:48 -0500 Received: from DFLE201.ent.ti.com (10.64.6.59) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Tue, 30 Sep 2025 08:41:48 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE201.ent.ti.com (10.64.6.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 30 Sep 2025 08:41:48 -0500 Received: from moteen-ubuntu-desk.dhcp.ti.com (moteen-ubuntu-desk.dhcp.ti.com [10.24.72.162]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58UDfWMB2988223; Tue, 30 Sep 2025 08:41:44 -0500 From: Moteen Shah To: CC: , , , , , , , , , , , Subject: [master][PATCH 3/4 v3] meta-ti-bsp: wic: Add initramfs path to to grub config Date: Tue, 30 Sep 2025 19:11:30 +0530 Message-ID: <20250930134131.1149453-4-m-shah@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930134131.1149453-1-m-shah@ti.com> References: <20250930134131.1149453-1-m-shah@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 30 Sep 2025 13:41:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19086 Add initrd path to grub.cfg config so that it picks up the initramfs image from the boot partition and includes it in the boot process. Signed-off-by: Moteen Shah --- meta-ti-bsp/wic/sdimage-2part-efi.wks.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in index ae38daa7..6a7046a4 100644 --- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in +++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in @@ -4,5 +4,5 @@ # reserved space. We cannot use a GPT here. bootloader --timeout=3 --append="rootfstype=ext4 ${TI_WKS_BOOTLOADER_APPEND}" -part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M +part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER},initrd=ti-core-initramfs.cpio.xz" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid From patchwork Tue Sep 30 13:41:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moteen Shah X-Patchwork-Id: 71313 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B543CCA468 for ; Tue, 30 Sep 2025 13:42:01 +0000 (UTC) Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) by mx.groups.io with SMTP id smtpd.web10.25681.1759239713824073096 for ; Tue, 30 Sep 2025 06:41:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Jis2IlK3; spf=pass (domain: ti.com, ip: 198.47.19.245, mailfrom: m-shah@ti.com) Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58UDfqfT2427409; Tue, 30 Sep 2025 08:41:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759239712; bh=YaZhGHJjj940gIwsvkAhBpYgCMaxdncSSuF64UjAXIE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Jis2IlK31h8yOcHcE9tTwCu0SdlJMenlTJSUp2cLwQSoWv8gTseiVu7D0PNO4x2qd k340iIVaHHbtNFgdUeOJ63VInfsct9U7Sc0bfi4R1fnwCcq0v/Vdp+dxWpKzEr7d4O CHtsinREUzyK21Qkfjhx9vUdQAFpUr6Om/u8XpYc= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58UDfqFT2723567 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 30 Sep 2025 08:41:52 -0500 Received: from DLEE203.ent.ti.com (157.170.170.78) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Tue, 30 Sep 2025 08:41:52 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE203.ent.ti.com (157.170.170.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 30 Sep 2025 08:41:52 -0500 Received: from moteen-ubuntu-desk.dhcp.ti.com (moteen-ubuntu-desk.dhcp.ti.com [10.24.72.162]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58UDfWMC2988223; Tue, 30 Sep 2025 08:41:48 -0500 From: Moteen Shah To: CC: , , , , , , , , , , , Subject: [master][PATCH 4/4 v3] meta-ti-bsp: conf: machine: include: Build initramfs for all K3 platforms Date: Tue, 30 Sep 2025 19:11:31 +0530 Message-ID: <20250930134131.1149453-5-m-shah@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250930134131.1149453-1-m-shah@ti.com> References: <20250930134131.1149453-1-m-shah@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 30 Sep 2025 13:42:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19087 Trigger build for initramfs image and package it in the boot partition of all K3 platforms whenever an image recipe is built with upstream kernel(mainline or mainline-next). Signed-off-by: Moteen Shah --- meta-ti-bsp/conf/machine/include/k3.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index 50411a8e..69684a15 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc @@ -43,7 +43,12 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-pka-fw" IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" -IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin" +BUILD_CORE_INITRD_IMAGE ?= "" +BUILD_CORE_INITRD_IMAGE:bsp-mainline = "ti-core-initramfs:do_image_complete" +BUILD_CORE_INITRD_IMAGE:bsp-next = "ti-core-initramfs:do_image_complete" +do_image_complete[depends] += "${BUILD_CORE_INITRD_IMAGE}" + +IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin ti-core-initramfs.cpio.xz" IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}" EFI_PROVIDER ?= "grub-efi"