From patchwork Thu Apr 10 08:41:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879750 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132310wrq; Thu, 10 Apr 2025 01:42:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVi656luRcJTydu8QpmdChpZW4edFB1vOzVVnleHItNPr+bN9/XILwULzSVBmhyCVbDZ76FQA==@linaro.org X-Google-Smtp-Source: AGHT+IFSR+M1UEsY5HlGVu4dGHMIoNM3ptj9lx1l+VXAoPCGuuMvloJJoBxbSFds0bq0jHKfeh6U X-Received: by 2002:a05:6122:1794:b0:51f:405e:866e with SMTP id 71dfb90a1353d-527b4fa4463mr1122107e0c.1.1744274536113; Thu, 10 Apr 2025 01:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274536; cv=none; d=google.com; s=arc-20240605; b=kkjkkJeypa0miD7tvGpwk3S8ovmX/6RCB8kUd80CGij4FpNacqNMFnUPwrqH1m8Xew jrLcEPjrQO/uT2Fkip8ApQTgcMbnFJ5cvtCUUZZmRMuV5bEx//UFrWbQmi2UyUotNdts s6ryKJbL3J32FVW3DlLVoa9sxiwqjxcoeQQ2X68rpXfN984mYkMZ1JuhLbGLdXD0nBiq FJshCW+2ExkhFxribe+yRnRMd05Xidee9Il6St9IX2y7ckXRhFgVG/QtOmZPaiJ8oG/1 hYzM3P9gB6HLGZR36MxkEANDVscxIY0pDpPKh7w/a4Y/yg+izbY9jWUrVAxJI57BQV7A i2Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ww03lubTi/v8RLliYdlyK0LkI6av4faBh0CcPfe3Q6c=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=CmLCxMoEndRz3txeKA77T58znGbtyRjPyQHInCkMTR0WkapvFQidT5ikbL64619EGi eFmrAmpdyJd05+t6AWsMfs8SSZOzPMt7KvOtDPDVCXaxDy/SSXZ2E1X+1fxuBW7fk+vS bDr3HZlSLgPE0JTW+gtZjoRACvFZzirB9rnfsewYe+vk6iwwgkcMxXoHCTDTSpiiCgs/ E080lVXKsg+eRfC2KRZpsatg4+wTtHQjxOZjN+b5vy5SE5tbbE3VSomDz7firbRVay5A sTqT2aharqstvkgDnpQSZl12Va2VFaJQZuNSt9EHXhXf5k3ClaWhiMV0w2IINOBGMb3m /B6w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=BT3CzKb8; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 71dfb90a1353d-527abd73a7asi999055e0c.75.2025.04.10.01.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:42:16 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=BT3CzKb8; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B5FA83AA4; Thu, 10 Apr 2025 10:41:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="BT3CzKb8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C595383A61; Thu, 10 Apr 2025 10:41:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A8BDB83A5C for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ww03lubTi/v8RLliYdlyK0LkI6av4faBh0CcPfe3Q6c=; b=BT3CzKb8U25hkus7exwe3Zu/RX ST4V06BW7i1xZpSCa5SZOQVT9u7Kv7KEkKY7jknFssGMXhQtG13t/YnAJms9CLeMSwrhiV+88/Lq+ eK9rShAF0FzDm7rZgEQ9UqJs/t7gd6HkEhMBBee07Ry52M3wkxRQcE1wHmAnD01NUyWn5uJfboz3W BLddCGQC5596i+jSCuWd2f4/U6PsAPrxaS588JDoYWuHLNZdX34BhEhCCuTogq8ySpj/sQuTM6ZJc ScF43fhyFI2BSnWi9DN2sfifVEJFj0grZmV7uue2xTKMPvcVzPzVDvvKbvHmNi4i3JvFrUV6dkkZ9 7oVITe5A==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-0L; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 1/6] board: phycore-imx93: env: Move fdt and bootenv addresses Date: Thu, 10 Apr 2025 10:41:17 +0200 Message-Id: <20250410084122.1010297-2-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Move the load addresses for FDTs and bootenv.txt to create space for loading OS image. Otherwise, parts of the image might get corrupted. and the following boot error will be present: ERROR: FDT image overlaps OS image (OS=80400000..832a0000) Moreover, this commit also syncs addresses with downstream PHYTEC u-boot for i.MX93 in preparation for FIT image support in the future. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index ab65cfce5fd1..9c70c40b2fca 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -4,9 +4,9 @@ image=Image console=ttyLP0 -fdt_addr_r=0x83000000 -fdtoverlay_addr_r=0x830c0000 -bootenv_addr_r=0x83500000 +fdt_addr_r=0x90000000 +fdtoverlay_addr_r=0x900c0000 +bootenv_addr_r=0x90500000 fdtfile=CONFIG_DEFAULT_FDT_FILE ip_dyn=yes mmcdev=CONFIG_SYS_MMC_ENV_DEV From patchwork Thu Apr 10 08:41:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879747 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132185wrq; Thu, 10 Apr 2025 01:41:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDCKXxlI38gWcliYwE2gE8S5I60yPzUbFe+St/NJ8I78oYkXgRBt76m3optRhElEzTi+5w+A==@linaro.org X-Google-Smtp-Source: AGHT+IGTfb/AuEuy9wFLJb2fnzHRyQr0JVoQX8E2bPGWZ8420EUaJnRrZhncCTDBop82qrukkbI9 X-Received: by 2002:a05:6102:3310:b0:4bb:9b46:3f71 with SMTP id ada2fe7eead31-4c9d34b52eemr1266252137.8.1744274509197; Thu, 10 Apr 2025 01:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274509; cv=none; d=google.com; s=arc-20240605; b=dlL7UG+hov0EvIjieL6IiYyDwaXR/NFWGXcgb2ZgaSQRNem3XuA8XzzlM7eQBk4EmQ 4dbCPRr32JMT3QE9cf47oGRB7rIF6Q4H2y6Y0wZCGGJdWRLzKtqMEEsmY4sifVzJCLiH v7l0m8IHtK37UCXwUCOqXUr5BSlXWUFU8wGkZby7EyK4xNVZN0Hd47g62Oi9Iusk3Gz6 ybNque7E4S5dqXD6f2UrHyq9x+Go5esC3VfIwwQOk3VpOQmltKUoBSa2+x+vHmpGcnm+ 3PArcFlUlhB8nawGvdKMgyr9oTLkDHe9dQmwrhBo1vxRk82OdVe/sFOKMZWvUw/Fp/WF Yn5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mMY5ADLBI89vQNY9w8hCl/fnwXeMeaszwxlCcyhPlPI=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=EnM9/72HqoaGp8LyASVgZXMqJQyqJJgB9vbdlxfpuLHPBoLV3CqJIlTW5K7PTWHfZ7 /NfYE/Ijq5NicaTHTOsvfdbT8EJSRv+QihkbXBCNFcLIMzqD/SniuvkoxL68zIuBiURm GoPrOuwgP2pkHsnvJbBzPabDJmyXeHPCB6wqOyzuqvHF2yTXKm9m8d0vlR0zNPx2MEf2 j7awjb2s4ROEV1Y5eZ0GEp8NiVRLpVw/JBvKlhsv52Z6hoXC2VmRFzG30xmwuvbirYDy y7hpJITQ3nDU2KqxLy+OIqDilzv76dNL3HOd133ljhxH7XorB83j0DsvKSGTZy0zpEkp t0TA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=TgDMQasB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c98c5b33si1001336137.423.2025.04.10.01.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=TgDMQasB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9A7983A5F; Thu, 10 Apr 2025 10:41:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="TgDMQasB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B93F183A88; Thu, 10 Apr 2025 10:41:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A7E2D83A57 for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mMY5ADLBI89vQNY9w8hCl/fnwXeMeaszwxlCcyhPlPI=; b=TgDMQasBJKbC5fhC9XUc1aedQS GNXRq1PC7fKUvAjpRLi+GvCQ7TfQ3wdxolDWpXvSSoYtw5LXwaOrYSHzaMrZwt5v0F6iakKxPbTQh 2IgKI7pwakTSBHjPvvqySAD3JC5fmnE+WQim36+qrZhxp6vOwozrDJDae8Cg/jsjZzEKXUH3qj25e pjt1tBuDN8eOjIarAxROdWSM8hNzRPzPQNB/ilz0jB+W/KPGxBJR3f9CzLRW7yOlqD4+pccJoD5M1 RWVD/BoU23nKnF/udUpVtDELFDF7DmwDMHIRY94zelikapKJ5IeRuHJK/qBDjpdixaKtXs6l3t/7G 2XHEH6oQ==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-0X; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 2/6] board: phycore-imx93: env: Add optargs to environment Date: Thu, 10 Apr 2025 10:41:18 +0200 Message-Id: <20250410084122.1010297-3-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add the optargs variable so we can set optional arguments while booting. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index 9c70c40b2fca..36bf3fefa0ba 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -14,7 +14,7 @@ mmcpart=1 mmcroot=2 mmcautodetect=yes mmcargs=setenv bootargs console=${console},${baudrate} earlycon - root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw + root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw ${optargs} loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile} mmcboot= @@ -31,7 +31,7 @@ mmcboot= fi; nfsroot=/nfs netargs=setenv bootargs console=${console},${baudrate} earlycon - root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp + root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp ${optargs} netboot= echo Booting from net ...; run netargs; From patchwork Thu Apr 10 08:41:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879746 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132147wrq; Thu, 10 Apr 2025 01:41:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX1Kxg1jWQuuUSMWqR+hr9HgMr6aU/fhMtq/Eb7dDLM8o5I7KLV74TP10EVrRgfJXFJLlQ7jA==@linaro.org X-Google-Smtp-Source: AGHT+IFu3wZYxsRv+kHSGCA190f4QrUtGcbyksvd9wNpLys6lghHihdNJKF4nJah3MnKQFG06MEm X-Received: by 2002:a05:6102:944:b0:4c4:df56:6a2b with SMTP id ada2fe7eead31-4c9d348f673mr1178550137.4.1744274499712; Thu, 10 Apr 2025 01:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274499; cv=none; d=google.com; s=arc-20240605; b=RejG9RjwPdxrxQtv8hL4KGo8loEDKbRiwJzaLl29JVgMi4yWAhJIN1/N1AVFp9rOZp NvA2FQdwaqg+rcKJPii+b3mJZNlqveBaZCkmoJkQXRuKgmSxLD2GtNp1b4i6CKANn95U u79UGyIAM9f9W76tSbQZAAiCp+ymNkAlCwsOhQYPvxgT09tVQD2K9DztH9BM72hjz9c8 qwOuER2ZFJVhcDJK6K0eGbsucXM4orEezou9iIsOABGLNpGg4uOrOeSnw9CcUdrzcAfx b8xbIW8ItdkMzQviA6nDetZ/h2xB95Q43Yg0kqG1NhXKrpx3GKs5hu7fJbNYQmD4F912 jocw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LW+0JrKEcu1d0VDGSGJdSrbnIjnSbBWfKj/Eusy6rk4=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=D+78/cwDRAbi2/3dSve/K6lrwCVH+Y+wRsGMkzIPb1LA/j5Rc4pflLcq79HOuaSZOH RJhaBYpsadWzSe7XV2xOT8QWaVNwqlyJ+lQtTkR/5k43lMaydhQBZd43t7SxMzziEX+Z sGV/voqhtm7mpv6YwmeTueWOdSpnGnObhPPTsWv8ZyYg58lLaoG5mQMK4FiswExLxHHQ lTyjK/ns20tMepIPtzy05oZCsUGCEo72weKSx3h142hsBgE/HvyUY6N6RHR7drZKXBLP QF3WZaVLNqVpagPiu66IKJ0ccgDoyF2yA9w9sni4YF+IJZ0EwzBkPD+hDn0k0chJqNJy nhAw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=SYdUIQAs; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c9890f94si986722137.243.2025.04.10.01.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=SYdUIQAs; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 270EF83A57; Thu, 10 Apr 2025 10:41:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="SYdUIQAs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 803C383A7A; Thu, 10 Apr 2025 10:41:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9BDD83A5F for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=LW+0JrKEcu1d0VDGSGJdSrbnIjnSbBWfKj/Eusy6rk4=; b=SYdUIQAst3vxFtg7OviMuL9FbQ 8RKrlu7YLDj0ooZF6qUz86TLnEKh5mKlpgCDJRVR46xNYzu8Sp0PuqMI3ZX1ydf2/Mx+KWZmIXAE7 IqfsrBJkKseo7/Z47CP4JQC0mN6Bw2ZMcpvhVWL094zEAI2Er+coSTMvSA8kEH2HiNKYvx9tMsAge Dh+DINj+5XLm/8Vz6Lf8jQpsLlTpZFrSbh/m419n+lPf5mDBSrtK3g4Dc3pbbuMNQ5cBB4Px5N2cD 3wt6PObRfkR/rsFGOIMGjZqLm37sPwsq+dT8qfBo7YI2qhQnLs7raoHNE0ZGFKCDfcAaQT14QNRe4 bhOKMYlQ==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-0i; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 3/6] board: phycore-imx93: env: Add prepare_mcore to environment Date: Thu, 10 Apr 2025 10:41:19 +0200 Message-Id: <20250410084122.1010297-4-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add prepare_mcore script to environment to be able to notify Linux about the state of M33 core via the kernel cmdline by appending to ${optargs}. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 1 + 1 file changed, 1 insertion(+) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index 36bf3fefa0ba..52c234a4206c 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -9,6 +9,7 @@ fdtoverlay_addr_r=0x900c0000 bootenv_addr_r=0x90500000 fdtfile=CONFIG_DEFAULT_FDT_FILE ip_dyn=yes +prepare_mcore=setenv optargs "${optargs} clk-imx93.mcore_booted" mmcdev=CONFIG_SYS_MMC_ENV_DEV mmcpart=1 mmcroot=2 From patchwork Thu Apr 10 08:41:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879749 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132272wrq; Thu, 10 Apr 2025 01:42:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRObo12GuuxOdjiPFuK3Zn6y0MdFIMCZzJQ1VM3BeRHuK+8ZYRbnAiuLzPObG5HWbEfv24IQ==@linaro.org X-Google-Smtp-Source: AGHT+IGOaV3wPRLSSSQaWRpEcgs/JarUGjgUTyBWp8g8QIqZLpwvUCwa2j+KLrCpF8Al3DQKFBzi X-Received: by 2002:a05:6102:3f4c:b0:4c3:221:8f47 with SMTP id ada2fe7eead31-4c9d34cdf58mr1233506137.13.1744274526921; Thu, 10 Apr 2025 01:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274526; cv=none; d=google.com; s=arc-20240605; b=iJ1csIqvX1IUNLup/HDry2iNYfpyq3fXH4nB0BdKQN62kxTGmS+SaPCTHhUYhOKJY/ z+XVimdpMoFHr2MchJtJSnj/RukCWBMTmeAy2KgbZpeffAf/S34wrCxPdqRcMszBUqHQ BzDDQl49VhxTw8/hxRVk72bpQZbtU+IOKoYVtL7h4rx4HjXG12OyVtGSSJn4nwiwtW8b l6dE/rDu+cxZPl6T+R+nvY12IaMA8BFT98cTGZRWdKLuMxvpmJIJgNNjw7qnaWoaACyG u2hvGl/cOQNnOBZpL5R+7HG9EDEjhGjlrrQJJeZgup6bmgLE5kVKxnp8iHcciXddPGLH sXVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iFljJS+T3Da1LzVzwOzSuePsiVt5WStcZHi0GJB6ME8=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=Qdg4DWGkh6fbkz2bZ+JSVfHvvlBhKifHFX2eNpiE0o3fhQwJd3zfidLKDdg11oE2eK etTpNOVojYiF9XdJQAO/1lxWbjhEZWgmnwAYm9EOJXxtQr+8fYHia63L/M+XZ0LhgqPT N5sQc8FoAxwsSvKd4K1JmCmwiPMqtQdclaWtgvdYVVFOjf1HM944UP9CVFRbR/wym3YL 8Sy+igb6QfYehMbsHSrxxNspbheRTyeIf8FT5OcXU36hwrbDDxrUb7HJryii0T8QDK9Q zXuoh9coMl2t01+y+8A4TkkGAboq3ZFAnFD3j1Xho95bYgQNUrYoR1vcIouP8IxKkQeD vJ9w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=JKAyrsvl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c98c4a23si979223137.379.2025.04.10.01.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=JKAyrsvl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 919A183A90; Thu, 10 Apr 2025 10:41:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="JKAyrsvl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C03F283A56; Thu, 10 Apr 2025 10:41:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B6C5E83A61 for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=iFljJS+T3Da1LzVzwOzSuePsiVt5WStcZHi0GJB6ME8=; b=JKAyrsvlQ0z9T6Uwl0PEXKZXkJ 9dqmqK0tva+IPVlIKgpm0vLr53IKrpUDeEU++JcbGw51fd/dTx6CbndYzrJ4bzyxBUYWuXY+5kEF3 FGS+Y4U9IhdnmKo4SxU2TFrttYtvNKekUW4TZ9WpA/HvszY3o1V5Ecd4IJbWi3VrZlWD437weWiK6 dGK3o6P5dRH0gr5CHxKDjE93yx1k2qUdVP5gUWydGXQhYNDIqhhz2J2g+EfRLVP5wSqd00cHZxtLR 4jqo16YJ99G3oSupabL+cUPPI/xRHSQX4xbJttPwkEqyGq5sFesj4DR88lLpMs/16L3lTnhGWgwjU jdwwdlGw==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-0t; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 4/6] board: phycore-imx93: env: Add option to disable bootenv.txt import Date: Thu, 10 Apr 2025 10:41:20 +0200 Message-Id: <20250410084122.1010297-5-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add support for disabling external environment import (bootenv.txt) by setting the ${no_bootenv} environment variable. Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index 52c234a4206c..d0694f23269a 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -20,8 +20,10 @@ loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile} mmcboot= echo Booting from mmc ...; - if run mmc_load_bootenv; then - env import -t ${bootenv_addr_r} ${filesize}; + if test ${no_bootenv} = 0; then + if run mmc_load_bootenv; then + env import -t ${bootenv_addr_r} ${filesize}; + fi; fi; run mmcargs; if run loadfdt; then @@ -41,8 +43,10 @@ netboot= else setenv get_cmd tftp; fi; - if run net_load_bootenv; then - env import -t ${bootenv_addr_r} ${filesize}; + if test ${no_bootenv} = 0; then + if run net_load_bootenv; then + env import -t ${bootenv_addr_r} ${filesize}; + fi; fi; ${get_cmd} ${loadaddr} ${image}; if ${get_cmd} ${fdt_addr_r} ${fdtfile}; then From patchwork Thu Apr 10 08:41:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879745 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132095wrq; Thu, 10 Apr 2025 01:41:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVV/NgnmfojoeBOYuEhV1hEWVcR52YrLB8UxT1u3/J3M0yg95wcBH1ErlrlJYA6zTa/jgcFqQ==@linaro.org X-Google-Smtp-Source: AGHT+IF1BmFIIZZn9UeBj9mh81FIUDM1W8Feehr+KXKtPlk6F434mTAtR0J2nioFpsGGmm6MBy8e X-Received: by 2002:a05:6102:3c87:b0:4c1:91da:dac1 with SMTP id ada2fe7eead31-4c9d34a886cmr1247093137.6.1744274489660; Thu, 10 Apr 2025 01:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274489; cv=none; d=google.com; s=arc-20240605; b=e58yXuoy92dAUbDwK85muZIo5suR+Wtp8OMKejAoxD/GE/sS8EREFUXq2v/U0HuJA6 GCGeav5eDKbpNacCXcwsB/r7pbNtokqcRwo/fSJIvPZHsVnJW2lXvdFC3ovssFG6rmef fZ4t2D60qtmCoIIWDO08xFIXxfp++ehHUNlm0W8Pv1z6V2TINP0V1ZtM+Vpx4Q+7VqGv 7VAhIBiOGAYbsCV8xd7El0OKRVHveMYWwfinsZAs4uRh9ct0SXrX2yXKUsRhRxGdrDoG JroidDRj5SVFEVb17DCHNrMp9w4fvvPZzijYR8S9TusyXeN8Bswxd4nsAv4iRSi17Fbs 2hWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KI613fEmXI2TzrbUIUGjWmPRBZ8TXp7BGl73PPLNCQ4=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=XTRm520+ii2C4oArpTmUKBxKTwTkzw9Fcm7KaEyVZ6tx7qdOWFEwe2HbX4UvTNWpgx XgGVkxyazE7xgiEHa1uVtQNcqGqkBT5IwuN/GBq/7437xOHkpNQCUCSdWVwTPJbFgmDE ZRATqhZHcciGgIrZmbrOziCEQ9O1ZEuZhtYJDCwHGuxC1loz6IOJzV4p6rH2UhzKuXcp kDzIc8fKq+WWk0aSmuRRpIN7uFWLpYwIwWkOYUWhSkll+04w4I7s4n9eyt7tBM+QvMSA 32cqkTNjRM2ZCgUGSXJPp0E+SG8J82/cgptHQ+xAm0sQc416lM9nJKPNDETR+xjkjRFx jpYQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G9crX0Xh; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ada2fe7eead31-4c9c976d8a3si973429137.165.2025.04.10.01.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G9crX0Xh; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C817583A71; Thu, 10 Apr 2025 10:41:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="G9crX0Xh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4D5883A7A; Thu, 10 Apr 2025 10:41:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C809983A62 for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KI613fEmXI2TzrbUIUGjWmPRBZ8TXp7BGl73PPLNCQ4=; b=G9crX0XhQAdgf5Fwc9kRLuYhRY 8ZTCoV3NgGbmiPWASi/7I1o7dPKjQXlnuN4Yc7mjTnAhynBzfcx1GY24iDLgLOTB8cysSd76i4hMo WTkeWG4DS2+qRgETeHk4SQ6lmUeAhi1BWusfenVKkT54zvLDl0f54ZcY1RzZ9aP6Wx3YrMHHWaK/u 7tSPlLYB9lCnytE3JHLwJRpZCgW3UCu4K9BsMSAWgP12MrUzX89aXBFsQI32eURYC6NfJkvOPy01K 1a79Y7lhasTR9XElTF9XN5XNRUANhjc8QrbtmhMOQwjP1phby4xNW/EF0sh4JliaFBZOILbVdJ6lq PZXVW3WQ==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-14; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 5/6] board: phycore-imx93: env: Move bootcmd from defconfig to env Date: Thu, 10 Apr 2025 10:41:21 +0200 Message-Id: <20250410084122.1010297-6-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Leonard Anderweit Move the default bootcmd from the defconfig to the board environment in preparation for RAUC support. No change in functionality. Signed-off-by: Leonard Anderweit Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 9 +++++++++ configs/imx93-phycore_defconfig | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index d0694f23269a..3a36597cae84 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -2,6 +2,15 @@ #include +bootcmd= + mmc dev ${mmcdev}; + if mmc rescan; then + if run loadimage; then + run mmcboot; + else + run netboot; + fi; + fi; image=Image console=ttyLP0 fdt_addr_r=0x90000000 diff --git a/configs/imx93-phycore_defconfig b/configs/imx93-phycore_defconfig index cf9800118ac1..e99676d4f62b 100644 --- a/configs/imx93-phycore_defconfig +++ b/configs/imx93-phycore_defconfig @@ -35,7 +35,6 @@ CONFIG_REMAKE_ELF=y # CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DISTRO_DEFAULTS=y CONFIG_OF_SYSTEM_SETUP=y -CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; fi;" CONFIG_DEFAULT_FDT_FILE="oftree" CONFIG_SYS_CBSIZE=2048 CONFIG_SYS_PBSIZE=2074 From patchwork Thu Apr 10 08:41:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Primoz Fiser X-Patchwork-Id: 879751 Delivered-To: patch@linaro.org Received: by 2002:a5d:4882:0:b0:38f:210b:807b with SMTP id g2csp132349wrq; Thu, 10 Apr 2025 01:42:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUVnvObCBtEmQFU+xhrWM6wywBxcUdNf4I3Yrm0OkplJ8We+HB5hfApcuGJWcIQVPOrLD9WQ==@linaro.org X-Google-Smtp-Source: AGHT+IGcqboPWJapNlD60y77pwM3JyMwnw6ouVIX/MeyicTPPa3EBW/ksXerSS5HTbj8oe1mhev6 X-Received: by 2002:a05:6102:1528:b0:4bd:22d5:fbd7 with SMTP id ada2fe7eead31-4c9d34caef5mr1299748137.11.1744274545029; Thu, 10 Apr 2025 01:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744274545; cv=none; d=google.com; s=arc-20240605; b=M4QgUXRHcb/S6n4w9g3p3nGMoC/grgwvIxOPcsvFDh7x2XWw4r+09fPgY30jBKM4Va nAQGvpgmoMIHLmnpDCscG9kysc07o6Ab5xcQBw3E6PfxWiQ7tOES0pW3hU/qrmUpjeK5 PSY6sOVyu1kGnXNzt6C5dx1qRrw9BymBCYTw9BmMpqOHF4PXxB/qqI+rzzWrTvJOMlFP i/JfwqAXN89Ue9qW0rcL3AGmrN6zZDYZxaSPuPt+xn5mZLrV67MC4XR+JihxykyTJPyW kAZ/idDgZjMQ0me3823NdP9VFQcBse7by3H+tarfrV7n5LZ0ox/6/sL87HjyWZsV7tJx gFPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Um3PT8XYaspnoxcNvxLMMWs69DIYRqE0qb+hjy7X8IY=; fh=hY0wnEtEq+bQbxc+PL753aRo1qv3AdC7oKTypmrCxZo=; b=k3MFt25HR03xNvQyWOtq3nHUfsZfhh2mzdAnVx/1QmJ+ZmkAh/yatumvFnN8XZeSM8 Q/yVN+msTveW3sXTMd1F1rgMGBU0tb6JFxcU8xQ4CEHZ7lJRA7iHXH2BvILhtJJfZ7lq IFqern9f8IFQGX4V4g6er1Ar5oI4ba7c4v9Y+eVPKcyP9iFrX2VjgsZ27u0Vo9WuUMN7 DCnoHoJP6+CgBvXgk77ugoyFL6x+NoX2Mb2NfeDc8CNtG56BFwBmFbJ1r9U6A1S7eOF6 i2Y+r/qyRAgedaOGM37Jvr7Nlb2QW7fE1yEpiaIrvncCuDWQLqY7clAAhK+q69Yb4mIk RkkA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=IPeHZYYV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a1e0cc1a2514c-875572bf5c5si842999241.130.2025.04.10.01.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Apr 2025 01:42:25 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=IPeHZYYV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A056383AAB; Thu, 10 Apr 2025 10:41:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=norik.com header.i=@norik.com header.b="IPeHZYYV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 739CA83A6A; Thu, 10 Apr 2025 10:41:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D666C83A64 for ; Thu, 10 Apr 2025 10:41:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=primoz.fiser@norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Um3PT8XYaspnoxcNvxLMMWs69DIYRqE0qb+hjy7X8IY=; b=IPeHZYYVbGUWnMN9sChm2JPPsH fl3rT3jFjY8m777AtJ0HmUPTV0o1D6+QN53iXtoRXLcgPCrm3Hr+/N5JgR0EX0vjjHy/H/0oGyZ48 hq9zWsEe272LqiTjpHYTM++3tpEnMdIBajo46iWwcXWuJMzqLdBjPN72j5QiLKXQlSFIvlkkqfSUG r1SIiNfOzG2Xvn9xMvu3FSKkrmdgFuh/VYFt58OFOCy99Ti1MmXoxFyjJEyB9SDIo/l+wseLMSsAA C3/cAQRVKwkO/fLuhiym1UTlCdqQCv73GuJL51xvzy+dPW74LdHfR8hsls8HbS42fqZxa+Sdbhvo5 cBzsCnFg==; Received: from [89.212.21.243] (port=54584 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1u2nTQ-0007zv-1F; Thu, 10 Apr 2025 10:41:23 +0200 From: Primoz Fiser To: Mathieu Othacehe , Christoph Stoidner , Tom Rini Cc: upstream@lists.phytec.de, u-boot@lists.denx.de Subject: [PATCH 6/6] board: phycore-imx93: env: Add common RAUC boot logic Date: Thu, 10 Apr 2025 10:41:22 +0200 Message-Id: <20250410084122.1010297-7-primoz.fiser@norik.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410084122.1010297-1-primoz.fiser@norik.com> References: <20250410084122.1010297-1-primoz.fiser@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Martin Schwan Add a common RAUC boot logic environment and make use of it in the i.MX93 environment. The RAUC boot logic is deactivated by default and can be activated by setting "doraucboot" to "1". Signed-off-by: Martin Schwan Reviewed-by: Leonard Anderweit Signed-off-by: Primoz Fiser --- board/phytec/phycore_imx93/phycore_imx93.env | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env index 3a36597cae84..3b2f30118e76 100644 --- a/board/phytec/phycore_imx93/phycore_imx93.env +++ b/board/phytec/phycore_imx93/phycore_imx93.env @@ -1,10 +1,14 @@ /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +#include #include bootcmd= mmc dev ${mmcdev}; if mmc rescan; then + if test ${doraucboot} = 1; then + run raucinit; + fi; if run loadimage; then run mmcboot; else