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