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 812A1CCA471 for ; Mon, 6 Oct 2025 11:58:58 +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.web11.32150.1759751937203092583 for ; Mon, 06 Oct 2025 04:58:57 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ti.com header.s=ti-com-17Q1 header.b=DmggLXQc; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: m-shah@ti.com) Received: from lelvem-sh01.itg.ti.com ([10.180.77.71]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTP id 596Bwu0u3989797; Mon, 6 Oct 2025 06:58:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759751936; bh=oW1EaAH1dztPcf78Y0icgA7Rg0CzRAJuM/2TcP0J0+Q=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=DmggLXQc4PSgNQhsbCO8OZrG2E/bpZ2g9T1I3OZq7RRSMBJtGunG7uI0mhq/teqsE q4li35ow80VUTonK0WCv5Vau0N4wh2I1sHM73Wn5znu5y4q9FJ4WFmXn3Xgs49MRJQ ac6uwPaFTr26eZr0EYkxFGzwxz3O1r5AEB0Yhubk= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelvem-sh01.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 596BwtPJ2207574 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Mon, 6 Oct 2025 06:58:56 -0500 Received: from DLEE211.ent.ti.com (157.170.170.113) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Mon, 6 Oct 2025 06:58:55 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DLEE211.ent.ti.com (157.170.170.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Mon, 6 Oct 2025 06:58:55 -0500 Received: from [10.24.72.162] (moteen-ubuntu-desk.dhcp.ti.com [10.24.72.162]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 596Bwp7O3621776; Mon, 6 Oct 2025 06:58:52 -0500 Message-ID: <5d6c9f0e-d9ad-489b-975b-5c2a6f6f2db5@ti.com> Date: Mon, 6 Oct 2025 17:28:51 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [master][PATCH 4/4 v2] meta-ti-bsp: conf: machine: include: Build initrd for all K3 platforms To: Ryan Eatmon , CC: , , , , , , , , , References: <20250919093831.20609-1-m-shah@ti.com> <20250919093831.20609-5-m-shah@ti.com> <81a30ddf-5067-447b-adf2-ade8d683a8df@ti.com> <12c1b1fd-e51e-4a18-a249-f761510a21ac@ti.com> <1a3caf3c-f8c4-428c-aea8-56e80d1db631@ti.com> Content-Language: en-US From: Moteen Shah In-Reply-To: <1a3caf3c-f8c4-428c-aea8-56e80d1db631@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by fllvem-ot04.ext.ti.com id 596Bwu0u3989797 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 ; Mon, 06 Oct 2025 11:58:58 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19111 Hey Ryan, On 30/09/25 18:40, Ryan Eatmon wrote: > > > On 9/30/2025 7:57 AM, Moteen Shah wrote: >> Hey Ryan, >> >> On 24/09/25 02:45, Ryan Eatmon wrote: >>> >>> >>> On 9/19/2025 4:38 AM, Moteen Shah wrote: >>>> Trigger build for initramfs image and package it in the boot partiti= on >>>> of all K3 platforms whenever an image recipe is built with upstream >>>> kernel(mainline or mainline-next). >>>> >>>> Signed-off-by: Moteen Shah >>>> --- >>>> =C2=A0 meta-ti-bsp/conf/machine/include/k3.inc | 8 +++++++- >>>> =C2=A0 1 file changed, 7 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/=20 >>>> conf/machine/include/k3.inc >>> >>> If this flow is meant to apply to ALL TI platforms, then these=20 >>> changes should be in ti-soc.inc and not k3.inc.=C2=A0 You are missing= =20 >>> am335, am43, and am57 with this change. >> >> For now, we are only targeting the K3 devices. > > Why limit it in this way?=C2=A0 Why do we want to support multiple boot= =20 > strategies for different parts? I have fixed this in V4. The mentioned platforms does not uses efi and=20 grub. I will send a follow up patch to this series to include EFI and=20 GRUB support to the following platforms once this series gets merged. Regards, Moteen > > >>> >>> >>>> index 50411a8e..c0c49e0d 100644 >>>> --- a/meta-ti-bsp/conf/machine/include/k3.inc >>>> +++ b/meta-ti-bsp/conf/machine/include/k3.inc >>>> @@ -33,6 +33,8 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS +=3D=20 >>>> "kernel-image- image ti-kernel-fitimage" >>>> =C2=A0 =C2=A0 TFA_PLATFORM =3D "k3" >>>> =C2=A0 +BUILD_INITRD_IMAGE =3D "" >>>> + >>> >>> Don't split the default assignment of this variable from the=20 >>> overrides. Moved it down below. >>> >>>> =C2=A0 # Use the expected value of the ubifs filesystem's volume nam= e in=20 >>>> the kernel >>>> =C2=A0 # and u-boot. >>>> =C2=A0 UBI_VOLNAME =3D "rootfs" >>>> @@ -43,7 +45,11 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS +=3D "ti-pka-= fw" >>>> =C2=A0 =C2=A0 IMAGE_FSTYPES +=3D "tar.xz wic.xz wic.bmap" >>>> =C2=A0 -IMAGE_BOOT_FILES ?=3D "${SPL_BINARYNAME} u-boot.${UBOOT_SUFF= IX}=20 >>>> tiboot3.bin tiboot3-*-evm.bin" >>>> +BUILD_INITRD_IMAGE:bsp-mainline =3D "ti-initrd-image:do_image_compl= ete" >>>> +BUILD_INITRD_IMAGE:bsp-next =3D "ti-initrd-image:do_image_complete" >>>> +do_image_complete[depends] +=3D "${BUILD_INITRD_IMAGE}" >>> >>> After speaking with Denys, he is suggesting to use=20 >>> EXTRA_IMAGEDEPENDS instead of the do_image_complete to make it be=20 >>> built. >>> >>> BUILD_CORE_INITRAMFS_IMAGE ?=3D "" >>> BUILD_CORE_INITRAMFS_IMAGE:bsp-mainline =3D "ti-core-initramfs" >>> BUILD_CORE_INITRAMFS_IMAGE:bsp-next =3D "ti-core-initramfs" >>> EXTRA_IMAGEDEPENDS +=3D "${BUILD_CORE_INITRAMFS_IMAGE}" >>> >>> Give that a try and see if it makes the initramfs be built correctly. >> >> I tried this out, but it went into failure, similar to what mentioned=20 >> by Denys. >> >> Regards, >> Moteen >> >>> >>>> + >>>> +IMAGE_BOOT_FILES ?=3D "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX}=20 >>>> tiboot3.bin tiboot3-*-evm.bin initrd.cpio.xz" >>> >>> Fix filename here too.=C2=A0 s/initrd/ti-core-initramfs/ >>> >>>> =C2=A0 IMAGE_EFI_BOOT_FILES ?=3D "${IMAGE_BOOT_FILES}" >>>> =C2=A0 =C2=A0 EFI_PROVIDER ?=3D "grub-efi" >>> >