From patchwork Thu Apr 17 11:36:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshul Dalal X-Patchwork-Id: 61496 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 5E288C369B2 for ; Thu, 17 Apr 2025 11:36:47 +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.web10.6409.1744889797283544796 for ; Thu, 17 Apr 2025 04:36:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AjWPqo1m; spf=pass (domain: ti.com, ip: 198.47.23.235, mailfrom: anshuld@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBaa69677173 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 Apr 2025 06:36:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1744889796; bh=Q4/9eDD/ZNLgx4Lr9Q8pu+bEosZOjIYaep8EBbre9MQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AjWPqo1mNK8R/amPGBSk0+iqDUsqmbLnVOyfSfDqcyQyF6Fc7jtD15E/Io3G4qdbQ C5+3tBElTADynrkPSGCphASeyB1YH/vD05HJG0+bDZbuLy5i6UH+rS8sUDRCx3S79g qqdAUVvlIuy2zfKK/Cs785On9YPUAHGvO2M7ks9M= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBaa34025065 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 17 Apr 2025 06:36:36 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 17 Apr 2025 06:36:36 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 17 Apr 2025 06:36:36 -0500 Received: from localhost (dhcp-172-24-227-250.dhcp.ti.com [172.24.227.250]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53HBaZSV103235; Thu, 17 Apr 2025 06:36:35 -0500 From: Anshul Dalal To: CC: Anshul Dalal , Subject: [PATCH v2 1/3] am62: apply u-boot config fragment on ti-falcon Date: Thu, 17 Apr 2025 17:06:11 +0530 Message-ID: <20250417113614.1780603-2-anshuld@ti.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417113614.1780603-1-anshuld@ti.com> References: <20250417113614.1780603-1-anshuld@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 ; Thu, 17 Apr 2025 11:36:47 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/18480 The am62x_r5_falcon.config fragment in u-boot enables falcon boot support for R5 SPL, this patch enables the config fragment for am62a, 62p, 62x and 62lp evms based on ti-falcon distro override. Signed-off-by: Anshul Dalal --- meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf | 2 ++ meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf | 2 ++ meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 2 ++ meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf | 2 ++ 4 files changed, 8 insertions(+) diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf index 2af3317e..ab14feef 100644 --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf @@ -9,3 +9,5 @@ SYSFW_CONFIG = "evm" SYSFW_SUFFIX = "hs-fs" UBOOT_MACHINE = "am62ax_evm_r5_defconfig" + +UBOOT_CONFIG_FRAGMENTS:ti-falcon = "am62x_r5_falcon.config" diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf index 36915381..849d6625 100644 --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf @@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" SYSFW_SUFFIX = "hs-fs" UBOOT_MACHINE = "am62px_evm_r5_defconfig" + +UBOOT_CONFIG_FRAGMENTS:ti-falcon = "am62x_r5_falcon.config" diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf index 548369ca..a624a35d 100644 --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf @@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" SYSFW_SUFFIX = "hs-fs" UBOOT_MACHINE = "am62x_evm_r5_defconfig" + +UBOOT_CONFIG_FRAGMENTS:ti-falcon = "am62x_r5_falcon.config" diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf index 52b69a72..851935db 100644 --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf @@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" SYSFW_SUFFIX = "hs-fs" UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" + +UBOOT_CONFIG_FRAGMENTS:ti-falcon = "am62x_r5_falcon.config" From patchwork Thu Apr 17 11:36:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshul Dalal X-Patchwork-Id: 61498 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 663A4C369C2 for ; Thu, 17 Apr 2025 11:36:47 +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.6410.1744889798356519381 for ; Thu, 17 Apr 2025 04:36:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y9EJ+/Gk; spf=pass (domain: ti.com, ip: 198.47.19.245, mailfrom: anshuld@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBabD52951021 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 Apr 2025 06:36:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1744889797; bh=satio7vTI9nc664rj0HBcZCw7AUMrmyQqvhe6o0n47k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Y9EJ+/Gk7lmZbd4EvHifRjXUEKz6EisExWBuPZuTbwUQkFuMUm0TLtSGy7lXTVgUz 6yeqQrqKKR4nMdicFj0tyTYTggokWo7mUVMdlbeT5+Dgxru6YAYYbsfDej2wzLhkiF +pmJKmpcAAJhie+dwibCcYaCYzJtc0QBiY+Nz7EI= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBabFE005842 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 17 Apr 2025 06:36:37 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 17 Apr 2025 06:36:37 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 17 Apr 2025 06:36:37 -0500 Received: from localhost (dhcp-172-24-227-250.dhcp.ti.com [172.24.227.250]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53HBaaiw103245; Thu, 17 Apr 2025 06:36:37 -0500 From: Anshul Dalal To: CC: Anshul Dalal , Subject: [PATCH v2 2/3] bsp: conf: machine: add ti-falcon.inc Date: Thu, 17 Apr 2025 17:06:12 +0530 Message-ID: <20250417113614.1780603-3-anshuld@ti.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417113614.1780603-1-anshuld@ti.com> References: <20250417113614.1780603-1-anshuld@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 ; Thu, 17 Apr 2025 11:36:47 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/18481 ti-falcon.inc configures the following things for enabling falcon boot: 1. Change fitImage class to kernel-fitimage-legacyhs 2. Update kernel and dtb address for falcon boot 3. Disable kernel compression Signed-off-by: Anshul Dalal --- meta-ti-bsp/conf/machine/include/k3.inc | 5 +++++ meta-ti-bsp/conf/machine/include/ti-falcon.inc | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 meta-ti-bsp/conf/machine/include/ti-falcon.inc diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index ea6a5028..2f8b17ca 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc @@ -56,3 +56,8 @@ TI_WKS_BOOTLOADER_APPEND ?= "" do_image_wic[depends] += "virtual/bootloader:do_deploy" SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" + +FALCON_INCLUDE = "" +FALCON_INCLUDE:ti-falcon = "conf/machine/include/ti-falcon.inc" + +require ${FALCON_INCLUDE} diff --git a/meta-ti-bsp/conf/machine/include/ti-falcon.inc b/meta-ti-bsp/conf/machine/include/ti-falcon.inc new file mode 100644 index 00000000..b571c04d --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/ti-falcon.inc @@ -0,0 +1,5 @@ +KERNEL_CLASSES:remove = "kernel-fitimage" +KERNEL_CLASSES += "kernel-fitimage-legacyhs" +UBOOT_DTB_LOADADDRESS = "0x82000000" +UBOOT_LOADADDRESS = "0x82200000" +FIT_KERNEL_COMP_ALG = "none" From patchwork Thu Apr 17 11:36:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshul Dalal X-Patchwork-Id: 61497 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 6DCACC369CB for ; Thu, 17 Apr 2025 11:36:47 +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.web10.6411.1744889799656105221 for ; Thu, 17 Apr 2025 04:36:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=crfkAWty; spf=pass (domain: ti.com, ip: 198.47.23.235, mailfrom: anshuld@ti.com) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBadjo677177 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 17 Apr 2025 06:36:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1744889799; bh=E2+bRNetS93hunLmXS7v5xWE9SEHUJjVERsEA/S7xbY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=crfkAWtyWu0evLC1Srq7bQ0cfmHzbLVyrcqhZIa6sNyQB+49ijKUQytCuSnK78xM7 UAKfgS/Bi7j1t6L2pOGXIHSO5TTKq1bRmiFMJ6j2FSjXQtztt2Eyj0F4Dy6NvHoDX2 kCbX6gNt7Itakv2A3XDZ6eOOATOP/AvB6/EGnMlE= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 53HBadWT061105 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 17 Apr 2025 06:36:39 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 17 Apr 2025 06:36:38 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 17 Apr 2025 06:36:38 -0500 Received: from localhost (dhcp-172-24-227-250.dhcp.ti.com [172.24.227.250]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 53HBacku102701; Thu, 17 Apr 2025 06:36:38 -0500 From: Anshul Dalal To: CC: Anshul Dalal , Subject: [PATCH v2 3/3] bsp: u-boot: deploy tispl_falcon.bin to rootfs Date: Thu, 17 Apr 2025 17:06:13 +0530 Message-ID: <20250417113614.1780603-4-anshuld@ti.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417113614.1780603-1-anshuld@ti.com> References: <20250417113614.1780603-1-anshuld@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 ; Thu, 17 Apr 2025 11:36:47 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-ti/message/18482 Falcon boot requires tispl_falcon.bin to be on the same filesystem partition as the fitImage. This patch creates a new u-boot package called 'u-boot-ti-staging-falcon' that is included in IMAGE_INSTALL when ti-falcon is enabled which allows us to deploy the required files to rootfs. Signed-off-by: Anshul Dalal --- meta-ti-bsp/conf/machine/include/ti-falcon.inc | 1 + meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/meta-ti-bsp/conf/machine/include/ti-falcon.inc b/meta-ti-bsp/conf/machine/include/ti-falcon.inc index b571c04d..9f93c683 100644 --- a/meta-ti-bsp/conf/machine/include/ti-falcon.inc +++ b/meta-ti-bsp/conf/machine/include/ti-falcon.inc @@ -1,3 +1,4 @@ +IMAGE_INSTALL:append = " u-boot-ti-staging-falcon" KERNEL_CLASSES:remove = "kernel-fitimage" KERNEL_CLASSES += "kernel-fitimage-legacyhs" UBOOT_DTB_LOADADDRESS = "0x82000000" diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc index 41d4abdd..76803ae3 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc @@ -14,6 +14,8 @@ require u-boot-mergeconfig.inc FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" +FILES:${PN}-falcon = "boot/tispl_falcon.bin" + SUMMARY = "u-boot bootloader for TI devices" LICENSE = "GPL-2.0-or-later" @@ -373,4 +375,13 @@ do_deploy:append:am62pxx() { install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} } +do_install:append:ti-falcon() { + install -m 0644 ${B}/tispl_falcon.bin ${D}/boot +} + +PACKAGES:prepend:am62xx-evm = "${PN}-falcon " +PACKAGES:prepend:am62axx-evm = "${PN}-falcon " +PACKAGES:prepend:am62pxx-evm = "${PN}-falcon " +PACKAGES:prepend:am62xx-lp-evm = "${PN}-falcon " + TOOLCHAIN = "gcc"