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 6A050CA0FED for ; Wed, 10 Sep 2025 11:48:41 +0000 (UTC) Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) by mx.groups.io with SMTP id smtpd.web10.15501.1757504920741602927 for ; Wed, 10 Sep 2025 04:48:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Jq/CDzhz; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: bb@ti.com) Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58ABmdVH505592 for ; Wed, 10 Sep 2025 06:48:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1757504919; bh=lb4aRimTj4v3UyNvLyVlXTpiplRr/ANMSV1bg3ap4V4=; h=Date:From:To:CC:Subject:References:In-Reply-To:List-Post; b=Jq/CDzhzsFcv7c1tr6hV9AOzq0qpIbWXM7ZxZwGxaKA0Kb6YCAqQFLjpETTJX/Iql 81fRDim1TqfkQ7Wnbp4yR7uaQ0UI48fY0yidl9D+4ONT0KZ+pvvCo+tsY5FgTsgTip k/sOwmVScPLgbQC4vq2a0ub0IcLZ+PNicpvHuKf8= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58ABmdjX257620 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL) for ; Wed, 10 Sep 2025 06:48:39 -0500 Received: from DFLE203.ent.ti.com (10.64.6.61) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Wed, 10 Sep 2025 06:48:38 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE203.ent.ti.com (10.64.6.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Wed, 10 Sep 2025 06:48:38 -0500 Received: from localhost (bb.dhcp.ti.com [128.247.81.12]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58ABmcQN425845; Wed, 10 Sep 2025 06:48:38 -0500 Date: Wed, 10 Sep 2025 06:48:38 -0500 From: Bryan Brattlof To: Randolph Sapp CC: Moteen Shah , , , , , , , , , Subject: Re: [meta-arago] [meta-ti][PATCH 1/1 v2] recipes-ti: initramfs: Make minimal initrd image Message-ID: <20250910114838.62ar3wxtkmtcjfqm@bryanbrattlof.com> X-PGP-Fingerprint: D3D1 77E4 0A38 DF4D 1853 FEEF 41B9 0D5D 71D5 6CE0 References: <20250904124331.1075343-1-m-shah@ti.com> <20250904124331.1075343-2-m-shah@ti.com> <20250909145655.k4vc5zinnpxxbjgl@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: List-Post: 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 ; Wed, 10 Sep 2025 11:48:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16556 On September 9, 2025 thus sayeth Randolph Sapp: > On Tue Sep 9, 2025 at 9:56 AM CDT, Bryan Brattlof via lists.yoctoproject.org wrote: > > On September 4, 2025 thus sayeth Moteen Shah: > >> Add recipes to make initramfs image based on systemd. > >> 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 > >> --- > >> .../initramfs/packagegroup-ti-initramfs.bb | 5 ++ > >> .../recipes-ti/initramfs/ti-tiny-initramfs.bb | 49 +++++++++++++++++++ > >> 2 files changed, 54 insertions(+) > >> create mode 100644 meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-initramfs.bb > >> create mode 100644 meta-ti-bsp/recipes-ti/initramfs/ti-tiny-initramfs.bb > >> > >> diff --git a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-initramfs.bb > >> new file mode 100644 > >> index 00000000..5d2ff390 > >> --- /dev/null > >> +++ b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-initramfs.bb > >> @@ -0,0 +1,5 @@ > >> +SUMMARY = "Minimal initramfs for boot requirements" > >> + > >> +require recipes-core/packagegroups/packagegroup-core-boot.bb > >> + > >> +RDEPENDS:${PN}:remove = "grub-efi kernel" > >> diff --git a/meta-ti-bsp/recipes-ti/initramfs/ti-tiny-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/ti-tiny-initramfs.bb > >> new file mode 100644 > >> index 00000000..4cebf595 > >> --- /dev/null > >> +++ b/meta-ti-bsp/recipes-ti/initramfs/ti-tiny-initramfs.bb > >> @@ -0,0 +1,49 @@ > >> +SUMMARY = "TI SDK super minimal base image for initramfs" > >> + > >> +DESCRIPTION = "Image meant for basic boot of linux kernel. Intended as\ > >> + bare system, this image does not package the kernel in the\ > >> + standard /boot folder in rootfs. Instead, it provides a base\ > >> + rootfs allowing kernel to be deployed elsewhere\ > >> + (tftp/separate boot partition/jtag log etc..) and boot\ > >> + the image.\ > >> +" > >> + > >> +LICENSE = "MIT" > >> + > >> +inherit core-image > >> + > >> +IMAGE_FEATURES:remove = "package-management" > >> + > >> +INITRAMFS_FSTYPES = "cpio cpio.xz" > >> + > >> +#INITRAMFS_MAXSIZE = "65536" > >> +#IMAGE_OVERHEAD_FACTOR = "1" > >> + > >> +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" > >> + > >> +INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev initramfs-module-nfsrootfs" > >> + > >> +MODULES = "\ > >> + kernel-module-cdns-pltfrm \ > >> + kernel-module-ti-j721e-ufs \ > >> + kernel-module-tps6594-i2c \ > >> +" > > > > Are these all the modules we'll need? Is everything else build-in the > > default defconfig? or are we expecting this list to expand as more > > platforms start migrating to this? > > > > ~Bryan > > Should this instead be defined per machine with > MACHINE_ESSENTIAL_EXTRA_RDEPENDS? > > https://docs.yoctoproject.org/ref-manual/variables.html#term-MACHINE_ESSENTIAL_EXTRA_RDEPENDS Yeah, I guess what I'm slowly realizing is we're adding roughly a 140MB binary to the critical path for the bootloaders (so long any boot KPI) all so we can have a PMIC driver as a builtin. All the distributions I can think of all modify the ARM64 defconfig in some way to better suit their distribution. Yocto even has the advantage of knowing what target they are building for. Should we instead carry a fragment, or use some other mechanism, to change the kernel's config so the PMIC driver is a builtin if needed by the target? ~Bryan