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 79DB6CCA468 for ; Tue, 30 Sep 2025 11:43:30 +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.23437.1759232601762881897 for ; Tue, 30 Sep 2025 04:43:22 -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=sYeqaoKm; spf=pass (domain: ti.com, ip: 198.47.19.245, mailfrom: afd@ti.com) Received: from fllvem-sh04.itg.ti.com ([10.64.41.54]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58UBhK3j2410515; Tue, 30 Sep 2025 06:43:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1759232600; bh=TxsRNOfcrcBEGEZSEB80nqPq7YOdpD3RoLDTV6yK+Yg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=sYeqaoKmdqzeVZl+U2GXJmlTmNP4aOnfUsKoMmjf48faQfAZR7CCHGdEKEghqV4nT 620nd9XI7Q6vqZehBb8K6JCPhflBtfoc/C3g0afdrA9I5IPQT/SLCpgEbyAVSHU0Jw MlYqAecxGvYoznVXHYEUqfo8kbrRhD+dTxMyCl1w= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllvem-sh04.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58UBhKU23890227 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 30 Sep 2025 06:43:20 -0500 Received: from DFLE200.ent.ti.com (10.64.6.58) by DFLE111.ent.ti.com (10.64.6.32) 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 06:43:19 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE200.ent.ti.com (10.64.6.58) 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 06:43:19 -0500 Received: from [10.249.42.149] ([10.249.42.149]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58UBhJ3k3114071; Tue, 30 Sep 2025 06:43:19 -0500 Message-ID: Date: Tue, 30 Sep 2025 06:43:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [meta-ti] [master][PATCH 3/4 v2] meta-ti-bsp: wic: Add a new GRUB config for TI platforms To: Moteen Shah , Vignesh Raghavendra , , CC: , , , , , , , , References: <20250919093831.20609-1-m-shah@ti.com> <20250919093831.20609-4-m-shah@ti.com> <6e5d6135-9571-419d-8879-1626155c2a82@ti.com> <88e41345-a0a5-4897-afaf-ba1435be5758@ti.com> <382669c5-7104-4205-b8f2-79dc0bac01e1@ti.com> <4c6c3094-b6fe-4399-b9c5-8e5f385aac56@ti.com> Content-Language: en-US From: Andrew Davis In-Reply-To: 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-ot03.ext.ti.com id 58UBhK3j2410515 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 11:43:30 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/19078 On 9/30/25 3:25 AM, Moteen Shah wrote: > Hey Andrew, >=20 > On 29/09/25 20:03, Andrew Davis wrote: >> On 9/29/25 12:46 AM, Moteen Shah wrote: >>> Hey Vignesh and Andrew, >>> >>> On 29/09/25 09:36, Vignesh Raghavendra wrote: >>>> >>>> On 25/09/25 22:53, Andrew Davis wrote: >>>>> On 9/23/25 4:15 PM, Ryan Eatmon via lists.yoctoproject.org wrote: >>>>>> >>>>>> On 9/19/2025 4:38 AM, Moteen Shah wrote: >>>>>>> Add a new grub config for TI specific platforms. While, >>>>>>> only supporting to boot linux from filesystem on MMCSD, it >>>>>>> will support booting linux and initrd image from eMMC, OSPI, >>>>>>> UFS later down the line. Hence, make a new config altogether >>>>>>> for easier development. >>>>>>> >>>>>>> Signed-off-by: Moteen Shah >>>>>>> --- >>>>>>> =C2=A0=C2=A0 meta-ti-bsp/wic/sdimage-2part-efi.wks.in | 2 +- >>>>>>> =C2=A0=C2=A0 meta-ti-bsp/wic/ti-grub.cfg=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 9 +++++++++ >>>>>>> =C2=A0=C2=A0 2 files changed, 10 insertions(+), 1 deletion(-) >>>>>>> =C2=A0=C2=A0 create mode 100644 meta-ti-bsp/wic/ti-grub.cfg >>>>>>> >>>>>>> diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in b/meta-ti-b= sp/ >>>>>>> wic/sdimage-2part-efi.wks.in >>>>>>> index ae38daa7..11912606 100644 >>>>>>> --- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in >>>>>>> +++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in >>>>>>> @@ -3,6 +3,6 @@ >>>>>>> =C2=A0=C2=A0 # supports EFI.=C2=A0 Boot files are located in the = first vfat partition >>>>>>> with extra >>>>>>> =C2=A0=C2=A0 # reserved space.=C2=A0 We cannot use a GPT here. >>>>>>> -bootloader --timeout=3D3 --append=3D"rootfstype=3Dext4 >>>>>>> ${TI_WKS_BOOTLOADER_APPEND}" >>>>>>> +bootloader --configfile=3D"ti-grub.cfg" >>>>>> Your change dropped the ${TI_WKS_BOOTLOADER_APPEND} which is used = for >>>>>> am64 to specify the serial console.=C2=A0 This likely needs to be = better >>>>>> tested before we just make blanket changes like that. >>>>>> >>>>> Just a side note on this, AM64 needs "console=3DttyS2,115200n8" pas= sed in >>>>> on the kernel >>>>> command line or you will not get kernel output. This is something w= e can >>>>> pass to all >>>>> K3 boards (although not strictly needed for other boards, it is saf= e/ >>>>> correct to do >>>>> for them all). >>>>> Non-K3 boards will want "console=3DttyS0,115200n8" (note >>>>> theS0). So >>>>> having this selectable per-SoC/family is still useful. >>>> AM62L would use=C2=A0 "console=3DttyS0,115200n8" as well. >>> >>> Don't we set console=3D property from the platform.env files in uboot= ? >>> >> >> Yes, but that is passed to the kernel when using the normal boot flow, >> for EFI boot the kernel command line is set here in the EFI config. >> >> Andrew >=20 > Currently, in my testing I am not passing any console=3D property in gr= ub.cfg, but the prints still go to the right UART. > I think here, we are directly picking up from the stdout-path defined i= n the u-boot's device-tree. I will test on AM62l as well for the v3. Try AM64x Andrew >=20 > Regards, > Moteen >=20 >> >>> Regards, >>> Moteen >>> >>>> >>>> >>>>> Andrew >>>> [...] >>>> >>